Capítulo 41 de 859

Chapter 41: PlaneGeometry

Core Idea

A geometry class for representing a plane.

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

Reference Tables

Constructor

Signature
new PlaneGeometry( width : number, height : number, widthSegments : number, heightSegments : 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. PlaneGeometry extends: EventDispatcher → BufferGeometry
  2. Most relevant properties: parameters.

Connects To