aboutsummaryrefslogtreecommitdiff
path: root/src/piecepack.scad
diff options
context:
space:
mode:
authorElena of Valhalla'' Grandi <valhalla@trueelena.org>2013-11-21 17:54:19 +0100
committerElena of Valhalla'' Grandi <valhalla@trueelena.org>2013-11-21 17:54:19 +0100
commitfb12832bfbfd1f2e0237bacd2776d215557ade9d (patch)
tree9dcd68fe9fdbcb97406ca1afac3be7b38710be2d /src/piecepack.scad
parent4d338a0cba74e7b3999ab595238b2b412f01f2b3 (diff)
Coin model
Diffstat (limited to 'src/piecepack.scad')
-rw-r--r--src/piecepack.scad16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/piecepack.scad b/src/piecepack.scad
index 0af95e5..ce6e62a 100644
--- a/src/piecepack.scad
+++ b/src/piecepack.scad
@@ -19,3 +19,19 @@ module tile(suite,value) {
}
}
+module coin(suite,value) {
+ difference() {
+ cylinder(r=10, h=3);
+ translate([0,0,-0.5]) linear_extrude(height=1.5) scale(0.4)
+ translate([-25,-25,0])
+ import(str("../graphics/",suite,".dxf"),center=true);
+ if (value != "null") {
+ translate([0,0,2]) linear_extrude(height=1.5) scale(0.4)
+ translate([-25,-25,0])
+ import(str("../graphics/",value,".dxf"),center=true);
+ }
+ translate([0,10,3]) rotate([90,0,0]) cylinder(r=0.8, h=2);
+ translate([0,10,0]) rotate([90,0,0]) cylinder(r=0.8, h=2);
+ }
+}
+