-rw-r--r-- | volcano.scad | 53 |
1 files changed, 47 insertions, 6 deletions
diff --git a/volcano.scad b/volcano.scad index 00ff64e..3c0ff04 100644 --- a/volcano.scad +++ b/volcano.scad | |||
@@ -30,4 +30,16 @@ the_h = volcano_h+sv; | |||
30 | 30 | ||
31 | /* Nozzle stuff */ | ||
32 | n_protrude = 0.4;// nozzle tip protrusion from silicone | ||
33 | n_h1 = 3; // nozzle cone base from the heater body (minimal) | ||
34 | n_cone_h = 2; // nozzle cone height | ||
35 | n_cone_d2 = 1; // pad diameter of the 0.4 nozzle (works up to 0.6); see | ||
36 | // http://wiki.e3d-online.com/images/3/3a/V6-NOZZLE-ALL.pdf | ||
37 | |||
38 | n_cone_d1 = n_cone_h * tan(40) * 2 + n_cone_d2; | ||
39 | codpiece_h = n_h1 + n_cone_h - n_protrude; | ||
40 | |||
41 | codpiece=true; | ||
42 | |||
31 | use <bubbles.scad>; | 43 | use <bubbles.scad>; |
32 | module heatershape() { | 44 | module heatershape(codpiece=codpiece) { |
33 | difference() { | 45 | difference() { |
@@ -62,3 +74,16 @@ module heatershape() { | |||
62 | translate([volcano_n_offset_w,volcano_n_offset_l,-sv]) | 74 | translate([volcano_n_offset_w,volcano_n_offset_l,-sv]) |
63 | cylinder(d=volcano_n_d,h=sv+1,$fn=24); | 75 | if(codpiece) { |
76 | translate([0,0,sv]) mirror([0,0,1]) { | ||
77 | translate([0,0,-1]) cylinder(d=volcano_n_d,h=n_h1+1,$fn=32); | ||
78 | translate([0,0,n_h1-epsilon]) cylinder(d1=n_cone_d1,d2=n_cone_d2+n_protrude*tan(40)*2,h=n_cone_h-n_protrude,$fn=32); | ||
79 | } | ||
80 | /* | ||
81 | mc_d2 = n_cone_d2 + n_protrude * tan(40) * 2; | ||
82 | intersection() { | ||
83 | cylinder(d = volcano_n_d, h = n_h1 + 1 + epsilon, $fn=24); | ||
84 | translate([0,0,-n_h1]) cylinder(d2 = volcano_n_d * 2, d1 = 0, h = n_h1 * 2 + 1, $fn=24); | ||
85 | } | ||
86 | mirror([0,0,1]) translate([0,0,-epsilon]) cylinder(h = n_cone_h - n_protrude, d1 = n_cone_d1, d2 = mc_d2, $fn = 32); | ||
87 | */ | ||
88 | }else cylinder(d=volcano_n_d,h=sv+1,$fn=24); | ||
64 | // cartridge | 89 | // cartridge |
@@ -104,6 +129,22 @@ view="*"; | |||
104 | 129 | ||
105 | view(view=view,volume=vol) { | 130 | difference() { |
106 | mold(size=[the_w,the_l,the_h],s=ms,v_protrude=protrude,introffset=(volcano_l-volcano_cutoff_l)*3/4); | 131 | view(view=view,volume=vol) { |
107 | translate([ms+volcano_hs_t+sh,ms+sh,ms+sv]) heatershape(); | 132 | difference() { |
108 | translate([ms+epsilon,ms+epsilon,ms+epsilon]) cube(size=[the_w-2*epsilon,the_l-2*epsilon,the_h]); | 133 | union() { |
134 | echo("ch",volcano_n_offset_l+sh-volcano_n_d/2-1); | ||
135 | mold(size=[the_w,the_l,the_h],s=ms,v_protrude=protrude,introffset=(volcano_l-volcano_cutoff_l)*3/4, | ||
136 | chamfer = volcano_n_offset_l+sh-volcano_n_d/2-1); | ||
137 | if(codpiece) | ||
138 | translate([0,0,-codpiece_h+sv]) | ||
139 | cube([the_w + ms*2,the_l + ms*2, codpiece_h - sv + epsilon]); | ||
140 | } | ||
141 | if(codpiece) | ||
142 | translate([ms+ss+volcano_hs_t+volcano_n_offset_w,ms+ss+volcano_n_offset_l,ms]) | ||
143 | scale([1,1,2*(codpiece_h-sv)/(volcano_n_d+2)]) | ||
144 | sphere(d=volcano_n_d+2,$fn=64); | ||
145 | } | ||
146 | translate([ms+volcano_hs_t+sh,ms+sh,ms+sv]) heatershape(); | ||
147 | translate([ms+epsilon,ms+epsilon,ms+epsilon]) cube(size=[the_w-2*epsilon,the_l-2*epsilon,the_h]); | ||
148 | } | ||
149 | * translate([ss+sh+volcano_w/2,-1,-2]) cube(size=[40,40,40]); | ||
109 | } | 150 | } |