DriftCapture · interface

DecimateOptions

Explained in DriftCapture.

interface DecimateOptions
import type { DecimateOptions } from '@driftengine/capture';

Properties

NameTypeDescription
borderWeightreadonlyoptionalnumberHow much a border edge resists being collapsed.
More

The standard construction: each boundary edge contributes a plane through itself perpendicular to its own face, weighted by this, so moving along the border is cheap and moving off it is not. A hundred is enough that a border survives a decimation to a tenth and small enough that a long straight border still simplifies.