ExtGpu::PxParticleClothCooker

Defined in include/extensions/PxParticleClothCooker.h

class PxParticleClothCooker

Public 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.

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

  • numConstraints[in] The number of user-provided PxParticleClothConstraint s.

virtual PxU32 *getTriangleIndices() = 0
Returns

A pointer to the triangle indices.

virtual PxU32 getTriangleIndicesCount() = 0
Returns

The number of triangle indices.

virtual PxParticleClothConstraint *getConstraints() = 0
Returns

A pointer to the PxParticleClothConstraint constraints.

virtual PxU32 getConstraintCount() = 0
Returns

The number of constraints.

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
Returns

The mesh volume calculated by PxParticleClothCooker::calculateMeshVolume.

Protected Functions

inline virtual ~PxParticleClothCooker()