Constructor
new CapsuleGeometry( radius : number, height : number, capSegments : number, radialSegments : number, heightSegments : number )
Constructs a new capsule geometry.
| radius |
Radius of the capsule. Default is |
| height |
Height of the middle section. Default is |
| capSegments |
Number of curve segments used to build each cap. Default is |
| radialSegments |
Number of segmented faces around the circumference of the capsule. Must be an integer >= 3. Default is |
| heightSegments |
Number of rows of faces along the height of the middle section. Must be an integer >= 1. 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 ) : CapsuleGeometry
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.