HCoop
/
clinton
/
3d-models.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
pacman-ghost: make tea light parameters global
[clinton/3d-models.git]
/
pacman-ghost
/
pacman-ghost.scad
diff --git
a/pacman-ghost/pacman-ghost.scad
b/pacman-ghost/pacman-ghost.scad
index
c351eba
..
35c8d03
100644
(file)
--- a/
pacman-ghost/pacman-ghost.scad
+++ b/
pacman-ghost/pacman-ghost.scad
@@
-4,7
+4,7
@@
//
// Created by Joao Alves (jpralves@gmail.com)
// Tea Light added by Clinton Ebadi <clinton@unknownlamer.org>
//
// Created by Joao Alves (jpralves@gmail.com)
// Tea Light added by Clinton Ebadi <clinton@unknownlamer.org>
-// Pac Guy model by Fry Hyde
+// Pac Guy model by Fry Hyde
(https://www.thingiverse.com/thing:612888)
// ------------------------------------------
//
// Parameters:
// ------------------------------------------
//
// Parameters:
@@
-24,11
+24,16
@@
tea_light = true;
// Render Ghost
ghost = true;
// Render Pac Guy
// Render Ghost
ghost = true;
// Render Pac Guy
-pacguy =
tru
e;
+pacguy =
fals
e;
// Detail
$fa=4; // [20:Low Res, 10:Normal Res, 4:Hi Res]
// Detail
$fa=4; // [20:Low Res, 10:Normal Res, 4:Hi Res]
+// [Tea Light]
+base_diameter = 30;
+base_height = 16.2;
+bulb_diameter = 9;
+
/* [Hidden] */
$fs=0.1;
/* [Hidden] */
$fs=0.1;
@@
-71,18
+76,11
@@
module led_hole (led_d = led_hole, led_h = 0) {
}
module tea_light_base () {
}
module tea_light_base () {
- base_diameter = 30;
- base_height = 16.2;
- bulb_ghost_diameter = 9;
-
difference () {
union () {
cylinder (d = base_diameter + 1, h = base_height + 1);
difference () {
union () {
cylinder (d = base_diameter + 1, h = base_height + 1);
- led_hole (led_d = bulb_
ghost_
diameter, led_h = base_height+8);
+ led_hole (led_d = bulb_diameter, led_h = base_height+8);
}
}
- // 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);
}
}
}
}