Model loading · interface

SimplifyOptions

Explained in Importing models.

interface SimplifyOptions
import type { SimplifyOptions } from '@driftengine/assets';

Properties

NameTypeDescription
maxErrorreadonlynumberThe furthest the surface may move, in the mesh's units: metres, for a baked scene.
maxUvErrorreadonlyoptionalnumberThe furthest a texture may slide under the surface, in uv units: a texel of a 1,024 map by default. Checked at every vertex a collapse has removed, so it cannot accumulate.
minRatioreadonlyoptionalnumberStop once this share of the triangles is left, whatever the error. 0 by default.