Skip to content

Geom.box()

Description

3D primitive (volume): prism, defined by three dimensions x, y, z and constructed relative to the point [0,0,0].

Syntax

JS
Geom.box(x: Number, y: Number, z: Number) -> Shape
Geom.box(a: Number) -> Shape

Parameters

Parameter Type Description
x Number Size of the prism along axis X.
y Number Size of the prism along axis Y.
z Number Size of the prism along axis Z.
a Number Size of the cube.

Return value

Type Description
Shape Prism.

Example

JS
1
2
3
4
let s1 = Geom.box(10, 20, 30);
console.info(s1); // output:
let s2 = Geom.box(10);
console.info(s2); // output:

See also

Last update: 14 August 2025, 18:47