Box.from_width_height_depth
- classmethod Box.from_width_height_depth(width, height, depth)[source]
Construct a box from its width, height and depth.
Note that width is along the X-axis, height along Z-axis, and depth along the Y-axis.
- Parameters:
- widthfloat
Width of the box.
- heightfloat
Height of the box.
- depthfloat
Depth of the box.
- Returns:
compas.geometry.Box
The resulting box.
Notes
The box is axis-aligned to the world coordinate system and centered at the origin.
Examples
>>> box = Box.from_width_height_depth(1.0, 2.0, 3.0)