Constructor
new CircleGeometry( radius : number, segments : number, thetaStart : number, thetaLength : number )
Constructs a new circle geometry.
radius |
Radius of the circle. |
segments |
Number of segments (triangles), minimum = |
thetaStart |
Start angle for first segment in radians. |
thetaLength |
The central angle, often called theta,
of the circular sector in radians. The default value results in a complete circle. |
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 ) : CircleGeometry
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.