Added force_list, path_to_bezier, smooth_path, associate_vertices,

improved skin and sweep error handling.  Allow path_sweep to take a 2d
path.
This commit is contained in:
Adrian Mariano
2020-03-04 20:24:00 -05:00
parent 469b4cb525
commit 51af394c24
6 changed files with 140 additions and 15 deletions

View File

@@ -851,6 +851,15 @@ function enumerate(l,idx=undef) =
[for (i=[0:1:len(l)-1]) concat([i], [for (j=idx) l[i][j]])];
// Function: force_list()
// Usage:
// list = force_list(value)
// Description:
// If value is a list returns value, otherwise returns [value]. Makes it easy to
// treat a scalar input consistently as a singleton list along with list inputs.
function force_list(value) = is_list(value) ? value : [value];
// Function: pair()
// Usage:
// pair(v)