pymel.core.datatypes.BoundingBox¶
digraph inheritance1aafb4a4e0 { rankdir=TB; ranksep=0.15; nodesep=0.15; size="8.0, 12.0"; "BoundingBox" [fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",URL="#pymel.core.datatypes.BoundingBox",style="setlinewidth(0.5)",height=0.25,shape=box,fontsize=8]; "MBoundingBox" -> "BoundingBox" [arrowsize=0.5,style="setlinewidth(0.5)"]; "MBoundingBox" [shape=box,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=8,style="setlinewidth(0.5)",height=0.25]; }
- class BoundingBox(*args)¶
- __melobject__()¶
A flat list of 6 values [minx, miny, minz, maxx, maxy, maxz]
- 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