mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-10-02 13:04:49 +00:00
Fixes transition code of last segment of vertical alignment
This commit is contained in:
@@ -395,6 +395,7 @@ int main() {
|
|||||||
|
|
||||||
// Zero-length terminator
|
// Zero-length terminator
|
||||||
auto vertical_terminator_segment = create_gradient(vpoe, -0.5 / 100, 0.0);
|
auto vertical_terminator_segment = create_gradient(vpoe, -0.5 / 100, 0.0);
|
||||||
|
vertical_terminator_segment.first->setTransition(Schema::IfcTransitionCode::IfcTransitionCode_DISCONTINUOUS);
|
||||||
vertical_curve_segments->push(vertical_terminator_segment.first);
|
vertical_curve_segments->push(vertical_terminator_segment.first);
|
||||||
vertical_segments->push(vertical_terminator_segment.second);
|
vertical_segments->push(vertical_terminator_segment.second);
|
||||||
|
|
||||||
|
|||||||
@@ -163,7 +163,9 @@ std::tuple<typename aggregate_of<Ifc4x3_add2::IfcObjectDefinition>::ptr, typenam
|
|||||||
alignment_segment = new Ifc4x3_add2::IfcAlignmentSegment(IfcParse::IfcGlobalId(), nullptr, boost::none, boost::none, boost::none, nullptr, nullptr, design_parameters);
|
alignment_segment = new Ifc4x3_add2::IfcAlignmentSegment(IfcParse::IfcGlobalId(), nullptr, boost::none, boost::none, boost::none, nullptr, nullptr, design_parameters);
|
||||||
horizontal_segments->push(alignment_segment);
|
horizontal_segments->push(alignment_segment);
|
||||||
if (include_geometry) {
|
if (include_geometry) {
|
||||||
horizontal_curve_segments->push(mapAlignmentHorizontalSegment(design_parameters).first);
|
auto segment = mapAlignmentHorizontalSegment(design_parameters).first;
|
||||||
|
segment->setTransition(Ifc4x3_add2::IfcTransitionCode::IfcTransitionCode_DISCONTINUOUS);
|
||||||
|
horizontal_curve_segments->push(segment);
|
||||||
}
|
}
|
||||||
|
|
||||||
Ifc4x3_add2::IfcCompositeCurve* composite_curve = nullptr;
|
Ifc4x3_add2::IfcCompositeCurve* composite_curve = nullptr;
|
||||||
@@ -306,7 +308,9 @@ std::tuple<typename aggregate_of<Ifc4x3_add2::IfcObjectDefinition>::ptr, typenam
|
|||||||
alignment_segment = new Ifc4x3_add2::IfcAlignmentSegment(IfcParse::IfcGlobalId(), nullptr, boost::none, boost::none, boost::none, nullptr, nullptr, design_parameters);
|
alignment_segment = new Ifc4x3_add2::IfcAlignmentSegment(IfcParse::IfcGlobalId(), nullptr, boost::none, boost::none, boost::none, nullptr, nullptr, design_parameters);
|
||||||
vertical_segments->push(alignment_segment);
|
vertical_segments->push(alignment_segment);
|
||||||
if (include_geometry) {
|
if (include_geometry) {
|
||||||
vertical_curve_segments->push(mapAlignmentVerticalSegment(design_parameters).first);
|
auto segment = mapAlignmentVerticalSegment(design_parameters).first;
|
||||||
|
segment->setTransition(Ifc4x3_add2::IfcTransitionCode::IfcTransitionCode_DISCONTINUOUS);
|
||||||
|
vertical_curve_segments->push(segment);
|
||||||
}
|
}
|
||||||
|
|
||||||
Ifc4x3_add2::IfcGradientCurve* gradient_curve = nullptr;
|
Ifc4x3_add2::IfcGradientCurve* gradient_curve = nullptr;
|
||||||
|
|||||||
Reference in New Issue
Block a user