mirror of
https://github.com/BelfrySCAD/BOSL2.git
synced 2025-01-01 09:49:45 +00:00
reset is_region() to pass tests
This commit is contained in:
parent
c7c982710f
commit
4af725eec1
1 changed files with 1 additions and 2 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue