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

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()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')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

 English