Bounding Box Utilities

Module: cutoop.bbox.

objectCUBE_3x8 = array([[ 1, 1, -1, -1, 1, 1, -1, -1], [ 1, 1, 1, 1, -1, -1, -1, -1], [ 1, -1, 1, -1, 1, -1, 1, -1]])

cube from (-1, -1, -1) to (1, 1, 1).

The index assignment is:

...   6------4
...  /|     /|
... 2-+----0 |
... | 7----+-5
... |/     |/
... 3------1
functioncreate_3d_bbox​(size: list[float] | ndarray | float)

Create a 3d aabb bbox centered at origin with specific size.

Parameters: size – bound box side length.

Returns: ndarray of shape 3, N.

The index assignment is:

...   6------4
...  /|     /|
... 2-+----0 |
... | 7----+-5
... |/     |/
... 3------1
functioncreate_3d_bbox_pc​(size: list[float] | ndarray | float)

Generate point cloud for a bounding box. Mainly used for debuging.

Returns: numpy array of shape (3, ?)