utility functions for use with PxTetrahedronMesh and subclasses
More...
#include <PxTetrahedronMeshExt.h>
|
| static PxI32 | findTetrahedronContainingPoint (const PxTetrahedronMesh *mesh, const PxVec3 &point, PxVec4 &bary, PxReal tolerance=1e-6f) |
| |
| static PxI32 | findTetrahedronClosestToPoint (const PxTetrahedronMesh *mesh, const PxVec3 &point, PxVec4 &bary) |
| |
| static void | extractTetMeshSurface (const void *tetrahedra, PxU32 numTetrahedra, bool sixteenBitIndices, PxArray< PxU32 > &surfaceTriangles, PxArray< PxU32 > *surfaceTriangleToTet=NULL, bool flipTriangleOrientation=false) |
| |
| static void | extractTetMeshSurface (const PxTetrahedronMesh *mesh, PxArray< PxU32 > &surfaceTriangles, PxArray< PxU32 > *surfaceTriangleToTet=NULL, bool flipTriangleOrientation=false) |
| |
utility functions for use with PxTetrahedronMesh and subclasses
◆ extractTetMeshSurface() [1/2]
| void physx::PxTetrahedronMeshExt::extractTetMeshSurface |
( |
const PxTetrahedronMesh * |
mesh, |
|
|
PxArray< PxU32 > & |
surfaceTriangles, |
|
|
PxArray< PxU32 > * |
surfaceTriangleToTet = NULL, |
|
|
bool |
flipTriangleOrientation = false |
|
) |
| |
|
static |
Extracts the surface triangles of a tetmesh
The extracted triangle's vertex indices point to the vertex buffer of the tetmesh.
- Parameters
-
| [in] | mesh | The mesh from which the surface shall be computed |
| [in] | surfaceTriangles | The resulting surface triangles |
| [in] | surfaceTriangleToTet | Optional array to get the index of a tetrahedron that is adjacent to the surface triangle with the corresponding index |
| [in] | flipTriangleOrientation | Reverses the orientation of the ouput triangles |
◆ extractTetMeshSurface() [2/2]
| void physx::PxTetrahedronMeshExt::extractTetMeshSurface |
( |
const void * |
tetrahedra, |
|
|
PxU32 |
numTetrahedra, |
|
|
bool |
sixteenBitIndices, |
|
|
PxArray< PxU32 > & |
surfaceTriangles, |
|
|
PxArray< PxU32 > * |
surfaceTriangleToTet = NULL, |
|
|
bool |
flipTriangleOrientation = false |
|
) |
| |
|
static |
Extracts the surface triangles of a tetmesh
The extracted triangle's vertex indices point to the vertex buffer of the tetmesh.
- Parameters
-
| [in] | tetrahedra | The tetrahedra indices |
| [in] | numTetrahedra | The number of tetrahedra |
| [in] | sixteenBitIndices | If set to true, the tetrahedra indices are read as 16bit integers, otherwise 32bit integers are used |
| [in] | surfaceTriangles | The resulting surface triangles |
| [in] | surfaceTriangleToTet | Optional array to get the index of a tetrahedron that is adjacent to the surface triangle with the corresponding index |
| [in] | flipTriangleOrientation | Reverses the orientation of the ouput triangles |
◆ findTetrahedronClosestToPoint()
Returns the index of the tetrahedron closest to a point
- Parameters
-
| [in] | mesh | The tetmesh |
| [in] | point | The point to find the closest tetrahedron for |
| [in] | bary | The barycentric coordinates of the point in the tetrahedron |
- Returns
- The index of the tetrahedon closest to the point
◆ findTetrahedronContainingPoint()
Returns the index of the tetrahedron that contains a point
- Parameters
-
| [in] | mesh | The tetmesh |
| [in] | point | The point to find the enclosing tetrahedron for |
| [in] | bary | The barycentric coordinates of the point inside the enclosing tetrahedron |
| [in] | tolerance | Tolerance value used classify points as inside if they lie exactly a tetrahedron's surface |
- Returns
- The index of the tetrahedon containing the point, -1 if not tetrahedron contains the opoint
The documentation for this class was generated from the following files:
- RavEngine/deps/physx/physx/include/extensions/PxTetrahedronMeshExt.h
- RavEngine/deps/physx/physx/source/physxextensions/src/ExtTetrahedronMeshExt.cpp