-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathminiatures.scad
118 lines (89 loc) · 3.62 KB
/
miniatures.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
include <boardgame_insert_toolkit_lib.2.scad>;
// determines whether lids are output.
g_b_print_lid = t;
// determines whether boxes are output.
g_b_print_box =f;
// Focus on one box
g_isolated_print_box = "";
// Used to visualize how all of the boxes fit together.
g_b_visualization = false;
// this is the outer wall thickness.
//Default = 1.5mm
g_wall_thickness = 1.5;
// The tolerance value is extra space put between planes of the lid and box that fit together.
// Increase the tolerance to loosen the fit and decrease it to tighten it.
//
// Note that the tolerance is applied exclusively to the lid.
// So if the lid is too tight or too loose, change this value ( up for looser fit, down for tighter fit ) and
// you only need to reprint the lid.
//
// The exception is the stackable box, where the bottom of the box is the lid of the box below,
// in which case the tolerance also affects that box bottom.
//
g_tolerance = 0.15;
// This adjusts the position of the lid detents downward.
// The larger the value, the bigger the gap between the lid and the box.
g_tolerance_detents_pos = 0.1;
innerPadding = 5;
boxWidth = 98;
boxDepth = 145;
boxHeight = 26*2;
innerWidth = boxWidth-innerPadding;
innerDepth = boxDepth-innerPadding;;
innerHeight = boxHeight-innerPadding;;
label = "Miniatures"; // Roberta Tolben Quill Olette Elwyn
data =
[
[ "card tray - push down",
[
[ BOX_SIZE_XYZ, [boxWidth, boxDepth,boxHeight] ],
[ BOX_LID,
[
[ LID_SOLID_B, f],
[ LID_PATTERN_RADIUS, 5],
[ LID_LABELS_BG_THICKNESS, 4],
[ LID_PATTERN_N1, 7 ],
[ LID_PATTERN_N2, 7 ],
[ LID_PATTERN_ANGLE, 25.7 ],
[ LID_PATTERN_ROW_OFFSET, 10 ],
[ LID_PATTERN_COL_OFFSET, 140 ],
[ LID_PATTERN_THICKNESS, 0.6 ],
[ LABEL,
[
[ LBL_TEXT, label],
[ ROTATION, 45 ],
[ LBL_SIZE, AUTO ],
[ LBL_FONT, "Orthodox Herbertarian:style=Regular"],
]
],
]
],
[ BOX_COMPONENT,
[
//[ CMP_COMPARTMENT_SIZE_XYZ, [ innerWidth, innerDepth, innerHeight] ],
[ CMP_NUM_COMPARTMENTS_XY, [3, 3] ], // it's a grid of 4 x 4
[ CMP_COMPARTMENT_SIZE_XYZ, [ 30.3, 30, innerHeight] ],
[ POSITION_XY, [ 0.6, 49]],
]
],
[ BOX_COMPONENT,
[
//[ CMP_COMPARTMENT_SIZE_XYZ, [ innerWidth, innerDepth, innerHeight] ],
// it's a grid of 4 x 4
[ CMP_COMPARTMENT_SIZE_XYZ, [ 30.1, 46.5, innerHeight] ],
[ POSITION_XY, [ 0.6, 1]],
]
],
[ BOX_COMPONENT,
[
//[ CMP_COMPARTMENT_SIZE_XYZ, [ innerWidth, innerDepth, innerHeight] ],
// it's a grid of 4 x 4
[ CMP_NUM_COMPARTMENTS_XY, [2,1] ],
[ CMP_COMPARTMENT_SIZE_XYZ, [ 30.2, 46.5, innerHeight] ],
[ POSITION_XY, [ 31.6, 1]],
]
],
]
],
];
MakeAll();