| 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 | } |
nothing calls this directly
no test coverage detected