Capítulo 33 de 859

Chapter 33: IcosahedronGeometry

Core Idea

A geometry class for representing an icosahedron.

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.IcosahedronGeometry();
const material = new THREE.MeshBasicMaterial( { color: 0xffff00 } );
const icosahedron = new THREE.Mesh( geometry, material );
scene.add( icosahedron );
  • What it demonstrates: Typical usage of IcosahedronGeometry.

Reference Tables

Constructor

Signature
new IcosahedronGeometry( 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. IcosahedronGeometry extends: EventDispatcher → BufferGeometry → PolyhedronGeometry
  2. Most relevant properties: parameters.

Connects To