createSphere
createSphere
Creates a sphere primitive and adds it to the scene.
Signature
createSphere(options?: CreatePrimitiveOptions): Promise<SceneObject>Parameters
Parameter
Type
Required
Description
PrimitiveSphereSettings fields
Field
Type
Description
sphereRadius
number
Radius of the sphere
sphereWidthSegments
number
Horizontal segments (longitude)
sphereHeightSegments
number
Vertical segments (latitude)
computeNormals
boolean
Recompute normals
Returns
Promise<SceneObject> - the created object.
Examples
Last updated