1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-17 20:11:50 +02:00

fix condition

This commit is contained in:
Justin Lin
2020-12-22 09:49:55 +08:00
parent 92d8c05fa9
commit 5695613838

View File

@@ -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(