Go to the documentation of this file.
28 #ifndef MESHBUFFER2_HPP
29 #define MESHBUFFER2_HPP
220 #endif // MESHBUFFER2_HPP
boost::shared_array< float > floatArr
MeshBuffer()
MeshBuffer Contructor. Builds an empty buffer. Fill elements with add-Methods.
boost::shared_array< unsigned int > indexArray
ucharArr getFaceColors(size_t &width)
getFaceColors Returns an array with wrgb colors
void setTextures(std::vector< Texture > &textures)
void setVertexNormals(floatArr normals)
addVertexNormals Adds vertex normals.
bool hasVertexNormals() const
void setVertexColors(ucharArr colors, size_t w=3)
addVertexColors Adds vertex color information.
void setTextureCoordinates(floatArr coordinates)
addTextureCoordinates Adds texture coordinates for vertices
floatArr getVertices()
getVertices Return the vertex array.
void setMaterials(std::vector< Material > &materials)
bool hasFaceColors() const
std::vector< Texture > m_textures
Vector containing all textures.
The MeshBuffer Mesh representation for I/O modules.
void setFaceMaterialIndices(indexArray indices)
addFaceMaterialIndices Adds face material indices. The array references to material definitions in m_...
indexArray getFaceIndices()
getFaceIndices Returns an array with face definitions, i.e., three vertex indices per face.
bool removeFloatChannel(const std::string &name)
Removes a float channel. @detail If the type is not required use: erase.
floatArr getTextureCoordinates()
getTextureCoordinates Returns an array with texture coordinates. Two normalized floats per vertex....
ChannelManager class Store and access AttributeChannels. It expands the MultiChannelMap with downwoar...
floatArr getVertexNormals()
getVertexNormals Returns an array with vertex normals or an empty array if no normals are present.
void setFaceColors(ucharArr colors, size_t w=3)
addFaceColors Adds face colors the the buffer
void setFaceIndices(indexArray indices, size_t n)
addFaceIndices Adds the face index array that references to the vertex array
std::vector< Texture > & getTextures()
getTextures Returns a vector with textures
void setFaceNormals(floatArr normals)
addFaceNormals Adds face normal information. The number of normals in the array are exspected to matc...
std::vector< Material > & getMaterials()
getTextures Returns a vector with materials
bool hasVertexColors() const
ucharArr getVertexColors(size_t &width)
getVertexColors Returns vertex color information or an empty array if vertex colors are not available
boost::shared_array< unsigned char > ucharArr
bool hasFaceNormals() const
size_t numFaces() const
numFaces Number of faces in the mesh
std::shared_ptr< MeshBuffer > MeshBufferPtr
void setVertices(floatArr vertices, size_t n)
addVertices Adds the vertex array. Three floats per vertex
indexArray getFaceMaterialIndices()
getFaceMaterialIndices Returns an array with face material indices
size_t numVertices() const
numVertices Number of vertices in the mesh
std::vector< Material > m_materials
TODO: CHANNEL BASED SETTER / GETTER!
floatArr getFaceNormals()
getFaceNormas Returns an array containing face normals, i.e., three float values per face.
lvr2
Author(s): Thomas Wiemann
, Sebastian Pütz , Alexander Mock , Lars Kiesow , Lukas Kalbertodt , Tristan Igelbrink , Johan M. von Behren , Dominik Feldschnieders , Alexander Löhr
autogenerated on Wed Mar 2 2022 00:37:24