Python API 2.0 Reference
|
Public Member Functions | |
def | __init__ () |
Static Public Member Functions | |
def | __new__ () |
Properties | |
barycentricCoords = property(...) | |
face = property(...) | |
normal = property(...) | |
point = property(...) | |
triangle = property(...) | |
This class is used to return information about a point on the surface of a mesh: 3D position, normal, barycentric coordinates, etc. The point can be anywhere on the mesh, not just at its vertices.
def OpenMaya.MPointOnMesh.__init__ | ( | ) |
Initialize self. See help(type(self)) for accurate signature.
|
static |
Create and return a new object. See help(type) for accurate signature.
|
static |
(float, float) Tuple containing the barycentric coordinates of the point. If the triangle has vertices (A, B, C) then barycentric coordinates of (u, v) mean that the 3D position of the point is u*A + v*B + (1 - u - v)*C. The barycentric coordinates are particularly useful when interpolating attributes from one mesh to another.
|
static |
(int) Mesh-global index of the face containing the point.
|
static |
(MFloatVector) Surface normal vector at the point.
|
static |
(MFloatPoint) 3D position of the point.
|
static |
(int) Face-local index of the triangle containing the point.