Class for evaluating surfaces as triangles over time.
MDynSweptTriangle provides access to surfaces (Nurbs and Polys) defined as triangles. It can only be accessed with the MFnDynSweptGeometryData class that is provided as an output from the geoConnector node.
The class provides parametric time evaluation for a triangle. Time is in the range 0 to 1, where 1 represents the current frame and 0 represents the previous frame. In this way you can get interpolated values of a triangle in motion.
- Examples:
-
simpleFluidEmitter.cpp, and sweptEmitter.cpp.
Public Member Functions |
| MDynSweptTriangle () |
| The class constructor.
|
| ~MDynSweptTriangle () |
| The class destructor.
|
MVector | vertex (int vertexId, double t=1.0) |
| Return the vertex requested by id, at the parametric time value.
|
MVector | normal (double t=1.0) |
| Given a parametric time specified by 't', returns the normal of the triangle.
|
MVector | normalToPoint (double x, double y, double z, double t=1.0) |
| Given a point, returns the normal of the triangle in the direction towards the point.
|
MVector | uvPoint (int vertexId) |
| Given a vertex id, this method returns the UV point for the vertex as a MVector.
|
double | area () |
| This method returns the area.
|
Static Public Member Functions |
static const char * | className () |
| Returns the name of this class.
|