Python API 2.0 Reference
OpenMaya.MPointOnMesh Class Reference
+ Inheritance diagram for OpenMaya.MPointOnMesh:

Public Member Functions

def __init__ ()
 

Static Public Member Functions

def __new__ ()
 

Properties

 barycentricCoords = property(...)
 
 face = property(...)
 
 normal = property(...)
 
 point = property(...)
 
 triangle = property(...)
 

Detailed Description

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.

Constructor & Destructor Documentation

def OpenMaya.MPointOnMesh.__init__ ( )
Initialize self.  See help(type(self)) for accurate signature.

Member Function Documentation

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

Property Documentation

OpenMaya.MPointOnMesh.barycentricCoords = property(...)
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.
OpenMaya.MPointOnMesh.face = property(...)
static
 (int) Mesh-global index of the face containing the point.
OpenMaya.MPointOnMesh.normal = property(...)
static
 (MFloatVector) Surface normal vector at the point.
OpenMaya.MPointOnMesh.point = property(...)
static
 (MFloatPoint) 3D position of the point.
OpenMaya.MPointOnMesh.triangle = property(...)
static
 (int) Face-local index of the triangle containing the point.