Capítulo 31 de 859

Chapter 31: EdgesGeometry

Core Idea

Can be used as a helper object to view the edges of a geometry.

Note: It is not yet possible to serialize/deserialize instances of this class.

Key Concepts

  • parameters : Object: Holds the constructor parameters that have been used to generate the geometry. Any modification after instantiation does not change the geo…

Code Examples

const geometry = new THREE.BoxGeometry();
const edges = new THREE.EdgesGeometry( geometry );
const line = new THREE.LineSegments( edges );
scene.add( line );
  • What it demonstrates: Typical usage of EdgesGeometry.

Reference Tables

Constructor

Signature
new EdgesGeometry( geometry : BufferGeometry, thresholdAngle : number )

Properties

PropertyDescription
.parameters : ObjectHolds the constructor parameters that have been used to generate the geometry. Any modification after instantiation does not change the geometry.

Key Takeaways

  1. EdgesGeometry extends: EventDispatcher → BufferGeometry
  2. Most relevant properties: parameters.

Connects To