Python API 2.0 Reference
|
Public Member Functions | |
def | __init__ () |
Static Public Member Functions | |
def | __new__ () |
Properties | |
barycentricCoordinates = property(...) | |
edgeInterpolantValue = property(...) | |
index = property(...) | |
instanceID = property(...) | |
intersectionPoint = property(...) | |
selectionLevel = property(...) | |
This class gives a description of an intersection when a selection hit occurs.
def OpenMayaRender.MIntersection.__init__ | ( | ) |
Initialize self. See help(type(self)) for accurate signature.
|
static |
Create and return a new object. See help(type) for accurate signature.
|
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.
|
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.
|
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.
|
static |
The draw instance ID of the render item. Only valid for instanced render items.
|
static |
The intersection point.
|
static |
The selection level of the intersection. See MSelectionContext::selectionLevel for list of valid level values.