Box.from_width_height_depth

classmethod Box.from_width_height_depth(width, height, depth)

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
  • width (float) – Width of the box.

  • height (float) – Height of the box.

  • depth (float) – Depth of the box.

Returns

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)