Capítulo 52 de 859

Chapter 52: TetrahedronGeometry

Core Idea

A geometry class for representing an tetrahedron.

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

Reference Tables

Constructor

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

Connects To