From f9c7cd91997fe7d6da0828a84a85f69b034e3257 Mon Sep 17 00:00:00 2001 From: Marco Langer Date: Mon, 23 May 2022 19:12:53 +0200 Subject: [PATCH] fixed bounding box calculation for cubic beziers --- lckernel/cad/geometry/geobeziercubic.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lckernel/cad/geometry/geobeziercubic.cpp b/lckernel/cad/geometry/geobeziercubic.cpp index 49dccca5f..73c27fda3 100644 --- a/lckernel/cad/geometry/geobeziercubic.cpp +++ b/lckernel/cad/geometry/geobeziercubic.cpp @@ -30,8 +30,8 @@ const Area CubicBezier::boundingBox() const { std::vector x_roots = lc::maths::Math::quadraticSolver({b.x()/a.x(), c.x()/a.x()}); std::vector y_roots = lc::maths::Math::quadraticSolver({b.y()/a.y(), b.y()/a.y()}); - std::vector x_{_pointA.x(), _pointB.x(),_pointC.x(), _pointD.x() }; - std::vector y_{_pointA.y(), _pointB.y(),_pointC.y(), _pointD.y() }; + std::vector x_{_pointA.x(), _pointD.x() }; + std::vector y_{_pointA.y(), _pointD.y() }; for(const double tx_ : x_roots) {