This class can be used to modify a geometry by simplifying it. A typical use case for such a modifier is automatic LOD generation.
The implementation is based on Progressive Mesh type Polygon Reduction Algorithm by Stan Melax in 1998.
const modifier = new SimplifyModifier();
geometry = modifier.modify( geometry );
SimplifyModifier is an addon, and must be imported explicitly, see Installation#Addons.
import { SimplifyModifier } from 'three/addons/modifiers/SimplifyModifier.js';
Returns a new, modified version of the given geometry by applying a simplification. Please note that the resulting geometry is always non-indexed.
geometry
The geometry to modify.
count
The number of vertices to remove.
Returns: A new, modified geometry.