#include <PxClothFabricCooker.h>
|
PxFabricCookerImpl * | mImpl |
|
PxClothFabricCooker::PxClothFabricCooker |
( |
const PxClothMeshDesc & |
desc, |
|
|
const PxVec3 & |
gravity, |
|
|
bool |
useGeodesicTether = true |
|
) |
| |
Cooks a triangle mesh to a PxClothFabricDesc.
- Parameters
-
desc | The cloth mesh descriptor on which the generation of the cooked mesh depends. |
gravity | A normalized vector which specifies the direction of gravity. This information allows the cooker to generate a fabric with higher quality simulation behavior. |
useGeodesicTether | A flag to indicate whether to compute geodesic distance for tether constraints. |
- Note
- The geodesic option for tether only works for manifold input. For non-manifold input, a simple Euclidean distance will be used. For more detailed cooker status for such cases, try running PxClothGeodesicTetherCooker directly.
PxClothFabricCooker::~PxClothFabricCooker |
( |
| ) |
|
Returns the fabric descriptor to create the fabric.
void PxClothFabricCooker::save |
( |
PxOutputStream & |
stream, |
|
|
bool |
platformMismatch |
|
) |
| const |
Saves the fabric data to a platform and version dependent stream.
PxFabricCookerImpl* PxClothFabricCooker::mImpl |
|
private |
The documentation for this class was generated from the following file: