1234567891011121314151617181920212223242526 |
- /**
- * @author mrdoob / http://mrdoob.com/
- * based on http://papervision3d.googlecode.com/svn/trunk/as3/trunk/src/org/papervision3d/objects/primitives/Plane.as
- */
- THREE.PlaneGeometry = function ( width, height, widthSegments, heightSegments ) {
- THREE.log( 'THREE.PlaneGeometry: Consider using THREE.PlaneBufferGeometry for lower memory footprint.' );
- THREE.Geometry.call( this );
- this.type = 'PlaneGeometry';
- this.parameters = {
- width: width,
- height: height,
- widthSegments: widthSegments,
- heightSegments: heightSegments
- };
- this.fromBufferGeometry( new THREE.PlaneBufferGeometry( width, height, widthSegments, heightSegments ) );
- };
- THREE.PlaneGeometry.prototype = Object.create( THREE.Geometry.prototype );
- THREE.PlaneGeometry.prototype.constructor = THREE.PlaneGeometry;
|