get_bounding_box method
get_bounding_box
Gets the bounding box of current entity in its object space coordinate system.
def get_bounding_box(self):
...
Example
The following code shows how to calculate the bounding box of a shape
from aspose.threed.entities import Sphere
sphere = Sphere()
sphere.radius = 10 .0
entity = sphere
bbox = entity.get_bounding_box()
print(f"The bounding box of the entity is {bbox.minimum} ~ {bbox.maximum}")
See Also
- module
aspose.threed.profiles
- class
BoundingBox
- class
LShape