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

Method addEmptyRepresentation

src/ifcparse/IfcHierarchyHelper.cpp:994–999  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

992
993template <typename Schema>
994typename Schema::IfcShapeRepresentation* IfcHierarchyHelper<Schema>::addEmptyRepresentation(const std::string& repid, const std::string& reptype) {
995 typename Schema::IfcRepresentationItem::list::ptr items(new typename Schema::IfcRepresentationItem::list);
996 typename Schema::IfcShapeRepresentation* shape_rep = new typename Schema::IfcShapeRepresentation(getRepresentationContext(reptype == "Curve2D" ? "Plan" : "Model"), repid, reptype, items);
997 addEntity(shape_rep);
998 return shape_rep;
999}
1000
1001namespace {
1002template <typename T, typename U>

Callers 1

mainFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected