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

Function _name_segments

src/ifcparse/IfcAlignmentHelper.cpp:38–45  ·  view source on GitHub ↗

sets the segment name like ("H1" for horizontal, "V1" for vertical, "C1" for cant)

Source from the content-addressed store, hash-verified

36
37// sets the segment name like ("H1" for horizontal, "V1" for vertical, "C1" for cant)
38void _name_segments(const char* prefix, typename aggregate_of<Ifc4x3_add2::IfcObjectDefinition>::ptr segments) {
39 unsigned idx = 1;
40 for (auto& segment : *segments) {
41 std::ostringstream os;
42 os << prefix << idx++;
43 segment->setName(os.str());
44 }
45}
46
47// creates representations for each IfcAlignmentSegment per CT 4.1.7.1.1.4
48// https://standards.buildingsmart.org/IFC/RELEASE/IFC4_3/HTML/concepts/Product_Shape/Product_Geometric_Representation/Alignment_Geometry/Alignment_Geometry_-_Segments/content.html

Callers 2

addHorizontalAlignmentFunction · 0.85
addAlignmentFunction · 0.85

Calls 1

strMethod · 0.45

Tested by

no test coverage detected