Capítulo 542 de 859

Chapter 542: EdgeSplitModifier

Core Idea

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.

Code Examples

const modifier = new EdgeSplitModifier();
geometry = modifier.modify( geometry, Math.PI * 0.4 );
  • What it demonstrates: Typical usage of EdgeSplitModifier.

Reference Tables

Constructor

Signature
new EdgeSplitModifier()

Methods

MethodDescription
.modify( geometry : BufferGeometry, cutOffAngle : number, tryKeepNormals : boolean ) : BufferGeometryReturns a new, modified version of the given geometry by applying an edge-split operation. Please note that the resulting geometry is always indexed.

Key Takeaways

  1. Key methods: modify.

Connects To