From cefbf8b4f24a0559cae04d2ffe65b576e4076bb0 Mon Sep 17 00:00:00 2001 From: Richard Brice <37087370+RickBrice@users.noreply.github.com> Date: Tue, 24 Oct 2023 18:28:13 -0700 Subject: [PATCH] Fixes runtime check for polynomial curve --- src/ifcgeom/mapping/IfcCurveSegment.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ifcgeom/mapping/IfcCurveSegment.cpp b/src/ifcgeom/mapping/IfcCurveSegment.cpp index 7c312c19aa..e8ee2b8ef5 100644 --- a/src/ifcgeom/mapping/IfcCurveSegment.cpp +++ b/src/ifcgeom/mapping/IfcCurveSegment.cpp @@ -461,6 +461,7 @@ public: auto coeffX = p->CoefficientsX().get_value_or(std::vector()); auto coeffY = p->CoefficientsY().get_value_or(std::vector()); auto coeffZ = p->CoefficientsZ().get_value_or(std::vector()); + if (!coeffZ.empty()) Logger::Warning("Expected IfcPolynomialCurve.CoefficientsZ to be undefined for alignment geometry", p); auto transformation_matrix = taxonomy::cast(mapping_->map(p->Position()))->ccomponents();