The modifier can be used to split faces at sharp edges. This allows to compute normals without smoothing the edges which can lead to an improved visual result.
const modifier = new EdgeSplitModifier();
geometry = modifier.modify( geometry, Math.PI * 0.4 );
EdgeSplitModifier is an addon, and must be imported explicitly, see Installation#Addons.
import { EdgeSplitModifier } from 'three/addons/modifiers/EdgeSplitModifier.js';
Returns a new, modified version of the given geometry by applying an edge-split operation. Please note that the resulting geometry is always indexed.
geometry
The geometry to modify.
cutOffAngle
The cut off angle in radians.
tryKeepNormals
Whether to try to keep normals or not.
Default is true.
Returns: A new, modified geometry.