PxDeformableVolumeMesh
Defined in include/geometry/PxTetrahedronMesh.h
-
class PxDeformableVolumeMesh : public PxRefCounted
A deformable volume mesh, containing structures to store collision shape, simulation shape and deformation state.
The class bundles shapes and deformation state of a deformable volume that is simulated using FEM. The meshes used for collision detection and for the FEM calculations are both tetrahedral meshes. While collision detection requires a mesh that matches the surface of the simulated body as exactly as possible, the simulation mesh has more freedom such that it can be optimized for tetrahedra without small angles and nodes that aren’t shared by too many elements.
Creation
To create an instance of this class call PxPhysics::createDeformableVolumeMesh(), and release() to delete it. This is only possible once you have released all of its PxShape instances.
Public Functions
-
virtual const PxTetrahedronMesh *getCollisionMesh() const = 0
Const accecssor to the deformable volume’s collision mesh.
See also
PxTetrahedronMesh
-
virtual PxTetrahedronMesh *getCollisionMesh() = 0
Accecssor to the deformable volume’s collision mesh.
See also
PxTetrahedronMesh
-
virtual const PxTetrahedronMesh *getSimulationMesh() const = 0
Const accessor to the deformable volume’s simulation mesh.
See also
PxTetrahedronMesh
-
virtual PxTetrahedronMesh *getSimulationMesh() = 0
Accecssor to the deformable volume’s simulation mesh.
See also
PxTetrahedronMesh
-
virtual const PxDeformableVolumeAuxData *getDeformableVolumeAuxData() const = 0
Const accessor to the deformable volume’s simulation state.
See also
PxDeformableVolumeAuxData
-
inline const PxDeformableVolumeAuxData *getSoftBodyAuxData() const
Deprecated.
See also
getDeformableVolumeAuxData
-
virtual PxDeformableVolumeAuxData *getDeformableVolumeAuxData() = 0
Accessor to the deformable volume’s auxilary data like mass and rest pose information.
See also
PxDeformableVolumeAuxData
-
inline PxDeformableVolumeAuxData *getSoftBodyAuxData()
Deprecated.
See also
getDeformableVolumeAuxData
-
virtual void release() = 0
Decrements the reference count of a tetrahedron mesh and releases it if the new reference count is zero.
See also
PxPhysics.createTetrahedronMesh()
-
virtual PxU32 getReferenceCount() const = 0
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.
-
virtual void acquireReference() = 0
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()
-
virtual const char *getConcreteTypeName() const = 0
Returns string name of dynamic type.
- Returns
Class name of most derived type of this object.
-
inline PxType getConcreteType() const
Returns concrete type of object.
See also
PxConcreteType
- Returns
PxConcreteType::Enum of serialized object
-
inline void setBaseFlag(PxBaseFlag::Enum flag, bool value)
Set PxBaseFlag
- Parameters
flag – [in] The flag to be set
value – [in] The flags new value
-
inline void setBaseFlags(PxBaseFlags inFlags)
Set PxBaseFlags
See also
PxBaseFlags
- Parameters
inFlags – [in] The flags to be set
-
inline PxBaseFlags getBaseFlags() const
Returns PxBaseFlags.
See also
PxBaseFlags
- Returns
PxBaseFlags
-
inline virtual bool isReleasable() const
Whether the object is subordinate.
A class is subordinate, if it can only be instantiated in the context of another class.
See also
PxSerialization::isSerializable
- Returns
Whether the class is subordinate
Protected Functions
-
inline PxDeformableVolumeMesh(PxType concreteType, PxBaseFlags baseFlags)
-
inline PxDeformableVolumeMesh(PxBaseFlags baseFlags)
-
inline virtual ~PxDeformableVolumeMesh()
-
inline virtual bool isKindOf(const char *name) const
Returns whether a given type name matches with the type of this instance.
-
inline virtual void onRefCountZero()
-
template<class T>
inline bool typeMatch() const
-
virtual const PxTetrahedronMesh *getCollisionMesh() const = 0