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()