-
Notifications
You must be signed in to change notification settings - Fork 0
/
game_tile_holder.scad
142 lines (130 loc) · 3.94 KB
/
game_tile_holder.scad
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
// A simple holder for game tiles
//
// Copyright 2011 John Cooper
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
// Make the curves more curvey
$fs=0.2;
tileHeight=26;
tileWidth=19;
tileDepth=13;
tileNumber=7;
standWidth= tileWidth * ( tileNumber + 1 );
module holder (side) {
dragon_x_r = ( side == "right" ) ? 3 : 0;
dragon_x_l = ( side == "right" ) ? 17 : 20;
difference () {
union () {
// Stand
rotate ([55,0,0]) {
difference () {
minkowski() {
cube ([standWidth, tileHeight, 3]);
cylinder(r=3, h=1);
}
// for right x = 3 and 17 for these two translates
translate ([dragon_x_r,18,3]) {
linear_extrude(file = "clipart/dragon-1275922881.dxf",
height = 6, center = false, convexity = 10, scale=0.3);
}
translate ([standWidth -dragon_x_l,18,3]) {
linear_extrude(file = "clipart/dragon-1275922881.dxf",
height = 6, center = false, convexity = 10, scale=0.3);
}
}
}
// bottom
translate([0, 1, 0]) {
minkowski() {
cube ([standWidth, tileHeight * 0.8, 2]);
cylinder(r=3, h=1);
}
}
// lip
rotate ([145,0,0]) {
difference () {
minkowski() {
cube ([standWidth, tileDepth * 0.8, 3]);
cylinder(r=3, h=1);
}
translate ([-4,13,12]) {
rotate ([0,90,0]) {
cylinder (h=standWidth * 1.2, r=10.5);
}
}
}
}
}
translate ([-4,-10,-10]) {
cube ([standWidth + 8, tileHeight * 1.5, 10]);
}
// Stand arch
difference () {
translate ([standWidth * 0.5, standWidth * 0.42, -0.1]) {
cylinder (r=standWidth * 0.5, h=3.15);
}
translate ([0, -13, -0.1]) {
cube ([standWidth,15,5]);
}
}
}
}
module rightHolder () {
difference () {
holder (side="right");
// hole for clip
translate ([2.4,10,0]) {
cylinder ( r=4, h=4);
}
translate ([5,-20,0]) {
rotate ([0,0,100]) {
cube ([tileHeight * 2, 7, tileHeight * 1.1]);
}
}
}
}
module leftHolder () {
union () {
difference () {
holder (side="left");
translate ([standWidth +2,-20,0]) {
rotate ([0,0,80]) {
cube ([tileHeight * 2, 7, tileHeight * 1.1]);
}
}
}
// peg for clip
translate ([standWidth + 5.5 - 2.4,9,0]) {
cylinder ( r=3.6, h=4);
}
}
}
module bothTogether () {
// Show them both connected together
translate ([standWidth-2.7,0.5,0]) {
rotate ([0,0,-20]) {
rightHolder ();
}
}
leftHolder ();
}
module bothForPrint () {
// Show them both next to each other for printing
translate([0, tileHeight * 2, 0]) {
rightHolder ();
}
leftHolder ();
}
bothForPrint();
// bothTogether();