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

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

Methods

SignatureDescription
__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')boolReturns true if this box intersects the specified BoundingBox
scale()floatReturns 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

See Also