Capítulo 607 de 859

Chapter 607: TessellateModifier

Core Idea

This class can be used to modify a geometry by breaking its edges if they are longer than maximum length.

Key Concepts

  • maxEdgeLength : number: The maximum edge length.
  • maxIterations : number: The maximum edge length.

Code Examples

const modifier = new TessellateModifier( 8, 6 );
geometry = modifier.modify( geometry );
  • What it demonstrates: Typical usage of TessellateModifier.

Reference Tables

Constructor

Signature
new TessellateModifier( maxEdgeLength : number, maxIterations : number )

Properties

PropertyDescription
.maxEdgeLength : numberThe maximum edge length.
.maxIterations : numberThe maximum edge length.

Methods

MethodDescription
.modify( geometry : BufferGeometry ) : BufferGeometryReturns a new, modified version of the given geometry by applying a tessellation. Please note that the resulting geometry is always non-indexed.

Key Takeaways

  1. Most relevant properties: maxEdgeLength, maxIterations.
  2. Key methods: modify.

Connects To