BoundingBox
Overview
BoundingBox is a class in Aspose.3D FOSS for Python.
BoundingBox.get_null returns a BoundingBox representing an empty or null volume.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
minimum | `` | Read | Is the vector of the box’s minimum corner coordinates |
maximum | `` | Read | |
center | `` | Read | Is the geometric center point of the bounding box |
size | `` | Read | Is the vector representing the box’s width, height, and depth |
extent | `` | Read | Is the half-size vector from the center to any corner of the box |
_minimum | `` | Read | |
_maximum | `` | Read |
Methods
| Signature | Description |
|---|---|
__init__() | |
get_null() → 'BoundingBox' | Returns a BoundingBox representing an empty or null volume |
get_infinite() → 'BoundingBox' | Returns a BoundingBox that encloses an infinite volume |
merge() | Expands the box to include additional geometry or bounds |
contains(arg) | Returns true if the supplied point or box lies inside the bounding box |
overlaps_with(box: 'BoundingBox') → bool | Returns true if this box intersects the specified BoundingBox |
scale() → float | Returns the uniform scaling factor applied to the bounding box |
from_geometry(geometry) | Not implemented in the FOSS edition — throws at runtime. Creates a bounding box that tightly encloses the given geometry |