MCPcopy Create free account
hub / github.com/assimp/assimp / GetVFormatList

Function GetVFormatList

code/PostProcessing/PretransformVertices.cpp:77–84  ·  view source on GitHub ↗

Get a list of all vertex formats that occur for a given material index The output list contains duplicate elements

Source from the content-addressed store, hash-verified

75// Get a list of all vertex formats that occur for a given material index
76// The output list contains duplicate elements
77static void GetVFormatList(const aiScene *pcScene, unsigned int iMat, std::list<unsigned int> &aiOut) {
78 for (unsigned int i = 0; i < pcScene->mNumMeshes; ++i) {
79 aiMesh *pcMesh = pcScene->mMeshes[i];
80 if (iMat == pcMesh->mMaterialIndex) {
81 aiOut.push_back(GetMeshVFormat(pcMesh));
82 }
83 }
84}
85
86}
87// ------------------------------------------------------------------------------------------------

Callers 1

ExecuteMethod · 0.85

Calls 2

GetMeshVFormatFunction · 0.85
push_backMethod · 0.45

Tested by

no test coverage detected