From 8a7555cc768870c75172123b19f5f17d9084b9ce Mon Sep 17 00:00:00 2001 From: Jerome Plut Date: Thu, 3 Dec 2020 21:25:57 +0100 Subject: [PATCH] reset is_region() to pass tests --- regions.scad | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/regions.scad b/regions.scad index 8923751..acd66d9 100644 --- a/regions.scad +++ b/regions.scad @@ -20,8 +20,7 @@ // is_region(x); // Description: // Returns true if the given item looks like a region. A region is defined as a list of zero or more paths. -function is_region(x) = - is_list(x) && all([for(y=x) is_path(y, len(x[0][0]))]); +function is_region(x) = is_list(x) && is_path(x.x); // Function: close_region()