1
0
mirror of https://github.com/nophead/NopSCADlib.git synced 2025-08-12 02:13:57 +02:00

Fixed leadscrew when center = false.

This commit is contained in:
Chris Palmer
2020-02-23 21:54:26 +00:00
parent ab17de3b0b
commit b8546414c0

View File

@@ -66,7 +66,7 @@ module leadscrew(d , l, lead, starts, center = true) { //! Draw a leadscrew with
translate_z(center ? 0 : l / 2) translate_z(center ? 0 : l / 2)
if(show_threads && pitch) if(show_threads && pitch)
thread(d - pitch, lead, l, thread_profile(pitch / 2, pitch * 0.366, 30), top = 45, bot = 45, starts = starts, center = center, colour = rod_colour); thread(d - pitch, lead, l, thread_profile(pitch / 2, pitch * 0.366, 30), top = 45, bot = 45, starts = starts, colour = rod_colour);
else else
color(leadscrew_colour) color(leadscrew_colour)
hull() { hull() {