Added my little improvement to name_tag.scad
This commit is contained in:
parent
6a0d711861
commit
64a1182d96
|
@ -9,13 +9,16 @@ http://creativecommons.org/licenses/by/3.0/
|
||||||
|
|
||||||
// change chars array and char_count
|
// change chars array and char_count
|
||||||
// OpenSCAD has no string or length methods :(
|
// OpenSCAD has no string or length methods :(
|
||||||
chars = ["M","a","k","e","r","B","o","t"];
|
chars = ["R", "E", "P", "R", "A", "P"];
|
||||||
char_count = 8;
|
char_count = 6;
|
||||||
|
|
||||||
|
|
||||||
// block size 1 will result in 8mm per letter
|
// block size 1 will result in 8mm per letter
|
||||||
block_size = 1;
|
block_size = 2;
|
||||||
// height is the Z height of each letter
|
// height is the Z height of each letter
|
||||||
height = 3;
|
height = 3;
|
||||||
|
// Append a hole fo a keyring, necklace etc. ?
|
||||||
|
key_ring_hole = true;
|
||||||
|
|
||||||
union() {
|
union() {
|
||||||
translate(v = [0,-block_size*8*char_count/2+block_size*8/2,3]) {
|
translate(v = [0,-block_size*8*char_count/2+block_size*8/2,3]) {
|
||||||
|
@ -26,4 +29,11 @@ union() {
|
||||||
cube(size = [block_size * 8, block_size * 8 * char_count, 3], center = true);
|
cube(size = [block_size * 8, block_size * 8 * char_count, 3], center = true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (key_ring_hole == true){
|
||||||
|
translate([0, block_size * 8 * (char_count+1)/2, 3/2])
|
||||||
|
difference(){
|
||||||
|
cube(size = [block_size * 8, block_size * 8 , 3], center = true);
|
||||||
|
cube(size = [block_size * 4, block_size * 4 , 5], center = true);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue