------------------------------------------------------------------------------------------------
| 841 | |
| 842 | // ------------------------------------------------------------------------------------------------ |
| 843 | bool 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 | // ------------------------------------------------------------------------------------------------ |
| 857 | void PopulateMeshCache(const Schema_2x3::IfcRepresentationItem& item, |
no test coverage detected