Capítulo 41 de 859
A geometry class for representing a plane.
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 );
Constructor
| Signature |
|---|
new PlaneGeometry( width : number, height : number, widthSegments : number, heightSegments : number ) |
Properties
| Property | Description |
|---|---|
.parameters : Object | Holds the constructor parameters that have been used to generate the geometry. Any modification after instantiation does not change the geometry. |