-
Notifications
You must be signed in to change notification settings - Fork 46
/
example_mmu.scad
83 lines (66 loc) · 2.5 KB
/
example_mmu.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
include <boardgame_insert_toolkit_lib.2.scad>;
// determines whether lids are output.
g_b_print_lid = true;
// determines whether boxes are output.
g_b_print_box = true;
// 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;
// This determines whether the default single material version is output, or, if printing in multiple materials,
// which layer to output.
//
g_print_mmu_layer = "default"; // [ "default" | "mmu_box_layer" | "mmu_label_layer" ]
data =
[
[ "simple box",
[
[ BOX_SIZE_XYZ, [45, 45, 15.0] ],
[ BOX_LID,
[
// [ LID_SOLID_B, t],
// [LID_LABELS_INVERT_B, t]
],
],
[ LABEL,
[
[ LBL_TEXT, "Lid Label"],
[ LBL_SIZE, AUTO ],
[ ROTATION, 315 ],
]
],
[ BOX_COMPONENT,
[
[CMP_COMPARTMENT_SIZE_XYZ, [ 42, 42, 13.0] ],
[LABEL,
[
[LBL_TEXT, "label"],
[LBL_PLACEMENT, CENTER],
[ ROTATION, 10],
[ LBL_SIZE, AUTO],
[ LBL_FONT, "Times New Roman:style=bold italic"],
]
],
]
],
]
],
];
MakeAll();