This class can be used to modify a geometry by breaking its edges if they are longer than maximum length.
const modifier = new TessellateModifier( 8, 6 );
geometry = modifier.modify( geometry );
TessellateModifier is an addon, and must be imported explicitly, see Installation#Addons.
import { TessellateModifier } from 'three/addons/modifiers/TessellateModifier.js';
Constructs a new Tessellate modifier.
maxEdgeLength
The maximum edge length.
Default is 0.1.
maxIterations
The number of iterations.
Default is 6.
The maximum edge length.
Default is 0.1.
The maximum edge length.
Default is 0.1.
Returns a new, modified version of the given geometry by applying a tesselation. Please note that the resulting geometry is always non-indexed.
geometry
The geometry to modify.
Returns: A new, modified geometry.