1 |
$fn=50; |
1 |
$fn=50; |
2 |
|
2 |
|
3 |
use <./../../../../../Library/Graphics/MLAB_logo.scad> |
3 |
use <./../../../../../Library/Graphics/MLAB_logo.scad> |
4 |
|
4 |
|
5 |
module short_logo(){ |
5 |
module short_logo(){ |
6 |
color("white") |
6 |
color("white") |
7 |
minkowski() |
7 |
minkowski() |
8 |
{ |
8 |
{ |
9 |
cube([50,25,2]); |
9 |
cube([50,25,2]); |
10 |
cylinder(r=2,h=1); |
10 |
cylinder(r=2,h=1); |
11 |
} |
11 |
} |
12 |
|
12 |
|
13 |
color("black") |
13 |
color("black") |
14 |
union (){ |
14 |
union (){ |
15 |
translate ([25, 12.5, 3]) // ODROIDs passive components hole. |
15 |
translate ([25, 12.5, 3]) // ODROIDs passive components hole. |
16 |
scale(v = [0.25, 0.25, 0.25]) |
16 |
scale(v = [0.25, 0.25, 0.25]) |
17 |
MLAB_logo_short(); |
17 |
MLAB_logo_short(); |
18 |
} |
18 |
} |
19 |
} |
19 |
} |
20 |
|
20 |
|
21 |
module long_logo(){ |
21 |
module long_logo(indented = 1){ |
22 |
color("white") |
- |
|
23 |
minkowski() |
22 |
if(indented == 0) |
24 |
{ |
23 |
{ |
- |
|
24 |
color("white") |
- |
|
25 |
minkowski() |
- |
|
26 |
{ |
25 |
cube([110,25,2]); |
27 |
cube([110,25,2]); |
26 |
cylinder(r=2,h=1); |
28 |
cylinder(r=2,h=1); |
- |
|
29 |
} |
- |
|
30 |
color("black") |
- |
|
31 |
union (){ |
- |
|
32 |
translate ([55, 12.5, 1]) // ODROIDs passive components hole. |
- |
|
33 |
scale(v = [0.75, 0.75, 0.75]) |
- |
|
34 |
MLAB_logo_long(); |
- |
|
35 |
} |
- |
|
36 |
} |
- |
|
37 |
else |
- |
|
38 |
{ |
- |
|
39 |
difference(){ |
- |
|
40 |
color("white") |
- |
|
41 |
minkowski() |
- |
|
42 |
{ |
- |
|
43 |
cube([110,25,2]); |
- |
|
44 |
cylinder(r=2,h=1); |
- |
|
45 |
} |
- |
|
46 |
union (){ |
- |
|
47 |
translate ([55, 12.5, 1.5]) // ODROIDs passive components hole. |
- |
|
48 |
scale(v = [0.75, 0.75, 0.75]) |
- |
|
49 |
MLAB_logo_long(); |
- |
|
50 |
} |
- |
|
51 |
} |
27 |
} |
52 |
} |
28 |
|
- |
|
29 |
color("black") |
- |
|
30 |
union (){ |
- |
|
31 |
translate ([55, 12.5, 1]) // ODROIDs passive components hole. |
- |
|
32 |
scale(v = [0.75, 0.75, 0.75]) |
- |
|
33 |
MLAB_logo_long(); |
- |
|
34 |
} |
- |
|
35 |
} |
53 |
} |
36 |
|
54 |
|
37 |
module short_logo(){ |
55 |
module short_logo(){ |
38 |
color("white") |
56 |
color("white") |
39 |
minkowski() |
57 |
minkowski() |
40 |
{ |
58 |
{ |
41 |
cube([55,25,2]); |
59 |
cube([55,25,2]); |
42 |
cylinder(r=2,h=1); |
60 |
cylinder(r=2,h=1); |
43 |
} |
61 |
} |
44 |
|
62 |
|
45 |
color("black") |
63 |
color("black") |
46 |
union (){ |
64 |
union (){ |
47 |
translate ([28, 12.5, 3]) // ODROIDs passive components hole. |
65 |
translate ([28, 12.5, 3]) // ODROIDs passive components hole. |
48 |
scale(v = [0.25, 0.25, 0.25]) |
66 |
scale(v = [0.25, 0.25, 0.25]) |
49 |
MLAB_logo_short(); |
67 |
MLAB_logo_short(); |
50 |
} |
68 |
} |
51 |
} |
69 |
} |
52 |
|
70 |
|
53 |
//short_logo(); |
71 |
//short_logo(); |
54 |
long_logo(); |
72 |
long_logo(indented = 1); |
55 |
|
73 |
|
56 |
module identification_logo(){ |
74 |
module identification_logo(){ |
57 |
color("white") |
75 |
color("white") |
58 |
minkowski() |
76 |
minkowski() |
59 |
{ |
77 |
{ |
60 |
cube([55,25,2]); |
78 |
cube([55,25,2]); |
61 |
cylinder(r=2,h=1); |
79 |
cylinder(r=2,h=1); |
62 |
} |
80 |
} |
63 |
|
81 |
|
64 |
color("black") |
82 |
color("black") |
65 |
union (){ |
83 |
union (){ |
66 |
translate ([28, 12.5, 3]) // ODROIDs passive components hole. |
84 |
translate ([28, 12.5, 3]) // ODROIDs passive components hole. |
67 |
scale(v = [0.25, 0.25, 0.25]) |
85 |
scale(v = [0.25, 0.25, 0.25]) |
68 |
text("IRRAD01A",20); |
86 |
text("IRRAD01A",20); |
69 |
} |
87 |
} |
70 |
} |
88 |
} |
71 |
|
89 |
|
72 |
//identification_logo(); |
90 |
//identification_logo(); |