Class TriangleModel

Class Documentation

class TriangleModel

Public Types

typedef Utilities::IndexedFaceMesh ParticleMesh

Public Functions

TriangleModel()
virtual ~TriangleModel()
inline ParticleMesh &getParticleMesh()
inline const ParticleMesh &getParticleMesh() const
void cleanupModel()
unsigned int getIndexOffset() const
void initMesh(const unsigned int nPoints, const unsigned int nFaces, const unsigned int indexOffset, unsigned int *indices, const ParticleMesh::UVIndices &uvIndices, const ParticleMesh::UVs &uvs)
void updateMeshNormals(const ParticleData &pd)
inline FORCE_INLINE Real getRestitutionCoeff () const
inline FORCE_INLINE void setRestitutionCoeff (Real val)
inline FORCE_INLINE Real getFrictionCoeff () const
inline FORCE_INLINE void setFrictionCoeff (Real val)

Protected Attributes

unsigned int m_indexOffset

offset which must be added to get the correct index in the particles array

ParticleMesh m_particleMesh

Face mesh of particles which represents the simulation model

Real m_restitutionCoeff
Real m_frictionCoeff