Public Member Functions | Private Attributes | List of all members
PxClothFabricCooker Class Reference

#include <PxClothFabricCooker.h>

Public Member Functions

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

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
descThe cloth mesh descriptor on which the generation of the cooked mesh depends.
gravityA normalized vector which specifies the direction of gravity. This information allows the cooker to generate a fabric with higher quality simulation behavior.
useGeodesicTetherA 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-2015 NVIDIA Corporation, 2701 San Tomas Expressway, Santa Clara, CA 95050 U.S.A. All rights reserved. www.nvidia.com