mirror of
https://github.com/revarbat/BOSL2.git
synced 2025-08-20 02:51:28 +02:00
Rewrote cyl() to avoid minkowski, and allow use of both fillet and chamfer on opposite ends of the same cylinder.
This commit is contained in:
@@ -396,6 +396,9 @@ function get_radius(r1=undef, r=undef, d1=undef, d=undef, dflt=undef) = (
|
||||
function first_defined(v) = [for (x = v) if (x!=undef) x][0];
|
||||
|
||||
|
||||
// Returns true if any item in the given array is not undef.
|
||||
function any_defined(v) = len([for (x = v) if (x!=undef) x])>0;
|
||||
|
||||
|
||||
// If given a vector, returns the vector. If given a scalar, returns [scalar, scalar, scalar]
|
||||
function scalar_vec(v) = v[0]==undef? [v,v,v] : v;
|
||||
|
||||
Reference in New Issue
Block a user