OpenMaya.MBoundingBox Class Reference
         
    
3D axis-aligned bounding box.
 Constructors
| 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. | 
 
 
      
        
          | OpenMaya.MBoundingBox.__init__ | ( |  | ) |  | 
      
 
x.__init__(...) initializes x; see help(type(x)) for signature
 
 
 
      
        
          | OpenMaya.MBoundingBox.__repr__ | ( |  | ) |  | 
      
 
x.__repr__() <==> repr(x)
 
 
 
      
        
          | OpenMaya.MBoundingBox.__str__ | ( |  | ) |  | 
      
 
 
      
        
          | 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. | 
 
 
  
  | 
        
          | OpenMaya.MBoundingBox.center |  | static | 
 
 Center point
| Name: | center | 
| Type: | MPoint | 
| Access: | R | 
| Description: | Center of bounding box. | 
 
 
  
  | 
        
          | OpenMaya.MBoundingBox.depth |  | static | 
 
 Size in Z
| Name: | depth | 
| Type: | float | 
| Access: | R | 
| Description: | Depth (size in Z) of bounding box. | 
 
 
  
  | 
        
          | OpenMaya.MBoundingBox.height |  | static | 
 
 Size in Y
| Name: | height | 
| Type: | float | 
| Access: | R | 
| Description: | Height (size in Y) of bounding box. | 
 
 
  
  | 
        
          | OpenMaya.MBoundingBox.max |  | static | 
 
 Maximum corner point
| Name: | max | 
| Type: | MPoint | 
| Access: | R | 
| Description: | Bounding box's maximum values. | 
 
 
  
  | 
        
          | OpenMaya.MBoundingBox.min |  | static | 
 
 Minimum corner point
| Name: | min | 
| Type: | MPoint | 
| Access: | R | 
| Description: | Bounding box's minimum values. | 
 
 
  
  | 
        
          | OpenMaya.MBoundingBox.width |  | static | 
 
 Size in X
| Name: | width | 
| Type: | float | 
| Access: | R | 
| Description: | Width (size in X) of bounding box. |