pacman-ghost: add optional sacrificial support layer back
authorClinton Ebadi <clinton@unknownlamer.org>
Fri, 1 Nov 2019 20:59:39 +0000 (16:59 -0400)
committerClinton Ebadi <clinton@unknownlamer.org>
Fri, 1 Nov 2019 20:59:39 +0000 (16:59 -0400)
Turns out it really is easier to print with this instead of using
slicer supports, at least on my machine.

pacman-ghost/pacman-ghost.scad

index 8ad72e0..e314b97 100644 (file)
@@ -33,6 +33,9 @@ $fa=4; // [20:Low Res, 10:Normal Res, 4:Hi Res]
 base_diameter = 30;
 base_height   = 16.2;
 bulb_diameter = 9;
 base_diameter = 30;
 base_height   = 16.2;
 bulb_diameter = 9;
+// Built in sacrificial support layer
+tea_light_support = true;
+tea_light_support_thickness = 0.3;
 
 /* [Hidden] */
 $fs=0.1;
 
 /* [Hidden] */
 $fs=0.1;
@@ -83,9 +86,11 @@ module tea_light_base () {
          }
          // sacrificial support layer, subtracted since this will be
          // subtracted from the ghost body
          }
          // sacrificial support layer, subtracted since this will be
          // subtracted from the ghost body
-         translate ([0, 0, base_height+0.7]) #cylinder (d=base_diameter+2, h=0.3);
+         if (tea_light_support) {
+              translate ([0, 0, base_height+(1 - tea_light_support_thickness)])
+                   #cylinder (d=base_diameter+2, h=tea_light_support_thickness);
+         }
      }
      }
-
 }
 
 module pacguy () {
 }
 
 module pacguy () {