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

Function TryQueryMeshCache

code/AssetLib/IFC/IFCGeometry.cpp:843–854  ·  view source on GitHub ↗

------------------------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

841
842// ------------------------------------------------------------------------------------------------
843bool TryQueryMeshCache(const Schema_2x3::IfcRepresentationItem& item,
844 std::set<unsigned int>& mesh_indices,
845 unsigned int mat_index,
846 ConversionData& conv) {
847 ConversionData::MeshCacheIndex idx(&item, mat_index);
848 ConversionData::MeshCache::const_iterator it = conv.cached_meshes.find(idx);
849 if (it != conv.cached_meshes.end()) {
850 std::copy((*it).second.begin(),(*it).second.end(),std::inserter(mesh_indices, mesh_indices.end()));
851 return true;
852 }
853 return false;
854}
855
856// ------------------------------------------------------------------------------------------------
857void PopulateMeshCache(const Schema_2x3::IfcRepresentationItem& item,

Callers 1

Calls 2

endMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected