from_geometry method

from_geometry(, geometry)

Construct a bounding box from given geometry

Returns

The bounding box of given geometry


@staticmethod
def from_geometry(geometry):
    ...
ParameterTypeDescription
geometryaspose.threed.entities.GeometryThe geometry to calculate bounding box

Example

The following code shows how to construct a bounding box from a geometry instance.

from aspose.threed.entities import Sphere
from aspose.threed.utilities import BoundingBox

sphere = Sphere().to_mesh()
boundingBox = BoundingBox.from_geometry(sphere)
print("Bounding box = "  + str(boundingBox))

See Also