merge method
Contents
[
Hide
]merge
Merge current bounding box with given point
def merge(self, pt):
...
Parameter | Type | Description |
---|---|---|
pt | Vector4 | The point to be merged into the bounding box |
Example
The following code shows how to merge a point to bounding box.
from aspose.threed.utilities import BoundingBox, Vector4
boundingBox = BoundingBox.null
boundingBox.merge(Vector4(1, 10, -1))
print("Bounding box = " + str(boundingBox))
merge
Merge current bounding box with given point
def merge(self, pt):
...
Parameter | Type | Description |
---|---|---|
pt | Vector3 | The point to be merged into the bounding box |
Example
The following code shows how to merge a point to bounding box.
from aspose.threed.utilities import BoundingBox, Vector3
boundingBox = BoundingBox.null
boundingBox.merge(Vector3(1, 10, -1))
print("Bounding box = " + str(boundingBox))
merge
Merges the new box into the current bounding box.
def merge(self, bb):
...
Parameter | Type | Description |
---|---|---|
bb | BoundingBox | The bounding box to merge |
merge
Merge current bounding box with given point
def merge(self, x, y, z):
...
Parameter | Type | Description |
---|---|---|
x | float | The point to be merged into the bounding box |
y | float | The point to be merged into the bounding box |
z | float | The point to be merged into the bounding box |
Example
The following code shows how to merge a point to bounding box.
from aspose.threed.utilities import BoundingBox
boundingBox = BoundingBox.null
boundingBox.merge(1, 10, -1)
print("Bounding box = " + str(boundingBox))
See Also
- module
aspose.threed.utilities
- class
BoundingBox