Go to the documentation of this file.
60 cout <<
"MeshBuffer::setVertexNormals(): "
61 <<
"Cannot add vertex normals without vertex definitions" << endl;
73 cout <<
"MeshBuffer::setVertexColors(): "
74 <<
"Cannot add vertex colors without vertex definitions" << endl;
86 cout <<
"MeshBuffer::setTextureCoordinates(): "
87 <<
"Cannot add vertex colors without vertex definitions" << endl;
107 cout <<
"MeshBuffer::setFaceMaterialIndices(): "
108 <<
"Cannot add material indices without face definitions" << endl;
120 cout <<
"MeshBuffer::setFaceMaterialIndices(): "
121 <<
"Cannot add material indices without face definitions" << endl;
133 cout <<
"MeshBuffer::setFaceColors(): "
134 <<
"Cannot add face colors without face definitions" << endl;
boost::shared_array< float > floatArr
IndexChannel::Optional IndexChannelOptional
MeshBuffer()
MeshBuffer Contructor. Builds an empty buffer. Fill elements with add-Methods.
UCharChannel::Optional UCharChannelOptional
boost::optional< Channel< T > > Optional
boost::shared_array< unsigned int > indexArray
ucharArr getFaceColors(size_t &width)
getFaceColors Returns an array with wrgb colors
void setVertexNormals(floatArr normals)
addVertexNormals Adds vertex normals.
bool hasVertexNormals() const
void setVertexColors(ucharArr colors, size_t w=3)
addVertexColors Adds vertex color information.
FloatChannel::Optional FloatChannelOptional
void setTextureCoordinates(floatArr coordinates)
addTextureCoordinates Adds texture coordinates for vertices
floatArr getVertices()
getVertices Return the vertex array.
bool hasFaceColors() const
std::vector< Texture > m_textures
Vector containing all textures.
indexArray getIndexArray(const std::string &name, size_t &n, size_t &w)
Gets an index channel as array.
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.
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
void addUCharChannel(UCharChannelPtr data, const std::string &name)
Adds an uchar channel pointer to the map.
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 getUCharArray(const std::string &name, size_t &n, size_t &w)
Gets an uchar channel as array.
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
void addIndexChannel(IndexChannelPtr data, const std::string &name)
Adds an index channel pointer to the map. cointer to add. cannel.
bool hasFaceNormals() const
size_t numFaces() const
numFaces Number of faces in the mesh
void addFloatChannel(FloatChannelPtr data, const std::string &name)
Adds a float channel pointer to the map.
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.
size_t numElements() const
floatArr getFloatArray(const std::string &name, size_t &n, size_t &w)
Gets a float channel as array.
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