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

Method Execute

code/PostProcessing/ProcessHelper.h:342–357  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

340 }
341
342 void Execute(aiScene *pScene) {
343 typedef std::pair<SpatialSort, ai_real> _Type;
344 ASSIMP_LOG_DEBUG("Generate spatially-sorted vertex cache");
345
346 std::vector<_Type> *p = new std::vector<_Type>(pScene->mNumMeshes);
347 std::vector<_Type>::iterator it = p->begin();
348
349 for (unsigned int i = 0; i < pScene->mNumMeshes; ++i, ++it) {
350 aiMesh *mesh = pScene->mMeshes[i];
351 _Type &blubb = *it;
352 blubb.first.Fill(mesh->mVertices, mesh->mNumVertices, sizeof(aiVector3D));
353 blubb.second = ComputePositionEpsilon(mesh);
354 }
355
356 shared->AddProperty(AI_SPP_SPATIAL_SORT, p);
357 }
358};
359
360// -------------------------------------------------------------------------------

Callers

nothing calls this directly

Calls 4

ComputePositionEpsilonFunction · 0.85
beginMethod · 0.45
FillMethod · 0.45
AddPropertyMethod · 0.45

Tested by

no test coverage detected