Skip to main content

sphere()

Creates a full sphere with the given radius.

Returns: SceneObject

Signatures

sphere(radius: number): SceneObject

Creates a full sphere with the given radius.

ParameterTypeDescription
radiusnumberThe sphere radius

sphere(radius: number, angle: number): SceneObject

Creates a partial sphere with the given radius and sweep angle.

ParameterTypeDescription
radiusnumberThe sphere radius
anglenumberThe sweep angle in degrees