Skip to content

Commit

Permalink
Fixes parabolic curves in IfcAlignment examples and helper functions
Browse files Browse the repository at this point in the history
  • Loading branch information
RickBrice committed May 5, 2024
1 parent 648ca4d commit e4625bd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/examples/IfcAlignment.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ std::pair<typename Schema::IfcCurveSegment*, typename Schema::IfcAlignmentSegmen
// creates geometry and business logic segments for vertical profile parabolic vertical curves
std::pair<typename Schema::IfcCurveSegment*, typename Schema::IfcAlignmentSegment*> create_vcurve(typename Schema::IfcCartesianPoint* p, double start_slope, double end_slope, double length) {
// geometry
double A = 0.0;
double A = p->Coordinates()[1];
double B = start_slope;
double C = (end_slope - start_slope) / (2 * length);

Expand Down
2 changes: 1 addition & 1 deletion src/ifcparse/IfcAlignmentHelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -696,7 +696,7 @@ std::pair<Ifc4x3_add2::IfcCurveSegment*, Ifc4x3_add2::IfcCurveSegment*> mapAlign
result.first = curve_segment;

} else if (type == Ifc4x3_add2::IfcAlignmentVerticalSegmentTypeEnum::IfcAlignmentVerticalSegmentType_PARABOLICARC) {
double A = 0.0;
double A = start_height;
double B = start_gradient;
double C = (end_gradient - start_gradient) / (2 * horizontal_length);

Expand Down

0 comments on commit e4625bd

Please sign in to comment.