From e27058345141f44c9a1f11bfb099cac526e61038 Mon Sep 17 00:00:00 2001 From: Richard Brice <37087370+RickBrice@users.noreply.github.com> Date: Thu, 24 Oct 2024 08:43:47 -0700 Subject: [PATCH] Fixes unit conversion on clothoid constant --- src/ifcgeom/mapping/IfcCurveSegment.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ifcgeom/mapping/IfcCurveSegment.cpp b/src/ifcgeom/mapping/IfcCurveSegment.cpp index 5f7acec538..15bb7864ce 100644 --- a/src/ifcgeom/mapping/IfcCurveSegment.cpp +++ b/src/ifcgeom/mapping/IfcCurveSegment.cpp @@ -321,7 +321,7 @@ class curve_segment_evaluator { #ifdef SCHEMA_HAS_IfcClothoid void operator()(const IfcSchema::IfcClothoid* c) { - auto A = c->ClothoidConstant(); + auto A = c->ClothoidConstant() * length_unit_; if (segment_type_ == ST_CANT) { boost::optional> super, slope; @@ -698,7 +698,7 @@ class curve_segment_evaluator { if (segment_type_ == ST_VERTICAL && placement_) { // the general algorithm for mapping parent curve onto curve segment doesn't - // exactly work for IfcLine. This is easily overcome by usnig the curve segment + // exactly work for IfcLine. This is easily overcome by using the curve segment // placement for the IfcLine direction pcDx = (*placement_)(0, 0); pcDy = (*placement_)(1, 0);