BoundingBox
Overview
BoundingBox is a class in Aspose.3d for Python.
BoundingBox provides geometric queries such as minimum, maximum, center, size, and can test containment and overlap with other boxes.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
minimum | `` | Read | Is the minimum corner point (lowest x, y, z) of the box |
maximum | `` | Read | |
center | `` | Read | Is the geometric center point of the box |
size | `` | Read | Is the vector representing the box dimensions along each axis |
extent | `` | Read | Is the half-size vector from the center to the maximum corner |
Methods
| Signature | Description |
|---|---|
__init__() | |
get_null() → 'BoundingBox' | Returns a BoundingBox representing an empty box |
get_infinite() → 'BoundingBox' | Returns a BoundingBox representing an infinite box |
merge() | Expands this box to include another bounding box |
contains(arg) | Checks whether the box fully contains the given point or box |
overlaps_with(box: 'BoundingBox') → bool | Returns true if this box overlaps the specified BoundingBox |
scale() → float | Returns the uniform scaling factor applied to the box |
from_geometry(geometry) | Creates a BoundingBox that encloses the given geometry |