pymel.core.datatypes.BoundingBox

Inheritance diagram of BoundingBox

class BoundingBox(*args)
apicls

alias of MBoundingBox

center()

Returns the center of the bounding box.

Return type:Point

Derived from api method maya.OpenMaya.MBoundingBox.center

clear()

Empties the current bounding box.

Derived from api method maya.OpenMaya.MBoundingBox.clear

Undo is not currently supported for this method

contains(point)

Returns true if the bounding box contains the given point.

Parameters :
point : Point

point to check for inclusion in this bounding box

Return type:

bool

Derived from api method maya.OpenMaya.MBoundingBox.contains

d

Returns the depth of the bounding box.

Return type:float

Derived from api method maya.OpenMaya.MBoundingBox.depth

depth()

Returns the depth of the bounding box.

Return type:float

Derived from api method maya.OpenMaya.MBoundingBox.depth

expand(point)

Expand the bounding box to include the given point.

Parameters :
point : Point

new point to include in the bounding box.

Derived from api method maya.OpenMaya.MBoundingBox.expand

Undo is not currently supported for this method

h

Returns the height of the bounding box.

Return type:float

Derived from api method maya.OpenMaya.MBoundingBox.height

height()

Returns the height of the bounding box.

Return type:float

Derived from api method maya.OpenMaya.MBoundingBox.height

intersects(box, tol=0.0)

Returns true if the bounding box intersects another given bounding box

Parameters :
box : BoundingBox

bounding box to check for intersection

tol : float

tolerance of the intersection check

Return type:

bool

Derived from api method maya.OpenMaya.MBoundingBox.intersects

max()

Returns the maximum point for the bounding box. That is the point whose x, y, and z components represent the bounding box’s maximum value in each dimension.

Return type:Point

Derived from api method maya.OpenMaya.MBoundingBox.max

min()

Returns the minimum point for the bounding box. That is the point whose x, y, and z components represent the bounding box’s minimum value in each dimension.

Return type:Point

Derived from api method maya.OpenMaya.MBoundingBox.min

repr()
transformUsing(matrix)

Apply the given transformation to this bounding box.

Parameters :
matrix : Matrix

transformation matrix

Derived from api method maya.OpenMaya.MBoundingBox.transformUsing

Undo is not currently supported for this method

w

Returns the width of the bounding box.

Return type:float

Derived from api method maya.OpenMaya.MBoundingBox.width

width()

Returns the width of the bounding box.

Return type:float

Derived from api method maya.OpenMaya.MBoundingBox.width

Previous topic

pymel.core.datatypes.ArrayIter

Next topic

pymel.core.datatypes.Color

Core

Core Modules

Other Modules

This Page