Python API 2.0 Reference: OpenMaya.MPointOnMesh Class Reference

+ Inheritance diagram for OpenMaya.MPointOnMesh:

Public Member Functions

__init__ ()
 

Static Public Member Functions

__new__ ()
 

Properties

 barycentricCoords
 
 face
 
 normal
 
 point
 
 triangle
 

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

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

Member Function Documentation

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

Property Documentation

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