1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-01-17 22:28:16 +01:00

fixed missing _frags problem

This commit is contained in:
Justin Lin 2017-04-26 17:26:26 +08:00
parent e5042a0993
commit cfa582cba2

View File

@ -17,7 +17,10 @@ function helix(radius, levels, level_dist,
let(
points = circle_path(radius),
leng = len(points),
offset_z = level_dist / _frags(radius),
_frags = $fn > 0 ?
($fn >= 3 ? $fn : 3) :
max(min(360 / $fa, radius * 6.28318 / $fs), 5),
offset_z = level_dist / _frags,
v_dir = (vt_dir == "SPI_DOWN" ? -1 : 1),
r_dir = (rt_dir == "CT_CLK" ? 1 : -1)
) [