From f30e5cdfe84f2a02127e7059687a4f067f14b967 Mon Sep 17 00:00:00 2001 From: Jabiertxof Date: Sat, 18 May 2019 00:16:56 +0200 Subject: Improvements to geom-pathstroke and offset LPE. --- src/helper/geom-pathstroke.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/helper') diff --git a/src/helper/geom-pathstroke.cpp b/src/helper/geom-pathstroke.cpp index a073db506..7e4599beb 100644 --- a/src/helper/geom-pathstroke.cpp +++ b/src/helper/geom-pathstroke.cpp @@ -36,10 +36,10 @@ static Point intersection_point(Point origin_a, Point vector_a, Point origin_b, static Circle touching_circle( D2 const &curve, double t, double tol=0.01 ) { D2 dM=derivative(curve); - if ( are_near(L2sq(dM(t)),0.) ) { + if ( are_near(L2sq(dM(t)), tol) ) { dM=derivative(dM); } - if ( are_near(L2sq(dM(t)),0.) ) { // try second time + if ( are_near(L2sq(dM(t)), tol) ) { // try second time dM=derivative(dM); } Piecewise > unitv = unitVector(dM,tol); -- cgit v1.2.3