summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--volcano.scad4
1 files changed, 3 insertions, 1 deletions
diff --git a/volcano.scad b/volcano.scad
index 7f7ffce..00ff64e 100644
--- a/volcano.scad
+++ b/volcano.scad
@@ -79,30 +79,32 @@ module heatershape() {
rotate([0,0,90]) bubbles(size=[volcano_l,(volcano_hs_t+sh)/2,volcano_h-volcano_cutoff_t]);
rotate([-90,0,0])
bubbles(size=[volcano_w,sv/2,volcano_l]);
}
module silicone() {
translate([-sh-volcano_hs_t,-sh,-sv])
cube(size=[the_w,the_l,the_h-epsilon]);
}
use <mold.scad>;
vol_ = the_w*the_l*the_h
- volcano_w*volcano_l*volcano_h // heater block
+ volcano_w*volcano_cutoff_t*volcano_cutoff_l // cutoff
- PI*pow(volcano_n_d/2,2)*sv // nozzle
- PI*pow(volcano_c_d/2,2)*volcano_c_t // cartridge
- PI*pow(volcano_ts_d/2,2)*volcano_ts_t // thermistor screw
- PI*pow(volcano_hs_d/2,2)*volcano_hs_t *2 // heater screws
;
vol = vol_*1.2;
echo("volume",vol);
use <view.scad>;
-view(view="*",volume=vol) {
+view="*";
+
+view(view=view,volume=vol) {
mold(size=[the_w,the_l,the_h],s=ms,v_protrude=protrude,introffset=(volcano_l-volcano_cutoff_l)*3/4);
translate([ms+volcano_hs_t+sh,ms+sh,ms+sv]) heatershape();
translate([ms+epsilon,ms+epsilon,ms+epsilon]) cube(size=[the_w-2*epsilon,the_l-2*epsilon,the_h]);
}
/* vim:set ai sw=1: */