Main Physique Export API Elements
The following is a list of primary classes and functions in the physique export interface
contained in the file PhyExp.h.
Rigid Vertex Interface
A rigid vertex is represented by an instance of IPhyRigidVertex.
Blended Rigid Vertex Interface
A blended rigid vertex is represented by an instance of IPhyBlendedRigidVertex.
Physique Context Export Interface
The physique context export interface is represented by an instance of IPhysiqueContextExport. A pointer to IPhysiqueContextExport can be retrieved using the method IPhysiqueExport::GetContextInterface(). The context Interface is associated with a physique modifier associated with a node.
- IPhysiqueContextExport::GetNumberVertices() - Returns the number of vertices for the given physique object.
- IPhysiqueContextExport::ConvertToRigid() - When called with the value TRUE as an argument, all vertices accessed by IPhysiqueContextExport::GetVertexInterface() will be converted to rigid vertices. If passed the value FALSE as an argument, then
any deformable vertices will return NULL when retrieved using IPhysiqueContextExport::GetVertexInterface().
- IPhysiqueContextExport::GetVertexInterface() - Returns an IPhyExport pointer for the nth vertex.
-
- Rigid non-blended vertices (assigned rigid to a single Node) will return an object
that derives from IPhyRigidVertex.
- Rigid Blended vertices (assigned rigid to more than one Node) will return an object
that derives from IPhyBlendedRigidVertex.
- All other vertices will return NULL, unless ConvertToRigid() has been called with the argument TRUE, in which case all vertices return either
IPhyRigidVertex or IPhyBlendedRigidVertex.
- Rigid non-blended vertices (assigned rigid to a single Node) will return an object
that derives from IPhyRigidVertex.
- Rigid Blended vertices (assigned rigid to more than one Node) will return an object
that derives from IPhyBlendedRigidVertex.
- All other vertices will return NULL, unless ConvertToRigid() has been called with the argument TRUE, in which case all vertices return either
IPhyRigidVertex or IPhyBlendedRigidVertex.
- IPhysiqueContextExport::ReleaseVertexInterface() - You must call this method to free the vertex interface from memory.
Vertex Export Interface
The vertex export interface is an instance of IPhyVertexExport and can is retrieved by calling IPhyContextExport::GetVertexInterface(). This is the base class for all vertex export interface classes.
- IPhyVertexExport::GetVertexType() - Returns an integer representing the defined vertex type for the a vertex interface.
We suggest using dynamic_cast<T*> and comparing against NULL instead to query the interface type.
Rigid Vertex Export Interface
The interface IPhyRigidVertex derives from IPhyVertexExport and is the base class for all non-blended rigid vertex assignments.