BoundingBox
Overview
BoundingBox is a class in Aspose.3D FOSS for Python.
BoundingBox.get_null returns a BoundingBox representing an empty or null volume.
This class provides 8 methods for working with BoundingBox objects in Python programs.
Available methods include: __init__, contains, from_geometry, get_infinite, get_null, merge, overlaps_with, scale.
All public members are accessible to any Python application after installing the Aspose.3D FOSS for Python package.
Properties: center, extent, maximum, minimum, size.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
minimum | `` | Read | Gets the minimum. |
maximum | `` | Read | Gets the maximum. |
center | `` | Read | Gets the center. |
size | `` | Read | Gets the size. |
extent | `` | Read | Gets the extent. |
Methods
| Signature | Description |
|---|---|
__init__() | |
get_null() → 'BoundingBox' | Returns the null. |
get_infinite() → 'BoundingBox' | Returns the infinite. |
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 |