-
Notifications
You must be signed in to change notification settings - Fork 0
/
cubo_tray.scad
45 lines (34 loc) · 1.13 KB
/
cubo_tray.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
include <openscad-tray/tray.scad>
include <cubo_common.scad>
use <cubo_label.scad>
module cubo_tray() {
union() {
column_split = 2/3;
// y needs to be slightly larger so that there is some wiggle
// room for the pieces + include thickness
tray_thickness = side_thickness;
tray_y = side_length + (3*tray_thickness);
tray_x = tray_y;
tray_z = side_length / 2;
tray([tray_x, tray_y, tray_z],
thickness = tray_thickness,
n_columns=2,
n_rows=[1,3],
columns=[column_split, 1-column_split],
curved=false);
delta_z = tray_thickness;
translate([
(column_split * tray_x)/2,tray_y/2,delta_z])
cubo_label(text = "cubo");
translate([
((column_split + 1) * tray_x)/2,5*tray_y/6,delta_z])
cubo_label(text = "m4");
translate([
((column_split + 1) * tray_x)/2,tray_y/2,delta_z])
cubo_label(text = "m3");
translate([
((column_split + 1) * tray_x)/2,tray_y/6,delta_z])
cubo_label(text = "m2.5");
}
}
cubo_tray();