merge method

merge(self, pt)

Merge current bounding box with given point


def merge(self, pt):
    ...
ParameterTypeDescription
ptVector4The 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
ptVector3The 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
bbBoundingBoxThe 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