| 446 | } |
| 447 | |
| 448 | std::string ColladaSerializer::object_id(const IfcGeom::Element* o) /*override*/ |
| 449 | { |
| 450 | if (settings_.get<ifcopenshell::geometry::settings::UseElementTypes>().get()) { |
| 451 | const std::string slabSuffix = (o->product() && o->product()->declaration().name() == "IfcSlab") |
| 452 | ? differentiateSlabTypes(o->product()) |
| 453 | : ""; |
| 454 | return o->type() + slabSuffix; |
| 455 | } |
| 456 | return GeometrySerializer::object_id(o); |
| 457 | } |
| 458 | |
| 459 | void ColladaSerializer::ColladaExporter::endDocument() { |
| 460 | // In fact due the XML based nature of Collada and its dependency on library nodes, |