merge method

merge(self, pt)

Merge current bounding box with given point


def merge(self, pt):
    ...
ParameterTypeDescription
ptaspose.threed.utilities.Vector4The 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(self, pt)

Merge current bounding box with given point


def merge(self, pt):
    ...
ParameterTypeDescription
ptaspose.threed.utilities.Vector3The 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(self, bb)

Merges the new box into the current bounding box.


def merge(self, bb):
    ...
ParameterTypeDescription
bbaspose.threed.utilities.BoundingBoxThe bounding box to merge

merge(self, x, y, z)

Merge current bounding box with given point


def merge(self, x, y, z):
    ...
ParameterTypeDescription
xfloatThe point to be merged into the bounding box
yfloatThe point to be merged into the bounding box
zfloatThe 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