From 56956138380282bba6d80de25857f89dfff36b5b Mon Sep 17 00:00:00 2001 From: Justin Lin Date: Tue, 22 Dec 2020 09:49:55 +0800 Subject: [PATCH] fix condition --- src/voronoi/_impl/_convex_intersection.scad | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/voronoi/_impl/_convex_intersection.scad b/src/voronoi/_impl/_convex_intersection.scad index 7b81947c..49e5a3fe 100644 --- a/src/voronoi/_impl/_convex_intersection.scad +++ b/src/voronoi/_impl/_convex_intersection.scad @@ -6,7 +6,7 @@ use <_convex_ct_clk_order.scad>; function _in_convex_r(i, j, preC, convex_pts, pt, leng, convex_pts, pt) = j == leng ? true : let(c = cross(convex_pts[i] - pt, convex_pts[j] - pt)) - c * preC < 0 ? false : _in_convex_r(j, j + 1, c, convex_pts, pt, leng, convex_pts, pt) ; + c * preC <= 0 ? false : _in_convex_r(j, j + 1, c, convex_pts, pt, leng, convex_pts, pt) ; function _in_convex(convex_pts, pt) = let(