Lovevery coin
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
coin_d = 2*25.4; // 2"
|
||||
coin_h = (9/64)*25.4; // 9/64"
|
||||
edge = 4;
|
||||
|
||||
space = 10;
|
||||
smoothing = 1;
|
||||
|
||||
$fn = 100;
|
||||
|
||||
module Text(character) {
|
||||
offset(r=smoothing) offset(r=-2*smoothing) offset(r=smoothing)
|
||||
text(character, size = 35, font = "Liberation Mono:style=Bold", halign = "center", valign = "center");
|
||||
}
|
||||
|
||||
module CharCoin(character) {
|
||||
difference() {
|
||||
cylinder(h = coin_h, d = coin_d, center = true);
|
||||
group() {
|
||||
translate([0,0,3/8*coin_h])
|
||||
cylinder(h = coin_h/4, d = coin_d-2*edge, center = true);
|
||||
}
|
||||
}
|
||||
|
||||
group() {
|
||||
translate([0,0,0.25*coin_h])
|
||||
linear_extrude(coin_h/4)
|
||||
Text(character);
|
||||
}
|
||||
}
|
||||
|
||||
for(num = [0 : 9])
|
||||
translate([(num%3)*(coin_d+space),-(num/3)*(coin_d+space),0])
|
||||
CharCoin(str(num));
|
||||
|
||||
// CharCoin("8");
|
||||
Reference in New Issue
Block a user