From 4af725eec16b8c3d9f86625525c59173b453557b 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 8923751e..acd66d98 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()