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

Method object_id

src/serializers/ColladaSerializer.cpp:448–457  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

446}
447
448std::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
459void ColladaSerializer::ColladaExporter::endDocument() {
460 // In fact due the XML based nature of Collada and its dependency on library nodes,

Callers 2

addParentMethod · 0.45
writeMethod · 0.45

Calls 5

object_idFunction · 0.85
productMethod · 0.80
getMethod · 0.45
nameMethod · 0.45
typeMethod · 0.45

Tested by

no test coverage detected