mirror of
https://github.com/revarbat/BOSL2.git
synced 2025-08-09 13:36:58 +02:00
Merge pull request #139 from adrianVmariano/master
fixed bug in is_path()
This commit is contained in:
@@ -45,9 +45,8 @@ include <BOSL2/triangulation.scad>
|
|||||||
function is_path(list, dim=[2,3], fast=false) =
|
function is_path(list, dim=[2,3], fast=false) =
|
||||||
fast? is_list(list) && is_vector(list[0],fast=true) :
|
fast? is_list(list) && is_vector(list[0],fast=true) :
|
||||||
is_list(list) && is_list(list[0]) && len(list)>1 &&
|
is_list(list) && is_list(list[0]) && len(list)>1 &&
|
||||||
let( d = len(list[0]) )
|
(is_undef(dim) || in_list(len(list[0]), force_list(dim))) &&
|
||||||
(is_undef(dim) || in_list(d, force_list(dim))) &&
|
is_list_of(list, repeat(0,len(list[0])));
|
||||||
is_list_of(list, repeat(0,d));
|
|
||||||
|
|
||||||
|
|
||||||
// Function: is_closed_path()
|
// Function: is_closed_path()
|
||||||
|
Reference in New Issue
Block a user