Class StaticMesh

Inheritance Relationships

Base Type

Derived Type

Class Documentation

class StaticMesh : public lvr2::Renderable

Subclassed by lvr2::TexturedMesh

Public Functions

StaticMesh()
StaticMesh(ModelPtr model, string name = "")
StaticMesh(MeshBufferPtr buffer, string name = "")
StaticMesh(const StaticMesh &o)
~StaticMesh()
inline virtual void render()
virtual void finalize()
virtual void savePLY(std::string filename)
virtual void setName(std::string name)
floatArr getVertices()
uintArr getIndices()
float *getNormals()
size_t getNumberOfVertices()
size_t getNumberOfFaces()
inline void setRenderMode(int mode)
inline int getRenderMode()

Protected Functions

void compileColoredMeshList()
void compileWireframeList()
void compileNameList()
void setColorMaterial(float r, float g, float b)
void readPly(std::string filename)

Protected Attributes

floatArr m_normals
float *m_faceNormals
floatArr m_vertices
ucharArr m_colors
unsigned char *m_blackColors
indexArray m_faces
bool m_finalized
bool m_haveMaterials
size_t m_numVertices
size_t m_numFaces
size_t m_numMaterials
int m_renderMode
int m_coloredMeshList
int m_wireframeList
int m_nameList