SimplifyOptions

Options for the simplify function.

Properties

cleanup: boolean
  • experimental

Whether to perform cleanup steps after completing the operation. Recommended, and enabled by default. Cleanup removes temporary resources created during the operation, but may also remove pre-existing unused or duplicate resources in the Document. Applications that require keeping these resources may need to disable cleanup, instead calling dedup and prune manually (with customized options) later in the processing pipeline.

error: number

Limit on error, as a fraction of mesh radius. Default: 0.0001 (0.01%).

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.0 (0%).

simplifier: unknown

MeshoptSimplifier instance.

Function symbol, where the argument and output are a box labeled 'glTF'.

Made by Don McCurdy. Documentation built with greendoc and published under Creative Commons Attribution 3.0.