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. Default is |
| widthSegments |
The number of horizontal segments. Minimum value is Default is |
| heightSegments |
The number of vertical segments. Minimum value is Default is |
| phiStart |
The horizontal starting angle in radians. Default is |
| phiLength |
The horizontal sweep angle size. Default is |
| thetaStart |
The vertical starting angle in radians. Default is |
| thetaLength |
The vertical sweep angle size. 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 ) : 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.