PxClothFabricCooker Class Reference
[Extensions]

#include <PxClothFabricCooker.h>

List of all members.

Public Member Functions

 PxClothFabricCooker (const PxClothMeshDesc &desc, const PxVec3 &gravity, bool useGeodesicTether=true)
 Cooks a triangle mesh to a PxClothFabricDesc.
 ~PxClothFabricCooker ()
PxClothFabricDesc getDescriptor () const
 Returns the fabric descriptor to create the fabric.
void save (PxOutputStream &stream, bool platformMismatch) const
 Saves the fabric data to a platform and version dependent stream.

Private Attributes

PxFabricCookerImpl * mImpl


Constructor & Destructor Documentation

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 (  ) 


Member Function Documentation

PxClothFabricDesc PxClothFabricCooker::getDescriptor (  )  const

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.


Member Data Documentation

PxFabricCookerImpl* PxClothFabricCooker::mImpl [private]


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


Copyright © 2008-2017 NVIDIA Corporation, 2701 San Tomas Expressway, Santa Clara, CA 95050 U.S.A. All rights reserved. www.nvidia.com