sets the segment name like ("H1" for horizontal, "V1" for vertical, "C1" for cant)
| 36 | |
| 37 | // sets the segment name like ("H1" for horizontal, "V1" for vertical, "C1" for cant) |
| 38 | void _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 |
no test coverage detected