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

Function BOOST_FOREACH

src/serializers/ColladaSerializer.cpp:219–226  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

217 COLLADASW::InstanceGeometry instanceGeometry(mSW);
218 instanceGeometry.setUrl("#" + geom_name);
219 BOOST_FOREACH(const std::string &material_name, material_ids) {
220 // Unescape to avoid double escaping because OpenCollada's material URI parameter escapes XML internally
221 std::string unescaped = material_name;
222 IfcUtil::unescape_xml(unescaped);
223
224 COLLADASW::InstanceMaterial material(material_name, "#" + unescaped);
225 instanceGeometry.getBindMaterial().getInstanceMaterialList().push_back(material);
226 }
227 instanceGeometry.add();
228 node.end();
229}

Callers

nothing calls this directly

Calls 3

push_backMethod · 0.80
getMaterialUriMethod · 0.80
addMethod · 0.45

Tested by

no test coverage detected