[page:Geometry] →
[name]
A class for generating plane geometries
Example
var geometry = new THREE.PlaneGeometry( 5, 20, 32 );
var material = new THREE.MeshBasicMaterial( {color: 0xffff00, side: THREE.DoubleSide} );
var plane = new THREE.Mesh( geometry, material );
scene.add( plane );
Constructor
[name]([page:Float width], [page:Float height], [page:Integer widthSegments], [page:Integer heightSegments])
width — Width along the X axis. Default is 1.
height — Height along the Y axis. Default is 1.
widthSegments — Optional. Default is 1.
heightSegments — Optional. Default is 1.
Properties
Each of the contructor parameters is accessible in the parameters property of the object. Any modification of these properties after instantiation does not change the geometry.
Source
[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]