Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

decimator

whydoidoit3ISC1.0.0

PlayCanvas Mesh Decimator

Decimate, 3D, Model, PlayCanvas

readme

Introduction

PlayCanvas Decimator that works on Mesh Instances either in the Editor or in the Engine.

Installation

npm install --save playcanvas-decimator

Usage

import decimate from 'playcanvas-decimator';

let mesh = decimate(numberOfFaces, mesh.meshInstances[0])

Face removal

Faces are removed based on curvature and the UV offset.