[page:Geometry] →
[name]
todo
Example
var rectLength = 120, rectWidth = 40;
var rectShape = new THREE.Shape();
rectShape.moveTo( 0,0 );
rectShape.lineTo( 0, rectWidth );
rectShape.lineTo( rectLength, rectWidth );
rectShape.lineTo( rectLength, 0 );
rectShape.lineTo( 0, 0 );
var rectGeom = new THREE.ShapeGeometry( rectShape );
var rectMesh = new THREE.Mesh( rectGeom, new THREE.MeshBasicMaterial( { color: 0xff0000 } ) ) ;
scene.add( rectMesh );
Constructor
[name]([page:Array shapes], [page:Object options])
shapes — todo
options —
- curveSegments - todo
- material - todo
- UVGenerator - todo
todo
Properties
Methods
.addShapeList([page:todo shapes], [page:Object options]) [page:this]
shapes — todo
options — todo
todo
.addShape([page:todo shape], [page:Object options])
shape — todo
options — todo
todo
Source
[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]