Optional
radius: number— sphere radius. Default is 50.
Optional
widthSegments: number— number of horizontal segments. Minimum value is 3, and the default is 8.
Optional
heightSegments: number— number of vertical segments. Minimum value is 2, and the default is 6.
Optional
phiStart: number— specify horizontal starting angle. Default is 0.
Optional
phiLength: numberOptional
thetaStart: number— specify vertical starting angle. Default is 0.
Optional
thetaLength: numbernull
null
Use .groups instead.
[]
Unique number of this buffergeometry instance
null
Readonly
isfalse
''
Use .groups instead.
'SphereGeometry'
Use .setAttribute() instead.
Use .addGroup() instead.
Optional
indexOffset: anyAdds a listener to an event type.
The type of event to listen to.
The function that gets called when the event is fired.
Use .setIndex() instead.
Bakes matrix transform directly into vertex coordinates.
Use .clearGroups() instead.
Checks if listener is added to an event type.
The type of event to listen to.
The function that gets called when the event is fired.
Optional
offset: numberUse .deleteAttribute() instead.
Removes a listener from an event type.
The type of the listener that gets removed.
The listener function that gets removed.
Static
fromJSONGenerated using TypeDoc
This is a superefficent class for geometries because it saves all data in buffers. It reduces memory costs and cpu cycles. But it is not as easy to work with because of all the necessary buffer calculations. It is mainly interesting when working with static objects.
see https://github.com/mrdoob/three.js/blob/master/src/core/BufferGeometry.js|src/core/BufferGeometry.js