summaryrefslogtreecommitdiff
authorMichael Krelin <hacker@klever.net>2016-06-29 21:38:00 (UTC)
committer Michael Krelin <hacker@klever.net>2016-06-29 21:38:00 (UTC)
commitd0448a1c697d886521da5ae90e07c5b4bb8bf0f9 (patch) (side-by-side diff)
tree38eaf3ca8a1513f82d66c801a07aabd279f2d2ef
parentfe38002ae5714d1a080fc518e03459ef91724cad (diff)
downloadhotendery-d0448a1c697d886521da5ae90e07c5b4bb8bf0f9.zip
hotendery-d0448a1c697d886521da5ae90e07c5b4bb8bf0f9.tar.gz
hotendery-d0448a1c697d886521da5ae90e07c5b4bb8bf0f9.tar.bz2
volcano modified for easier command line render
Diffstat (more/less context) (show 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: */