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 9 methods for BoundingBox objects in Python programs. Available methods include: __init__, __repr__, contains, from_geometry, get_infinite, get_null, merge, overlaps_with, scale. Public members are accessible to any Python application after installing the Aspose.3D FOSS for Python package. Properties: center, extent, maximum, minimum, size.

Properties

NameTypeAccessDescription
minimum``ReadGets the minimum.
maximum``ReadGets the maximum.
center``ReadGets the center.
size``ReadGets the size.
extent``ReadGets the extent.

Methods

SignatureDescription
__init__()Calls init on this BoundingBox instance.
get_null() → 'BoundingBox'Returns the null.
get_infinite() → 'BoundingBox'Returns the infinite.
merge()Expands the current box to include another bounding box or point, allowing accumulation of scene extents
contains(arg)Checks whether a point or another bounding box lies inside the current bounds
overlaps_with(box: 'BoundingBox') → boolReturns True when two boxes intersect, enabling quick spatial culling
scale() → floatComputes a uniform scaling factor based on the box size, assisting in normalizing geometry
from_geometry(geometry)Not implemented in the FOSS edition — throws at runtime. Constructs a bounding box that tightly fits the supplied geometry object
__repr__() → strCalls repr on this BoundingBox instance.

See Also

 English