mirror of
https://github.com/BelfrySCAD/BOSL2.git
synced 2025-01-30 08:19:36 +00:00
Fixed \*rot_copies() when rots is given a range.
This commit is contained in:
parent
392b063a0b
commit
c38b7ee8e1
2 changed files with 5 additions and 3 deletions
|
@ -633,8 +633,10 @@ module rot_copies(rots=[], v=undef, cp=[0,0,0], n=undef, sa=0, offset=0, delta=[
|
|||
sang = sa + offset;
|
||||
angs = !is_undef(n)?
|
||||
(n<=0? [] : [for (i=[0:1:n-1]) i/n*360+sang]) :
|
||||
assert(is_list(rots))
|
||||
rots;
|
||||
rots==[]? [] :
|
||||
assert(!is_string(rots), "Argument rots must be an angle, a list of angles, or a range of angles.")
|
||||
assert(!is_undef(rots[0]), "Argument rots must be an angle, a list of angles, or a range of angles.")
|
||||
[for (a=rots) a];
|
||||
for ($idx = idx(angs)) {
|
||||
$ang = angs[$idx];
|
||||
$axis = v;
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
//////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
BOSL_VERSION = [2,0,204];
|
||||
BOSL_VERSION = [2,0,205];
|
||||
|
||||
|
||||
// Section: BOSL Library Version Functions
|
||||
|
|
Loading…
Reference in a new issue