RavEngine
Loading...
Searching...
No Matches
physx::Gu::BVTetrahedronMesh Class Reference
Inheritance diagram for physx::Gu::BVTetrahedronMesh:
[legend]
Collaboration diagram for physx::Gu::BVTetrahedronMesh:
[legend]

Public Member Functions

 BVTetrahedronMesh (TetrahedronMeshData &mesh, SoftBodyCollisionData &d, MeshFactory *factory=NULL)
 
PX_FORCE_INLINE const Gu::BV4Tree & getBV4Tree () const
 
PX_FORCE_INLINE Gu::BV4Tree & getBV4Tree ()
 
PX_FORCE_INLINE void * getGRBTetraFaceRemap ()
 
PX_FORCE_INLINE void * getGRBTetraFaceRemapInverse ()
 
virtual const PxU32 * getTetrahedraRemap () const
 Returns the tetrahedra remapping table.
 
PX_FORCE_INLINE bool isTetMeshGPUCompatible () const
 
- Public Member Functions inherited from physx::Gu::TetrahedronMesh
 TetrahedronMesh (PxU32 nbVertices, PxVec3 *vertices, PxU32 nbTetrahedrons, void *tetrahedrons, PxU8 flags, PxBounds3 aabb, PxReal geomEpsilon)
 
 TetrahedronMesh (TetrahedronMeshData &mesh)
 
 TetrahedronMesh (MeshFactory *meshFactory, TetrahedronMeshData &mesh)
 
virtual const char * getConcreteTypeName () const
 Returns string name of dynamic type.
 
virtual void acquireReference ()
 Acquires a counted reference to this object.
 
virtual PxU32 getReferenceCount () const
 Returns the reference count of the object.
 
virtual void release ()
 Decrements the reference count of a tetrahedron mesh and releases it if the new reference count is zero.
 
virtual void onRefCountZero ()
 
virtual PxU32 getNbVertices () const
 Returns the number of vertices.
 
virtual const PxVec3 * getVertices () const
 Returns the vertices.
 
virtual PxU32 getNbTetrahedrons () const
 Returns the number of tetrahedrons.
 
virtual const void * getTetrahedrons () const
 Returns the tetrahedron indices.
 
virtual PxTetrahedronMeshFlags getTetrahedronMeshFlags () const
 Reads the PxTetrahedronMesh flags.
 
PX_FORCE_INLINE PxU32 getNbVerticesFast () const
 
PX_FORCE_INLINE PxVec3 * getVerticesFast () const
 
PX_FORCE_INLINE PxU32 getNbTetrahedronsFast () const
 
PX_FORCE_INLINE const void * getTetrahedronsFast () const
 
PX_FORCE_INLINE bool has16BitIndices () const
 
PX_FORCE_INLINE bool hasPerTriangleMaterials () const
 
PX_FORCE_INLINE const PxU16 * getMaterials () const
 
PX_FORCE_INLINE const CenterExtents & getLocalBoundsFast () const
 
PX_FORCE_INLINE const CenterExtentsPadded & getPaddedBounds () const
 
virtual PxBounds3 getLocalBounds () const
 Returns the local-space (vertex space) AABB from the tetrahedron mesh.
 
- Public Member Functions inherited from physx::PxBase
template<class T >
T * is ()
 
template<class T >
const T * is () const
 
PX_FORCE_INLINE PxType getConcreteType () const
 Returns concrete type of object.
 
PX_FORCE_INLINE void setBaseFlag (PxBaseFlag::Enum flag, bool value)
 Set PxBaseFlag

 
PX_FORCE_INLINE void setBaseFlags (PxBaseFlags inFlags)
 Set PxBaseFlags

 
PX_FORCE_INLINE PxBaseFlags getBaseFlags () const
 Returns PxBaseFlags.
 
virtual bool isReleasable () const
 Whether the object is subordinate.
 
- Public Member Functions inherited from physx::PxUserAllocated
PX_INLINE void * operator new (size_t, void *address)
 
