Skip to content

Commit

Permalink
spiral_sweep bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianVmariano committed Jun 13, 2024
1 parent aafe13f commit 76a5d59
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions skin.scad
Original file line number Diff line number Diff line change
Expand Up @@ -1237,7 +1237,7 @@ function spiral_sweep(poly, h, r, turns=1, taper, r1, r2, d, d1, d2, internal=fa
ang_step = 360/sides,
turns = abs(turns),
lead_in1 = first_defined([lead_in1, lead_in]),
lead_in2 = first_defined([lead_in1, lead_in]),
lead_in2 = first_defined([lead_in2, lead_in]),
lead_in_ang1 =
let(
user_ang = first_defined([lead_in_ang1,lead_in_ang])
Expand All @@ -1253,7 +1253,7 @@ function spiral_sweep(poly, h, r, turns=1, taper, r1, r2, d, d1, d2, internal=fa
minang = -max(0,lead_in_ang1),
maxang = 360*turns + max(0,lead_in_ang2),
cut_ang1 = minang+abs(lead_in_ang1),
cut_ang2 = maxang-abs(lead_in_ang1),
cut_ang2 = maxang-abs(lead_in_ang2),
lead_in_shape1 = first_defined([lead_in_shape1, lead_in_shape, "default"]),
lead_in_shape2 = first_defined([lead_in_shape2, lead_in_shape, "default"]),
lead_in_func1 = is_func(lead_in_shape1) ? lead_in_shape1
Expand Down

0 comments on commit 76a5d59

Please sign in to comment.