From 000ddf87c32e1ea7b4be174b96467dc2b35dbca4 Mon Sep 17 00:00:00 2001 From: Adrian Mariano Date: Mon, 10 Jan 2022 19:55:54 -0500 Subject: [PATCH] hide is_polygon_on_list remove debug echo --- geometry.scad | 28 ++++++++++++++-------------- regions.scad | 4 +--- 2 files changed, 15 insertions(+), 17 deletions(-) diff --git a/geometry.scad b/geometry.scad index 2903283..e9762a6 100644 --- a/geometry.scad +++ b/geometry.scad @@ -2171,23 +2171,23 @@ function _are_polygons_equal(poly1, poly2, eps, st) = max([for(d=poly1-select(poly2,st,st-1)) d*d])= len(polys)? false : are_polygons_equal(poly, polys[i])? true : - __is_polygon_in_list(poly, polys, i+1); + ___is_polygon_in_list(poly, polys, i+1); // Section: Convex Hull diff --git a/regions.scad b/regions.scad index 16d82b2..4f686f9 100644 --- a/regions.scad +++ b/regions.scad @@ -398,7 +398,7 @@ function are_regions_equal(region1, region2, either_winding=false) = function __are_regions_equal(region1, region2, i) = i >= len(region1)? true : - !is_polygon_in_list(region1[i], region2)? false : + !_is_polygon_in_list(region1[i], region2)? false : __are_regions_equal(region1, region2, i+1); @@ -971,8 +971,6 @@ function offset( sharpcorners = [for(i=[0:len(goodsegs)-1]) _segment_extension(select(goodsegs,i-1), select(goodsegs,i))], // If some segments are parallel then the extended segments are undefined. This case is not handled // Note if !closed the last corner doesn't matter, so exclude it -fd= echo(sharpcorners=sharpcorners)echo(alldef=all_defined(sharpcorners))echo(goodsegs=goodsegs), - parallelcheck = (len(sharpcorners)==2 && !closed) || all_defined(closed? sharpcorners : select(sharpcorners, 1,-2))