|
RavEngine
|
A softbody mesh, containing structures to store collision shape, simulation shape and deformation state. More...
#include <PxTetrahedronMesh.h>
Public Member Functions | |
| virtual const PxTetrahedronMesh * | getCollisionMesh () const =0 |
| Const accecssor to the softbody's collision mesh. | |
| virtual PxTetrahedronMesh * | getCollisionMesh ()=0 |
| Accecssor to the softbody's collision mesh. | |
| virtual const PxTetrahedronMesh * | getSimulationMesh () const =0 |
| Const accessor to the softbody's simulation mesh. | |
| virtual PxTetrahedronMesh * | getSimulationMesh ()=0 |
| Accecssor to the softbody's simulation mesh. | |
| virtual const PxSoftBodyAuxData * | getSoftBodyAuxData () const =0 |
| Const accessor to the softbodies simulation state. | |
| virtual PxSoftBodyAuxData * | getSoftBodyAuxData ()=0 |
| Accessor to the softbody's auxilary data like mass and rest pose information. | |
| virtual void | release ()=0 |
| Decrements the reference count of a tetrahedron mesh and releases it if the new reference count is zero. | |
Public Member Functions inherited from physx::PxRefCounted | |
| virtual PxU32 | getReferenceCount () const =0 |
| Returns the reference count of the object. | |
| virtual void | acquireReference ()=0 |
| Acquires a counted reference to this object. | |
Public Member Functions inherited from physx::PxBase | |
| virtual const char * | getConcreteTypeName () const =0 |
| Returns string name of dynamic type. | |
| 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. | |
Protected Member Functions | |
| PX_INLINE | PxSoftBodyMesh (PxType concreteType, PxBaseFlags baseFlags) |
| PX_INLINE | PxSoftBodyMesh (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 | |
| virtual void | onRefCountZero () |
| 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 |
Additional Inherited Members | |
Protected Attributes inherited from physx::PxBase | |
| PxType | mConcreteType |
| PxBaseFlags | mBaseFlags |
| PxU32 | mBuiltInRefCount |
A softbody mesh, containing structures to store collision shape, simulation shape and deformation state.
The class bundles shapes and deformation state of a softbody 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.
To create an instance of this class call PxPhysics::createSoftBodyMesh(), and release() to delete it. This is only possible once you have released all of its PxShape instances.
|
pure virtual |
Const accecssor to the softbody's collision mesh.
Implemented in physx::Gu::SoftBodyMesh.
|
pure virtual |
Accecssor to the softbody's collision mesh.
Implemented in physx::Gu::SoftBodyMesh.
|
pure virtual |
Const accessor to the softbody's simulation mesh.
Implemented in physx::Gu::SoftBodyMesh.
|
pure virtual |
Accecssor to the softbody's simulation mesh.
Implemented in physx::Gu::SoftBodyMesh.
|
pure virtual |
Const accessor to the softbodies simulation state.
Implemented in physx::Gu::SoftBodyMesh.
|
pure virtual |
Accessor to the softbody's auxilary data like mass and rest pose information.
Implemented in physx::Gu::SoftBodyMesh.
|
inlineprotectedvirtual |
Returns whether a given type name matches with the type of this instance.
Reimplemented from physx::PxRefCounted.
|
pure virtual |
Decrements the reference count of a tetrahedron mesh and releases it if the new reference count is zero.
Implements physx::PxRefCounted.
Implemented in physx::Gu::SoftBodyMesh.