overlaps_with method
overlaps_with(self, box)
Check if current bounding box overlaps with specified bounding box.
Returns
True if the current bounding box overlaps with the given one.
def overlaps_with(self, box):
...
Parameter | Type | Description |
---|---|---|
box | BoundingBox | The other bounding box to test |
Example
The following code shows how to check if two bounding boxes overlaps with each other.
from aspose.threed.utilities import BoundingBox
boundingBox = BoundingBox(0, 0, 0, 10, 10, 10)
bbox2 = BoundingBox(1, 1, 1, 11, 11, 11)
print("Bounding box overlaps = " + str(boundingBox.overlaps_with(bbox2)))
See Also
- module
aspose.threed.utilities
- class
BoundingBox