RavEngine
Loading...
Searching...
No Matches
physx::PxSoftBodyMesh Class Referenceabstract

A softbody mesh, containing structures to store collision shape, simulation shape and deformation state. More...

#include <PxTetrahedronMesh.h>

Inheritance diagram for physx::PxSoftBodyMesh:
[legend]
Collaboration diagram for physx::PxSoftBodyMesh:
[legend]

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
 

Detailed Description

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.

Creation

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.

Member Function Documentation

◆ getCollisionMesh() [1/2]

virtual const PxTetrahedronMesh * physx::PxSoftBodyMesh::getCollisionMesh ( ) const
pure virtual

Const accecssor to the softbody's collision mesh.

See also
PxTetrahedronMesh

Implemented in physx::Gu::SoftBodyMesh.

◆ getCollisionMesh() [2/2]

virtual PxTetrahedronMesh * physx::PxSoftBodyMesh::getCollisionMesh ( )
pure virtual

Accecssor to the softbody's collision mesh.

See also
PxTetrahedronMesh

Implemented in physx::Gu::SoftBodyMesh.

◆ getSimulationMesh() [1/2]

virtual const PxTetrahedronMesh * physx::PxSoftBodyMesh::getSimulationMesh ( ) const
pure virtual

Const accessor to the softbody's simulation mesh.

See also
PxTetrahedronMesh

Implemented in physx::Gu::SoftBodyMesh.

◆ getSimulationMesh() [2/2]

virtual PxTetrahedronMesh * physx::PxSoftBodyMesh::getSimulationMesh ( )
pure virtual

Accecssor to the softbody's simulation mesh.

See also
PxTetrahedronMesh

Implemented in physx::Gu::SoftBodyMesh.

◆ getSoftBodyAuxData() [1/2]

virtual const PxSoftBodyAuxData * physx::PxSoftBodyMesh::getSoftBodyAuxData ( ) const
pure virtual

Const accessor to the softbodies simulation state.

See also
PxSoftBodyAuxData

Implemented in physx::Gu::SoftBodyMesh.

◆ getSoftBodyAuxData() [2/2]

virtual PxSoftBodyAuxData * physx::PxSoftBodyMesh::getSoftBodyAuxData ( )
pure virtual

Accessor to the softbody's auxilary data like mass and rest pose information.

See also
PxSoftBodyAuxData

Implemented in physx::Gu::SoftBodyMesh.

◆ isKindOf()

virtual bool physx::PxSoftBodyMesh::isKindOf ( const char *  superClass) const
inlineprotectedvirtual

Returns whether a given type name matches with the type of this instance.

Reimplemented from physx::PxRefCounted.

◆ release()

virtual void physx::PxSoftBodyMesh::release ( )
pure virtual

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

See also
PxPhysics.createTetrahedronMesh()

Implements physx::PxRefCounted.

Implemented in physx::Gu::SoftBodyMesh.


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