Constructor
new CylinderGeometry( radiusTop : number, radiusBottom : number, height : number, radialSegments : number, heightSegments : number, openEnded : boolean, thetaStart : number, thetaLength : number )
Constructs a new cylinder geometry.
| radiusTop |
Radius of the cylinder at the top. Default is |
| radiusBottom |
Radius of the cylinder at the bottom. Default is |
| height |
Height of the cylinder. Default is |
| radialSegments |
Number of segmented faces around the circumference of the cylinder. Default is |
| heightSegments |
Number of rows of faces along the height of the cylinder. Default is |
| openEnded |
Whether the base of the cylinder is open or capped. Default is |
| thetaStart |
Start angle for first segment, in radians. Default is |
| thetaLength |
The central angle, often called theta, of the circular sector, in radians. The default value results in a complete cylinder. Default is |
Properties
.parameters : Object
Holds the constructor parameters that have been used to generate the geometry. Any modification after instantiation does not change the geometry.
Static Methods
.fromJSON( data : Object ) : CylinderGeometry
Factory method for creating an instance of this class from the given JSON object.
| data |
A JSON object representing the serialized geometry. |
- Returns: A new instance.