Python API 2.0 Reference
OpenMayaRender.MIntersection Class Reference
+ Inheritance diagram for OpenMayaRender.MIntersection:

Public Member Functions

def __init__ ()
 

Static Public Member Functions

def __new__ ()
 

Properties

 barycentricCoordinates = property(...)
 
 edgeInterpolantValue = property(...)
 
 index = property(...)
 
 instanceID = property(...)
 
 intersectionPoint = property(...)
 
 selectionLevel = property(...)
 

Detailed Description

This class gives a description of an intersection when a selection hit occurs.

Constructor & Destructor Documentation

def OpenMayaRender.MIntersection.__init__ ( )
Initialize self.  See help(type(self)) for accurate signature.

Member Function Documentation

def OpenMayaRender.MIntersection.__new__ ( )
static
Create and return a new object.  See help(type) for accurate signature.

Property Documentation

OpenMayaRender.MIntersection.barycentricCoordinates = property(...)
static
 Get the barycentric coordinates (a, b). Only valid for triangles.
 Follows Tomas Moller & Ben Trumbore, jgt 97 "Fast minimum storage ray/triangle intersection" which means that a point, T(a,b), on a triangle is given by: 
    T(a,b) = (1-a-b)V0 + aV1 + bV2
 where V0, V1, and V2 are the triangle vertices.
OpenMayaRender.MIntersection.edgeInterpolantValue = property(...)
static
 The edge interpolant value. Only valid for edges.
 It corresponds to the intersection position on the edge, from 0 to 1 starting at V0 going to V1.
OpenMayaRender.MIntersection.index = property(...)
static
 The index of the hit vertex, edge or triangle.
 It is the position in the index buffer of the render item geometry when provided, and the position in the vertex buffer if not.
OpenMayaRender.MIntersection.instanceID = property(...)
static
 The draw instance ID of the render item. Only valid for instanced render items.
OpenMayaRender.MIntersection.intersectionPoint = property(...)
static
 The intersection point.
OpenMayaRender.MIntersection.selectionLevel = property(...)
static
 The selection level of the intersection.
 See MSelectionContext::selectionLevel for list of valid level values.