Capítulo 42 de 859

Chapter 42: PolyhedronGeometry

Core Idea

A polyhedron is a solid in three dimensions with flat faces. This class will take an array of vertices, project them onto a sphere, and then divide them up to the desired level of detail.

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…

Reference Tables

Constructor

Signature
new PolyhedronGeometry( vertices : Array.<number>, indices : Array.<number>, radius : number, detail : 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. PolyhedronGeometry extends: EventDispatcher → BufferGeometry
  2. Most relevant properties: parameters.

Connects To