Move stacking spindle design to shared library

This commit is contained in:
Matt McWilliams 2021-11-03 17:05:37 -04:00
parent 61a990ad0c
commit 5e09bd394b
3 changed files with 41 additions and 41 deletions

View File

@ -278,18 +278,20 @@ if (PART == "spiral") {
gnal_100ft_top(); gnal_100ft_top();
} else if (PART == "spacer") { } else if (PART == "spacer") {
gnal_spacer(); gnal_spacer();
} else if (PART == "spacer_16") {
gnal_spacer_16();
} else if (PART == "insert_s8") { } else if (PART == "insert_s8") {
gnal_spiral_bottom_insert_s8(); gnal_spiral_bottom_insert_s8();
} else if (PART == "insert_16") { } else if (PART == "insert_16") {
gnal_spiral_bottom_insert_16(); gnal_spiral_bottom_insert_16();
} else if (PART == "insert_single") { } else if (PART == "insert_single") {
gnal_spiral_bottom_insert_single(); gnal_spiral_bottom_insert_single();
} else if (PART == "spacer_16") {
gnal_spacer_16();
} else if (PART == "spindle_top") { } else if (PART == "spindle_top") {
gnal_spindle_top(); gnal_spindle_top();
} else if (PART == "spindle_bottom") { } else if (PART == "spindle_bottom") {
gnal_spindle_bottom(); gnal_spindle_bottom();
} else if (PART == "spindle_single") { } else if (PART == "spindle_single") {
gnal_spindle_single(); gnal_spindle_single();
} else if (PART == "spindle_stacking") {
rotate([0, 180, 0]) gnal_stacking_spindle();
} }

View File

@ -193,39 +193,6 @@ module film_guide (rotations = 40, id = 45.55 - .5, spacing = 2.075, bottom = -2
} }
module gnal_stacking_spindle () {
OD = 10.5 + .3;
IN_LEN = 21;
LEN = 17.1;
ALT_LEN = 27.1;
difference () {
union () {
gnal_spindle_base();
translate([0, 0, -23.75]) gnal_spacer_solid();
}
//inner screw negative
translate([0, 0, -30]) union() {
if (DEBUG) {
cylinder(r = OD / 2, h = IN_LEN);
} else {
metric_thread (diameter=OD, pitch=PITCH, thread_size = THREAD, length = IN_LEN);
}
translate([0, 0, 0.2]) {
if (DEBUG) {
cylinder(r = OD / 2, h = IN_LEN);
} else {
metric_thread (diameter=OD, pitch=PITCH, thread_size = THREAD, length = IN_LEN);
}
}
}
}
difference () {
outer_screw(LEN - 2);
}
}
PART="spiral"; PART="spiral";
if (PART == "spiral") { if (PART == "spiral") {
@ -242,22 +209,21 @@ if (PART == "spiral") {
gnal_50ft_top(); gnal_50ft_top();
} else if (PART == "spacer") { } else if (PART == "spacer") {
gnal_spacer(); gnal_spacer();
} else if (PART == "spacer_16") {
gnal_spacer_16();
} else if (PART == "insert_s8") { } else if (PART == "insert_s8") {
gnal_spiral_bottom_insert_s8(); gnal_spiral_bottom_insert_s8();
} else if (PART == "insert_16") { } else if (PART == "insert_16") {
gnal_spiral_bottom_insert_16(); gnal_spiral_bottom_insert_16();
} else if (PART == "insert_single") { } else if (PART == "insert_single") {
gnal_spiral_bottom_insert_single(); gnal_spiral_bottom_insert_single();
} else if (PART == "spacer_16") {
gnal_spacer_16();
} else if (PART == "spindle_top") { } else if (PART == "spindle_top") {
gnal_spindle_top(); gnal_spindle_top();
} else if (PART == "spindle_bottom") { } else if (PART == "spindle_bottom") {
gnal_spindle_bottom(); gnal_spindle_bottom();
} else if (PART == "spindle_single") { } else if (PART == "spindle_single") {
gnal_spindle_top(); gnal_spindle_single();
} else if (PART == "stacking") { } else if (PART == "spindle_stacking") {
//stacking();
rotate([0, 180, 0]) gnal_stacking_spindle(); rotate([0, 180, 0]) gnal_stacking_spindle();
} else if (PART == "spiral_test") { } else if (PART == "spiral_test") {
difference () { difference () {

View File

@ -18,7 +18,6 @@ include <./Triangles.scad>;
*/ */
DEBUG = false; DEBUG = false;
FINE = 200; FINE = 200;
OD = 10 + .5; OD = 10 + .5;
@ -793,3 +792,36 @@ module gnal_spindle_single () {
cylinder(r = 10 / 2, h = 21, center = true, $fn = FINE); cylinder(r = 10 / 2, h = 21, center = true, $fn = FINE);
} }
} }
module gnal_stacking_spindle () {
OD = 10.5 + .3;
IN_LEN = 21;
LEN = 17.1;
ALT_LEN = 27.1;
difference () {
union () {
gnal_spindle_base();
translate([0, 0, -23.75]) gnal_spacer_solid();
}
//inner screw negative
translate([0, 0, -30]) union() {
if (DEBUG) {
cylinder(r = OD / 2, h = IN_LEN);
} else {
metric_thread (diameter=OD, pitch=PITCH, thread_size = THREAD, length = IN_LEN);
}
translate([0, 0, 0.2]) {
if (DEBUG) {
cylinder(r = OD / 2, h = IN_LEN);
} else {
metric_thread (diameter=OD, pitch=PITCH, thread_size = THREAD, length = IN_LEN);
}
}
}
}
difference () {
outer_screw(LEN - 2);
}
}