Developer Documentation
|
Public Member Functions | |
MeshCompilerDefaultFaceInput (int _numFaces, int _numIndices) | |
int | getNumFaces () const override |
int | getNumIndices () const override |
int | getFaceSize (const int _faceID) const override |
int | getSingleFaceAttr (const int _faceID, const int _faceCorner, const int _attrID) const override |
bool | getFaceAttr (const int _faceID, const int _attrID, int *_out) const override |
void | dbgWriteToObjFile (FILE *_file, int _posAttrID=0, int _normalAttrID=-1, int _texcAttrID=-1) |
void | setFaceData (int _faceID, int _size, int *_data, int _attrID=0) |
Public Member Functions inherited from ACG::MeshCompilerFaceInput | |
virtual int * | getFaceAttr (const int _faceID, const int _attrID) const |
virtual int | getVertexAdjCount (const int _vertexID) const |
virtual int | getVertexAdjFace (const int _vertexID, const int _k) const |
Protected Attributes | |
int | numFaces_ |
int | numIndices_ |
std::vector< int > | faceOffset_ |
std::vector< int > | faceSize_ |
std::vector< int > | faceData_ [16] |
Definition at line 193 of file MeshCompiler.hh.
|
overridevirtual |
Get an index buffer of a face for a specific attribute channel.
_faceID | face index |
_attrID | attribute channel |
_out | pointer to output buffer, use getFaceSize(_faceID) to get the size needed to store face data |
Reimplemented from ACG::MeshCompilerFaceInput.
Definition at line 4117 of file MeshCompiler.cc.
|
inlineoverridevirtual |
Get number of vertices per face.
_faceID | face index |
Implements ACG::MeshCompilerFaceInput.
Definition at line 202 of file MeshCompiler.hh.
|
inlineoverridevirtual |
Get total number of indices in one attribute channel.
i.e. total number of position indices of the whole mesh
Implements ACG::MeshCompilerFaceInput.
Definition at line 200 of file MeshCompiler.hh.
|
overridevirtual |
Get a single vertex-index entry of a face.
_faceID | face index |
_faceCorner | vertex corner of the face |
_attrID | attribute channel |
Reimplemented from ACG::MeshCompilerFaceInput.
Definition at line 4128 of file MeshCompiler.cc.