summaryrefslogtreecommitdiff
authorMichael Krelin <hacker@klever.net>2016-06-27 20:47:35 (UTC)
committer Michael Krelin <hacker@klever.net>2016-06-27 21:12:48 (UTC)
commite67233de1aac575632ecc366e3fd2a6251b50ee2 (patch) (unidiff)
treee1fc6e6bbea0ddba162f31d5896ebd2a1178931f
parentd52fcc750db4bcf2a92017df239170b7ec1de4e8 (diff)
downloadhotendery-e67233de1aac575632ecc366e3fd2a6251b50ee2.zip
hotendery-e67233de1aac575632ecc366e3fd2a6251b50ee2.tar.gz
hotendery-e67233de1aac575632ecc366e3fd2a6251b50ee2.tar.bz2
mold: fix inprotrusion generation
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--mold.scad2
1 files changed, 1 insertions, 1 deletions
diff --git a/mold.scad b/mold.scad
index 7d94337..d5354b0 100644
--- a/mold.scad
+++ b/mold.scad
@@ -22,25 +22,25 @@ module mold(
22 } 22 }
23 } 23 }
24 } 24 }
25 gw = 3*s; // guide width, in case I'll want to change it. 25 gw = 3*s; // guide width, in case I'll want to change it.
26 module trusion(in) { 26 module trusion(in) {
27 translate([-gw/2,0,s+size[2]]) union() { 27 translate([-gw/2,0,s+size[2]]) union() {
28 hull() { 28 hull() {
29 translate([0,0,in]) 29 translate([0,0,in])
30 cube(size=[gw,in+s,v_protrude-in]); 30 cube(size=[gw,in+s,v_protrude-in]);
31 cube(size=[gw,s,in]); 31 cube(size=[gw,s,in]);
32 } 32 }
33 hull() { 33 hull() {
34 translate([0,0,-v_protrude]) 34 translate([0,0,-h_protrude])
35 cube(size=[gw,s,v_protrude+h_protrude]); 35 cube(size=[gw,s,v_protrude+h_protrude]);
36 translate([0,-h_protrude,0]) 36 translate([0,-h_protrude,0])
37 cube(size=[gw,s+h_protrude,v_protrude]); 37 cube(size=[gw,s+h_protrude,v_protrude]);
38 } 38 }
39 } 39 }
40 } 40 }
41 /* frontal guide */ 41 /* frontal guide */
42 translate([s+size[0]/2,0,]) trusion(in=f_intrude); 42 translate([s+size[0]/2,0,]) trusion(in=f_intrude);
43 /* left guide */ 43 /* left guide */
44 translate([0,s+introffset,0]) rotate([0,0,-90]) trusion(in=l_intrude); 44 translate([0,s+introffset,0]) rotate([0,0,-90]) trusion(in=l_intrude);
45 /* right guide */ 45 /* right guide */
46 translate([size[0]+2*s,s+introffset,0]) rotate([0,0,90]) trusion(in=r_intrude); 46 translate([size[0]+2*s,s+introffset,0]) rotate([0,0,90]) trusion(in=r_intrude);