MCPcopy Create free account
hub / github.com/IfcOpenShell/IfcOpenShell / getMaterialUri

Method getMaterialUri

src/serializers/ColladaSerializer.cpp:352–356  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

350}
351
352std::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
358bool ColladaSerializer::ColladaExporter::ColladaMaterials::contains(const ifcopenshell::geometry::taxonomy::style::ptr& material) {
359 return std::find(materials.begin(), materials.end(), material) != materials.end();

Callers 1

BOOST_FOREACHFunction · 0.80

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected