| 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 | // ------------------------------------------------------------------------------- |
nothing calls this directly
no test coverage detected