Constructor
new SphereGeometry( radius : number, widthSegments : number, heightSegments : number, phiStart : number, phiLength : number, thetaStart : number, thetaLength : number )
Constructs a new sphere geometry.
radius |
The sphere radius. |
widthSegments |
The number of horizontal segments. Minimum value is |
heightSegments |
The number of vertical segments. Minimum value is |
phiStart |
The horizontal starting angle in radians. |
phiLength |
The horizontal sweep angle size. |
thetaStart |
The vertical starting angle in radians. |
thetaLength |
The vertical sweep angle size. |
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 ) : SphereGeometry
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.