Public Member Functions | Public Attributes | List of all members
PxClothFabricDesc Class Reference

References all the data required to create a fabric. More...

#include <PxClothFabric.h>

Collaboration diagram for PxClothFabricDesc:
Collaboration graph
[legend]

Public Member Functions

PX_INLINE PxClothFabricDesc ()
 constructor sets to default. More...
 
PX_INLINE void setToDefault ()
 (re)sets the structure to the default. More...
 
PX_INLINE bool isValid () const
 Returns true if the descriptor is valid. More...
 

Public Attributes

PxU32 nbParticles
 The number of particles needed when creating a PxCloth instance from the fabric. More...
 
PxU32 nbPhases
 The number of solver phases. More...
 
const PxClothFabricPhasephases
 Array defining which constraints to solve each phase. See PxClothFabric.getPhases(). More...
 
PxU32 nbSets
 The number of sets in the fabric. More...
 
const PxU32sets
 Array with an index per set which points one entry beyond the last constraint of the set. See PxClothFabric.getSets(). More...
 
const PxU32indices
 Array of particle indices which specifies the pair of constrained vertices. See PxClothFabric.getParticleIndices(). More...
 
const PxRealrestvalues
 Array of rest values for each constraint. See PxClothFabric.getRestvalues(). More...
 
PxU32 nbTethers
 Size of tetherAnchors and tetherLengths arrays, needs to be multiple of nbParticles. More...
 
const PxU32tetherAnchors
 Array of particle indices specifying the tether anchors. See PxClothFabric.getTetherAnchors(). More...
 
const PxRealtetherLengths
 Array of rest distance between tethered particle pairs. See PxClothFabric.getTetherLengths(). More...
 

Detailed Description

References all the data required to create a fabric.

See Also
PxPhysics.createClothFabric(), PxClothFabricCooker.getDescriptor()

Member Data Documentation

const PxU32* PxClothFabricDesc::indices

Array of particle indices which specifies the pair of constrained vertices. See PxClothFabric.getParticleIndices().

Referenced by isValid().

PxU32 PxClothFabricDesc::nbParticles

The number of particles needed when creating a PxCloth instance from the fabric.

Referenced by isValid().

PxU32 PxClothFabricDesc::nbPhases

The number of solver phases.

Referenced by isValid().

PxU32 PxClothFabricDesc::nbSets

The number of sets in the fabric.

Referenced by isValid().

PxU32 PxClothFabricDesc::nbTethers

Size of tetherAnchors and tetherLengths arrays, needs to be multiple of nbParticles.

Referenced by isValid().

const PxClothFabricPhase* PxClothFabricDesc::phases

Array defining which constraints to solve each phase. See PxClothFabric.getPhases().

Referenced by isValid().

const PxReal* PxClothFabricDesc::restvalues

Array of rest values for each constraint. See PxClothFabric.getRestvalues().

Referenced by isValid().

const PxU32* PxClothFabricDesc::sets

Array with an index per set which points one entry beyond the last constraint of the set. See PxClothFabric.getSets().

Referenced by isValid().

const PxU32* PxClothFabricDesc::tetherAnchors

Array of particle indices specifying the tether anchors. See PxClothFabric.getTetherAnchors().

Referenced by isValid().

const PxReal* PxClothFabricDesc::tetherLengths

Array of rest distance between tethered particle pairs. See PxClothFabric.getTetherLengths().

Referenced by isValid().


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