PxDeformableSkinningExt
Defined in include/extensions/PxDeformableSkinningExt.h
-
class PxDeformableSkinningExt
Utility functions for deformable surface and volume skinning.
Public Static Functions
-
static void initializeInterpolatedVertices(PxTriangleMeshEmbeddingInfo *embeddingInfo, const PxVec3 *guideVertices, const PxVec3 *guideNormals, const PxU32 *guideTriangles, PxU32 nbGuideTriangles, const PxVec3 *embeddedVertices, PxU32 nbEmbeddedVertices)
Initializes the interpolated vertices from guide vertices, normals, and triangles for deformable surface skinning.
This function calculates the skinning embedding information for a deformable surface mesh, where each embedded vertex is interpolated based on the surrounding guide vertices and triangles.
See also
PxTriangleMeshEmbeddingInfo
- Parameters
embeddingInfo – [out] A pointer to a PxTriangleMeshEmbeddingInfo object that will store the calculated embedding information. Must be of length numEmbeddedVertices
guideVertices – [in] A pointer to an array of guide vertices used for interpolation
guideNormals – [in] A pointer to an array of guide normals corresponding to the guide vertices
guideTriangles – [in] A pointer to an array of indices defining the guide triangles
nbGuideTriangles – [in] The number of guide triangles
embeddedVertices – [in] A pointer to an array of vertices that will be embedded and interpolated
nbEmbeddedVertices – [in] The number of embedded vertices
-
static void initializeInterpolatedVertices(PxTetrahedronMeshEmbeddingInfo *embeddingInfo, const PxVec3 *guideVertices, const PxU32 *guideTetrahedra, PxU32 nbGuideTetrahedra, const PxVec3 *embeddedVertices, PxU32 nbEmbeddedVertices)
Initializes the interpolated vertices from guide vertices and tetrahedra for deformable volume skinning.
This function calculates the skinning embedding information for a deformable volume mesh, where each embedded vertex is interpolated based on the surrounding guide vertices and tetrahedra.
See also
PxTetrahedronMeshEmbeddingInfo
- Parameters
embeddingInfo – [out] A pointer to a PxTetrahedronMeshEmbeddingInfo object that will store the calculated embedding information. Must be of length numEmbeddedVertices
guideVertices – [in] A pointer to an array of guide vertices used for interpolation
guideTetrahedra – [in] A pointer to an array of indices defining the guide tetrahedra
nbGuideTetrahedra – [in] The number of guide tetrahedra
embeddedVertices – [in] A pointer to an array of vertices that will be embedded and interpolated
nbEmbeddedVertices – [in] The number of embedded vertices
-
static void initializeInterpolatedVertices(PxTriangleMeshEmbeddingInfo *embeddingInfo, const PxVec3 *guideVertices, const PxVec3 *guideNormals, const PxU32 *guideTriangles, PxU32 nbGuideTriangles, const PxVec3 *embeddedVertices, PxU32 nbEmbeddedVertices)