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

Public Member Functions

 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.
 
virtual const PxU32 * getTetrahedraRemap () const
 Returns the tetrahedra remapping table.
 
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 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

◆ acquireReference()

virtual void physx::Gu::TetrahedronMesh::acquireReference ( )
inlinevirtual

Acquires a counted reference to this object.

This method increases the reference count of the object by 1. Decrement the reference count by calling release()

Implements physx::PxRefCounted.

◆ getConcreteTypeName()

virtual const char * physx::Gu::TetrahedronMesh::getConcreteTypeName ( ) const
inlinevirtual

Returns string name of dynamic type.

Returns
Class name of most derived type of this object.

Implements physx::PxBase.

◆ getLocalBounds()

virtual PxBounds3 physx::Gu::TetrahedronMesh::getLocalBounds ( ) const
inlinevirtual

Returns the local-space (vertex space) AABB from the tetrahedron mesh.

Returns
local-space bounds

Implements physx::PxTetrahedronMesh.

◆ getNbTetrahedrons()

virtual PxU32 physx::Gu::TetrahedronMesh::getNbTetrahedrons ( ) const
inlinevirtual

Returns the number of tetrahedrons.

Returns
number of tetrahedrons
See also
getTetrahedrons()

Implements physx::PxTetrahedronMesh.

◆ getNbVertices()

virtual PxU32 physx::Gu::TetrahedronMesh::getNbVertices ( ) const
inlinevirtual

Returns the number of vertices.

Returns
number of vertices
See also
getVertices()

Implements physx::PxTetrahedronMesh.

◆ getReferenceCount()

virtual PxU32 physx::Gu::TetrahedronMesh::getReferenceCount ( ) const
inlinevirtual

Returns the reference count of the object.

At creation, the reference count of the object is 1. Every other object referencing this object increments the count by 1. When the reference count reaches 0, and only then, the object gets destroyed automatically.

Returns
the current reference count.

Implements physx::PxRefCounted.

◆ getTetrahedraRemap()

virtual const PxU32 * physx::Gu::TetrahedronMesh::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

Implements physx::PxTetrahedronMesh.

Reimplemented in physx::Gu::BVTetrahedronMesh.

◆ getTetrahedronMeshFlags()

virtual PxTetrahedronMeshFlags physx::Gu::TetrahedronMesh::getTetrahedronMeshFlags ( ) const
inlinevirtual

Reads the PxTetrahedronMesh flags.

See the list of flags PxTetrahedronMeshFlags

Returns
The values of the PxTetrahedronMesh flags.

Implements physx::PxTetrahedronMesh.

◆ getTetrahedrons()

virtual const void * physx::Gu::TetrahedronMesh::getTetrahedrons ( ) const
inlinevirtual

Returns the tetrahedron indices.

The indices can be 16 or 32bit depending on the number of tetrahedrons in the mesh. Call getTetrahedronMeshFlags() to know if the indices are 16 or 32 bits.

The number of indices is the number of tetrahedrons * 4.

Returns
array of tetrahedrons
See also
getNbTetrahedron() getTetrahedronMeshFlags() getTetrahedraRemap()

Implements physx::PxTetrahedronMesh.

◆ getVertices()

virtual const PxVec3 * physx::Gu::TetrahedronMesh::getVertices ( ) const
inlinevirtual

Returns the vertices.

Returns
array of vertices
See also
getNbVertices()

Implements physx::PxTetrahedronMesh.

◆ onRefCountZero()

void TetrahedronMesh::onRefCountZero ( )
virtual

Reimplemented from physx::PxRefCounted.

◆ release()

virtual void physx::Gu::TetrahedronMesh::release ( )
inlinevirtual

Decrements the reference count of a tetrahedron mesh and releases it if the new reference count is zero.

See also
PxPhysics.createTetrahedronMesh()

Implements physx::PxTetrahedronMesh.


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