PX_INLINE void operator delete (void *, void *)
 
template<typename Alloc >
PX_INLINE void * operator new (size_t size, Alloc alloc, const char *fileName, int line)
 
template<typename Alloc >
PX_INLINE void * operator new (size_t size, size_t, Alloc alloc, const char *fileName, int line)
 
template<typename Alloc >
PX_INLINE void * operator new[] (size_t size, Alloc alloc, const char *fileName, int line)
 
template<typename Alloc >
PX_INLINE void * operator new[] (size_t size, size_t, Alloc alloc, const char *fileName, int line)
 
template<typename Alloc >
PX_INLINE void operator delete (void *ptr, Alloc alloc, const char *fileName, int line)
 
template<typename Alloc >
PX_INLINE void operator delete[] (void *ptr, Alloc alloc, const char *fileName, int line)
 
PX_INLINE void operator delete (void *ptr)
 
PX_INLINE void operator delete[] (void *ptr)
 

Public Attributes

PxU32 * mFaceRemap
 new faces to old faces mapping (after cleaning, etc). Usage: old = faceRemap[new]
 
void * mGRB_tetraIndices
 GRB: GPU-friendly tri indices [uint4].
 
PxU8 * mGRB_tetraSurfaceHint
 
PxU32 * mGRB_faceRemap
 
PxU32 * mGRB_faceRemapInverse
 
Gu::BV32Tree * mGRB_BV32Tree
 GRB: BV32 tree.
 
- Public Attributes inherited from physx::Gu::TetrahedronMesh
PxU32 mNbVertices
 
PxVec3 * mVertices
 
PxU32 mNbTetrahedrons
 
void * mTetrahedrons
 
PxU8 mFlags
 Flag whether indices are 16 or 32 bits wide.
 
PxU16 * mMaterialIndices
 the size of the array is mNbTetrahedrons.
 
CenterExtents mAABB
 
PxReal mGeomEpsilon
 
MeshFactory * mMeshFactory
 

Additional Inherited Members

- Protected Member Functions inherited from physx::PxTetrahedronMesh
PX_INLINE PxTetrahedronMesh (PxType concreteType, PxBaseFlags baseFlags)
 
PX_INLINE PxTetrahedronMesh (PxBaseFlags baseFlags)
 
virtual bool isKindOf (const char *name) const
 Returns whether a given type name matches with the type of this instance.
 
- Protected Member Functions inherited from physx::PxRefCounted
PX_INLINE PxRefCounted (PxType concreteType, PxBaseFlags baseFlags)
 
PX_INLINE PxRefCounted (PxBaseFlags baseFlags)
 
- Protected Member Functions inherited from physx::PxBase
PX_INLINE PxBase (PxType concreteType, PxBaseFlags baseFlags)
 Constructor setting concrete type and base flags.
 
PX_INLINE PxBase (PxBaseFlags baseFlags)
 Deserialization constructor setting base flags.
 
virtual ~PxBase ()
 Destructor.
 
template<class T >
bool typeMatch () const
 
- Protected Attributes inherited from physx::PxBase
PxType mConcreteType
 
PxBaseFlags mBaseFlags
 
PxU32 mBuiltInRefCount
 

Member Function Documentation

◆ getTetrahedraRemap()

virtual const PxU32 * physx::Gu::BVTetrahedronMesh::getTetrahedraRemap ( ) const
inlinevirtual

Returns the tetrahedra remapping table.

The tetrahedra are internally sorted according to various criteria. Hence the internal tetrahedron order does not always match the original (user-defined) order. The remapping table helps finding the old indices knowing the new ones:

remapTable[ internalTetrahedronIndex ] = originalTetrahedronIndex
Returns
the remapping table (or NULL if 'PxCookingParams::suppressTriangleMeshRemapTable' has been used)
See also
getNbTetrahedron() getTetrahedrons() PxCookingParams::suppressTriangleMeshRemapTable

Reimplemented from physx::Gu::TetrahedronMesh.


The documentation for this class was generated from the following files: