Capítulo 26 de 859

Chapter 26: ConeGeometry

Core Idea

A geometry class for representing a cone.

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

Reference Tables

Constructor

Signature
new ConeGeometry( radius : number, height : number, radialSegments : number, heightSegments : number, openEnded : boolean, thetaStart : number, thetaLength : 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. ConeGeometry extends: EventDispatcher → BufferGeometry → CylinderGeometry
  2. Most relevant properties: parameters.

Connects To