From 8a2651cf3f7252da3fb688eb490d1abc050b96a9 Mon Sep 17 00:00:00 2001 From: RonaldoCMP Date: Wed, 5 May 2021 23:41:02 +0100 Subject: [PATCH] Add an option to hull2d_path --- hull.scad | 26 ++++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/hull.scad b/hull.scad index 1940fc5..e787edf 100644 --- a/hull.scad +++ b/hull.scad @@ -75,30 +75,36 @@ module hull_points(points, fast=false) { -function _backtracking(i,points,h,t,m) = - m= -1; - k = i>=0 ? _backtracking(ip[i],points,h,t,k)+1 : k, + k = i>=0 ? _backtracking(ip[i],points,h,t,k,all)+1 : k, h = [for(j=[0:1:k-2]) h[j], if(i>0) ip[i]], i = i-1 ) if( i==-1 ) h ][0] ;