Python API 2.0 Reference
|
Public Member Functions | |
def | __init__ () |
def | __repr__ () |
def | __str__ () |
def | clear () |
def | contains () |
def | expand () |
def | intersects () |
def | transformUsing () |
Static Public Member Functions | |
def | __new__ () |
Properties | |
center = property(...) | |
depth = property(...) | |
height = property(...) | |
max = property(...) | |
min = property(...) | |
width = property(...) | |
3D axis-aligned bounding box.
Signature | Parameters | Description |
---|---|---|
MBoundingBox() | Default constructor. Returns a new, empty bounding box with, with both corners set to (0, 0, 0). | |
MBoundingBox(src) | src - MBoundingBox | Copy constructor. Returns a new bounding box with the same corners as src |
MBoundingBox(min,max) | min - MPoint max - MPoint | Returns a new bounding box whose minimum and maximum values are specified by min and max, respectively. |
def OpenMaya.MBoundingBox.__init__ | ( | ) |
Initialize self. See help(type(self)) for accurate signature.
|
static |
Create and return a new object. See help(type) for accurate signature.
def OpenMaya.MBoundingBox.__repr__ | ( | ) |
Return repr(self).
def OpenMaya.MBoundingBox.__str__ | ( | ) |
Return str(self).
OpenMaya.MBoundingBox.clear | ( | ) |
Empties the bounding box, setting its corners to (0, 0, 0).
Signature: | clear() |
Parameters: | |
Returns: | New reference to self. |
Description: | Empties bounding box, setting its corners to (0, 0, 0). |
OpenMaya.MBoundingBox.contains | ( | ) |
Returns True if a point lies within the bounding box.
Signature: | contains(point) |
Parameters: | point - MPoint |
Returns: | bool |
Description: | Returns True if point lies within bounding box. |
OpenMaya.MBoundingBox.expand | ( | ) |
Expands the bounding box to include a point or other bounding box.
Signature: | expand(point) |
Parameters: | point - MPoint |
Returns: | New reference to self. |
Description: | Expands bounding box to include point. |
Signature: | expand(box) |
Parameters: | box - MBoundingBox |
Returns: | New reference to self. |
Description: | Expands bounding box to include all of box. |
OpenMaya.MBoundingBox.intersects | ( | ) |
Returns True if any part of a given bounding box lies within this one.
Signature: | intersects(box,tolerance=0.0) |
Parameters: | box - MBoundingBox tolerance - float |
Returns: | bool |
Description: | Returns True if any part of box lies within a distance of tolerance of this bounding box. |
OpenMaya.MBoundingBox.transformUsing | ( | ) |
Multiplies the bounding box's corners by a matrix.
Signature: | transformUsing(matrix) |
Parameters: | matrix - MMatrix |
Returns: | New reference to self. |
Description: | Multiplies bounding box's corners by matrix and returns the smallest bounding box which contains the results. |
|
static |
Center point
Name: | center |
Type: | MPoint |
Access: | R |
Description: | Center of bounding box. |
|
static |
Size in Z
Name: | depth |
Type: | float |
Access: | R |
Description: | Depth (size in Z) of bounding box. |
|
static |
Size in Y
Name: | height |
Type: | float |
Access: | R |
Description: | Height (size in Y) of bounding box. |
|
static |
Maximum corner point
Name: | max |
Type: | MPoint |
Access: | R |
Description: | Bounding box's maximum values. |
|
static |
Minimum corner point
Name: | min |
Type: | MPoint |
Access: | R |
Description: | Bounding box's minimum values. |
|
static |
Size in X
Name: | width |
Type: | float |
Access: | R |
Description: | Width (size in X) of bounding box. |