Skip to content

Geom.sphere()

Description

A 3D primitive (volume element) -> sphere, constructed relative to the point [0,0,0].

Syntax

JS
Geom.sphere(r: Number) -> Shape
Geom.sphere(r: Number, an1: Number) -> Shape
Geom.sphere(r: Number, an1: Number, an2: Number) -> Shape
Geom.sphere(r: Number, an1: Number, an2: Number, an3: Number) -> Shape

Parameters

Parameter Type Default Value Mandatory Description
r Number ✅ Radius of the sphere
an1 Number ✅ First rotation angle (in degrees)
an2 Number ✅ Second rotation angle (in degrees)
an3 Number ✅ Third rotation angle (in degrees)

Return value

Type Description
Shape An object of type Shape, representing the sphere.

Example

JS
let s = Geom.sphere(100)
console.info(s) // output:

See also

Last update: 15 August 2025, 14:32