[name]

[name] is intended to modify the geometry "dissolving" the edges to give a smoother look.

Import

[name] is an add-on, and therefore must be imported explicitly. See [link:#manual/introduction/Installation Installation / Addons].

import { EdgeSplitModifier } from 'three/addons/modifiers/EdgeSplitModifier.js';

Code Example

const geometry = new THREE.IcosahedronGeometry( 10, 3 );
const modifier = new EdgeSplitModifier();
const cutOffAngle = 0.5;
const tryKeepNormals = false;

modifier.modify( geometry, cutOffAngle, tryKeepNormals );

Examples

[example:webgl_modifier_edgesplit misc / modifiers / EdgeSplit ]

Constructor

[name]()

Create a new [name] object.

Methods

[method:undefined modify]( [param:geometry], [param:cutOffAngle], [param:tryKeepNormals] )

Using interpolated vertex normals, the mesh faces will blur at the edges and appear smooth.
You can control the smoothness by setting the `cutOffAngle`.
To try to keep the original normals, set `tryKeepNormals` to `true`.

Source

[link:https://github.com/mrdoob/three.js/blob/master/examples/jsm/modifiers/EdgeSplitModifier.js examples/jsm/modifiers/EdgeSplitModifier.js]