BoundingBox
Overview
BoundingBox is a class in Aspose.3D FOSS for Python.
BoundingBox offers static constructors get_null() and get_infinite(), as well as instance methods merge(), contains(arg), and overlaps_with(box) for spatial queries.
This class declares 8 methods for 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__() | Calls init on this BoundingBox instance. |
get_null() → 'BoundingBox' | Returns the null. |
get_infinite() → 'BoundingBox' | Returns the infinite. |
merge() | Can combine multiple bounding boxes or geometry to expand the box to include all elements |
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 |