Compare commits

..

2 Commits
screw ... trunk

Author SHA1 Message Date
Remi Rampin ed0a319cbe Increase part separation 0.2->0.5 2024-04-22 17:55:46 -04:00
Remi Rampin 3a99837e24 Print-in-place attempt 2024-04-22 17:54:59 -04:00
1 changed files with 26 additions and 24 deletions

View File

@ -8,17 +8,14 @@ top_height = 20;
opening_sep = 0.1; opening_sep = 0.1;
screw_hole_diam = 2;
screw_hole_depth = 12;
screw_diam = 3;
screw_spacer_diam = 10;
border = 1; border = 1;
funnel_size = 1; funnel_size = 1;
part = 0; part = 0;
part_sep = 0.4;
module _end_of_customizer() {} module _end_of_customizer() {}
assert(part >= 0 && part <= 2); assert(part >= 0 && part <= 2);
@ -44,17 +41,15 @@ overall_cylinder();
module bottom() { module bottom() {
difference() { difference() {
union() union() {
for(i = [0:5]) { for(i = [0:5]) {
rotate([0, 0, i / 6 * 360]) rotate([0, 0, i / 6 * 360])
bottom_part(); bottom_part();
} }
}
translate([0, 0, -1]) translate([0, 0, bottom_height])
cylinder(d = screw_diam + 1, h = bottom_height + 2); connection(true);
translate([0, 0, -1])
cylinder(d = screw_spacer_diam, h = 2 + 1);
} }
} }
@ -94,16 +89,12 @@ color("#dd08")
bottom(); bottom();
module top() { module top() {
difference() {
union()
for(i = [0:5]) { for(i = [0:5]) {
rotate([0, 0, i / 6 * 360]) rotate([0, 0, i / 6 * 360])
top_part(); top_part();
} }
translate([0, 0, -1]) connection(false);
cylinder(d = screw_hole_diam, h = screw_hole_depth + 1);
}
} }
module top_part() { module top_part() {
@ -138,9 +129,20 @@ module top_part_hollow() {
if(part == 0 || part == 2) if(part == 0 || part == 2)
color("#4d48") color("#4d48")
translate([0, 0, bottom_height]) translate([0, 0, bottom_height + part_sep])
top(); top();
module connection(hole) {
sep_hole = hole?part_sep:0;
sep_screw = hole?0:part_sep;
translate([0, 0, -1.5 - sep_screw * 2])
cylinder(d = 4 + sep_hole, h = 1.5 + sep_screw * 2);
translate([0, 0, -3 - sep_screw * 2])
cylinder(d1 = 8 + sep_hole, d2 = 4 + sep_hole, h = 1.5);
}
if($preview && part == 1) if($preview && part == 1)
color("#f008") color("#f008")
for(i = [0:5]) { for(i = [0:5]) {