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
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
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
static
The draw instance ID of the render item. Only valid for instanced render items.
OpenMayaRender.MIntersection.intersectionPoint
static
The intersection point.
OpenMayaRender.MIntersection.selectionLevel
static
The selection level of the intersection.
See MSelectionContext::selectionLevel for list of valid level values.