Class VertexData

Class Documentation

class VertexData

This class encapsulates the state of all vertices. All parameters are stored in individual arrays.

Public Functions

inline FORCE_INLINE VertexData(void)
inline FORCE_INLINE ~VertexData(void)
inline FORCE_INLINE void addVertex (const Vector3r &vertex)
inline FORCE_INLINE Vector3r & getPosition (const unsigned int i)
inline FORCE_INLINE const Vector3r & getPosition (const unsigned int i) const
inline FORCE_INLINE void setPosition (const unsigned int i, const Vector3r &pos)
inline FORCE_INLINE void resize (const unsigned int newSize)

Resize the array containing the particle data.

inline FORCE_INLINE void reserve (const unsigned int newSize)

Reserve the array containing the particle data.

inline FORCE_INLINE void release ()

Release the array containing the particle data.

inline FORCE_INLINE unsigned int size () const

Release the array containing the particle data.

inline FORCE_INLINE const std::vector< Vector3r > & getVertices () const