summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--mixer-embeddest.scad10
-rw-r--r--mixer.scad47
2 files changed, 41 insertions, 16 deletions
diff --git a/mixer-embeddest.scad b/mixer-embeddest.scad
new file mode 100644
index 0000000..576be47
--- a/dev/null
+++ b/mixer-embeddest.scad
@@ -0,0 +1,10 @@
+extrusion_width=.5;
+
+use <mixer.scad>;
+
+the_mixer(
+ pushfit_type="embeddest",
+ pushfit_d = 8,
+ pushfit_h = 7,
+ interpushfit = extrusion_width
+);
diff --git a/mixer.scad b/mixer.scad
index 7b2e5d4..a3510a2 100644
--- a/mixer.scad
+++ b/mixer.scad
@@ -17,5 +17,8 @@ module the_mixer(
pushfit_d = 10, pushfit_h = 10,
- pushfit_type = "threaded", // threaded|embedded
+ pushfit_id = 6.5,
+ pushfit_type = "threaded", // threaded|embedded|embeddest
pushfit_ring_h = 4.7, // height of embedded pushfit ring
pushfit_insert_d = 8, // diameter of pushfit insert legs hole
+ pushfit_legspace_h = 3.2, // the height of legspace for embeddest variant
+ pushfit_inlet_ch = 1,
liner_d = 4, liner_id = 2,
@@ -31,2 +34,3 @@ module the_mixer(
) {
+ fnd = PI*2*2; fnr = fnd*2;
module liner(l,in) {
@@ -35,5 +39,5 @@ module the_mixer(
translate([0,0,inh])
- cylinder(d=ld,h=l-inh,$fn=ld*PI*2);
+ cylinder(d=ld,h=l-inh,$fn=ld*fnd);
translate([0,0,-epsilon])
- cylinder(d1=ld+epsilon,d2=liner_id-epsilon,h=inh+2*epsilon);
+ cylinder(d1=ld+epsilon,d2=liner_id-epsilon,h=inh+2*epsilon,$fn=ld*fnd);
}
@@ -45,4 +49,12 @@ module the_mixer(
translate([0,0,pushfit_h-pushfit_ring_h])
- cylinder(d=pushfit_d,h=pushfit_ring_h,$fn=pushfit_d*PI*2);
- cylinder(d=pushfit_insert_d,h=pushfit_h,$fn=pushfit_insert_d*PI*2);
+ cylinder(d=pushfit_d,h=pushfit_ring_h,$fn=fnd);
+ cylinder(d=pushfit_insert_d,h=pushfit_h,$fn=pushfit_insert_d*fnd);
+ }else if(pushfit_type=="embeddest") {
+ cylinder(d=pushfit_id,h=pushfit_h+1,$fn=pushfit_insert_d*fnd);
+ cylinder(d=pushfit_d,h=pushfit_legspace_h,$fn=pushfit_d*fnd);
+ dd = pushfit_d-pushfit_id;
+ translate([0,0,pushfit_legspace_h-epsilon])
+ cylinder(d1=pushfit_d,d2=pushfit_id-2*epsilon,h=dd+epsilon,$fn=pushfit_d*fnd);
+ translate([0,0,pushfit_h-pushfit_inlet_ch-epsilon])
+ cylinder(d1=pushfit_id-2*epsilon,d2=pushfit_id+2*pushfit_inlet_ch+2,h=pushfit_inlet_ch+epsilon+1,$fn=(pushfit_id+2*pushfit_inlet_ch+2)*fnd);
}
@@ -54,3 +66,6 @@ module the_mixer(
pfR = pushfit_d/2+pfrx; // radius of pushfit with margin
- pfoo = pushfit_type=="threaded" ? 0 : (pushfit_h-pushfit_ring_h); // offset of pushfit offset
+ // offset of pushfit offset
+ pfoo = (pushfit_type=="threaded") ? 0 :
+ (pushfit_type=="embedded") ? (pushfit_h-pushfit_ring_h) :
+ (pushfit_type=="embeddest") ? 0 : undef;
pfo = pfR/tan(join_angle/2)-pfoo; // pushfit thread ofset
@@ -64,5 +79,5 @@ module the_mixer(
translate([ss*pushfit_d/2,pfo+pushfit_h-outer_r-epsilon])
- cylinder(r=outer_r,h=h,center=true,$fn=outer_r*PI*4);
+ cylinder(r=outer_r,h=h,center=true,$fn=outer_r*fnr);
translate([s*pushfit_d/2,-output_l-pushfit_h+outer_r+epsilon,0])
- cylinder(r=outer_r,h=h,center=true,$fn=outer_r*PI*4);
+ cylinder(r=outer_r,h=h,center=true,$fn=outer_r*fnr);
}
@@ -71,4 +86,4 @@ module the_mixer(
translate([0,linero,0]) rotate([-90,0,0])
- liner(l=pfo-linero+1,in="bottom");
- //cylinder(d=ld,h=pfo-linero+1,$fn=ld*PI*4);
+ liner(l=pfo-linero+epsilon,in="bottom");
+ //cylinder(d=ld,h=pfo-linero+1,$fn=ld*fnd);
translate([0,pfo,0]) rotate([-90,0,0])
@@ -77,4 +92,4 @@ module the_mixer(
rotate([90,0,0]) {
- liner(l=output_l+1,in="top");
- //cylinder(d=ld,h=output_l+1,$fn=ld*PI*4);
+ liner(l=output_l+epsilon,in="top");
+ //cylinder(d=ld,h=output_l+1,$fn=ld*fnd);
translate([0,0,output_l])
@@ -86,6 +101,6 @@ module the_mixer(
translate([0,0,linero])
- cylinder(d=ld,h=epsilon,$fn=ld*PI*4);
+ cylinder(d=ld,h=epsilon,$fn=ld*fnd);
}
rotate([90,0,0])
- cylinder(d=ld,h=epsilon,$fn=ld*PI*4);
+ cylinder(d=ld,h=epsilon,$fn=ld*fnd);
}
@@ -96,4 +111,4 @@ module this() {
the_mixer(
- pushfit_type="embedded",
- pushfit_d = 12,
+ pushfit_type="embeddest",
+ pushfit_d = 8,
pushfit_h = 7,