mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-16 19:54:29 +02:00
fix condition
This commit is contained in:
@@ -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(
|
||||
|
Reference in New Issue
Block a user