cloudViewer.geometry.OrientedBoundingBox#

class cloudViewer.geometry.OrientedBoundingBox#

The base OrientedBoundingBox class.

__init__(*args, **kwargs)#

Overloaded function.

  1. __init__(self: cloudViewer.geometry.OrientedBoundingBox) -> None

Default constructor

  1. __init__(self: cloudViewer.geometry.OrientedBoundingBox, arg0: cloudViewer.geometry.OrientedBoundingBox) -> None

Copy constructor

  1. __init__(self: cloudViewer.geometry.OrientedBoundingBox, center: typing.Annotated[numpy.typing.ArrayLike, numpy.float64, “[3, 1]”], R: typing.Annotated[numpy.typing.ArrayLike, numpy.float64, “[3, 3]”], extent: typing.Annotated[numpy.typing.ArrayLike, numpy.float64, “[3, 1]”]) -> None

Create OrientedBoundingBox from center, rotation R and extent in x, y and z direction

box_points(self)#

Returns the eight points that define the bounding box.

Returns:

cloudViewer.utility.Vector3dVector

clear(self)#

Clear all elements in the geometry..

Returns:

cloudViewer.geometry.OrientedBoundingBox

static create_from_axis_aligned_bounding_box(aabox)#

Returns an oriented bounding box from the BoundingBox.

Parameters:

aabox (cloudViewer::BoundingBoxTpl) – BoundingBox object from which OrientedBoundingBox is created.

Returns:

cloudViewer.geometry.OrientedBoundingBox

get_box_points(self)#

Returns the eight points that define the bounding box.

Returns:

cloudViewer.utility.Vector3dVector

get_color(self)#

float64 array of shape (3, )

Returns:

typing.Annotated[numpy.typing.NDArray[numpy.float64], “[3, 1]”]

get_extent(self)#

Get the extent/length of the bounding box in x, y, and z dimension in its frame of reference

Returns:

typing.Annotated[numpy.typing.NDArray[numpy.float64], “[3, 1]”]

get_half_extent(self)#

Returns the half extent of the bounding box in its frame of reference.

Returns:

typing.Annotated[numpy.typing.NDArray[numpy.float64], “[3, 1]”]

get_max_extent(self)#

Returns the max extent of the bounding box in its frame of reference

Returns:

float

get_point_indices_within_bounding_box(self, points)#

Return indices to points that are within the bounding box.

Parameters:

points (cloudViewer.utility.Vector3dVector) – A list of points.

Returns:

list[int]

set_color(self, color)#

float64 array of shape (3, )

Parameters:

color (Annotated[numpy.typing.ArrayLike, numpy.float64,) –

Returns:

None

volume(self)#

Returns the volume of the bounding box.

Returns:

float

property R#

float64 array of shape (3,3 )

property center#

float64 array of shape (3, )

property color#

float64 array of shape (3, )

property extent#

float64 array of shape (3, )