| 350 | } |
| 351 | |
| 352 | std::string ColladaSerializer::ColladaExporter::ColladaMaterials::getMaterialUri(const ifcopenshell::geometry::taxonomy::style::ptr& material) { |
| 353 | std::vector<ifcopenshell::geometry::taxonomy::style::ptr>::iterator it = std::find(materials.begin(), materials.end(), material); |
| 354 | ptrdiff_t index = std::distance(materials.begin(), it); |
| 355 | return material_uris.at(index); |
| 356 | } |
| 357 | |
| 358 | bool ColladaSerializer::ColladaExporter::ColladaMaterials::contains(const ifcopenshell::geometry::taxonomy::style::ptr& material) { |
| 359 | return std::find(materials.begin(), materials.end(), material) != materials.end(); |
no test coverage detected