Options for the simplify function.


  • SimplifyOptions


error: number

Target error, as a fraction of mesh radius. Default: 0.01 (1%).

lockBorder: boolean

Whether to lock topological borders of the mesh. May be necessary when adjacent 'chunks' of a large mesh (e.g. terrain) share a border, helping to ensure no seams appear.

ratio: number

Target ratio (0–1) of vertices to keep. Default: 0.5 (50%).

simplifier: {}

MeshoptSimplifier instance.

Type declaration

Function symbol, f(📦) → 📦, where the argument and output are a box labeled 'glTF'.

Made by Don McCurdy TypeDoc documentation Copyright 2021 under MIT license