RavEngine
Loading...
Searching...
No Matches
physx::ExtGpu::PxParticleClothCooker Class Referenceabstract
Inheritance diagram for physx::ExtGpu::PxParticleClothCooker:
[legend]

Public Member Functions

virtual void release ()=0
 
virtual void cookConstraints (const PxParticleClothConstraint *constraints=NULL, const PxU32 numConstraints=0)=0
 Generate the constraint list and triangle index list.
 
virtual PxU32 * getTriangleIndices ()=0
 
virtual PxU32 getTriangleIndicesCount ()=0
 
virtual PxParticleClothConstraint * getConstraints ()=0
 
virtual PxU32 getConstraintCount ()=0
 
virtual void calculateMeshVolume ()=0
 Computes the volume of a closed mesh and the contraintScale. Expects vertices in local space - 'close' to origin.
 
virtual PxReal getMeshVolume ()=0
 

Member Function Documentation

◆ calculateMeshVolume()

virtual void physx::ExtGpu::PxParticleClothCooker::calculateMeshVolume ( )
pure virtual

Computes the volume of a closed mesh and the contraintScale. Expects vertices in local space - 'close' to origin.

Implemented in physx::ExtGpu::PxParticleClothCookerImpl.

◆ cookConstraints()

virtual void physx::ExtGpu::PxParticleClothCooker::cookConstraints ( const PxParticleClothConstraint *  constraints = NULL,
const PxU32  numConstraints = 0 
)
pure virtual

Generate the constraint list and triangle index list.

Parameters
[in]constraintsA pointer to an array of PxParticleClothConstraint constraints. If NULL, the cooker will generate all the constraints. Otherwise, the user-provided constraints will be added.
[in]numConstraintsThe number of user-provided PxParticleClothConstraint s.

Implemented in physx::ExtGpu::PxParticleClothCookerImpl.

◆ getConstraintCount()

virtual PxU32 physx::ExtGpu::PxParticleClothCooker::getConstraintCount ( )
pure virtual
Returns
The number of constraints.

Implemented in physx::ExtGpu::PxParticleClothCookerImpl.

◆ getConstraints()

virtual PxParticleClothConstraint * physx::ExtGpu::PxParticleClothCooker::getConstraints ( )
pure virtual
Returns
A pointer to the PxParticleClothConstraint constraints.

Implemented in physx::ExtGpu::PxParticleClothCookerImpl.

◆ getMeshVolume()

virtual PxReal physx::ExtGpu::PxParticleClothCooker::getMeshVolume ( )
pure virtual
Returns
The mesh volume calculated by PxParticleClothCooker::calculateMeshVolume.

Implemented in physx::ExtGpu::PxParticleClothCookerImpl.

◆ getTriangleIndices()

virtual PxU32 * physx::ExtGpu::PxParticleClothCooker::getTriangleIndices ( )
pure virtual
Returns
A pointer to the triangle indices.

Implemented in physx::ExtGpu::PxParticleClothCookerImpl.

◆ getTriangleIndicesCount()

virtual PxU32 physx::ExtGpu::PxParticleClothCooker::getTriangleIndicesCount ( )
pure virtual
Returns
The number of triangle indices.

Implemented in physx::ExtGpu::PxParticleClothCookerImpl.


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