-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathN64_logo.scad
50 lines (44 loc) · 1.45 KB
/
N64_logo.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
////////////////////////////////////////////////////////////////////////////////
// NINTENDO 64 LOGO //
// BY JULIEN COPPOLANI //
// [email protected] //
////////////////////////////////////////////////////////////////////////////////
// N_letter has 10 vertices :
// 1────2 4────5
// │ \ │ │
// │ \ │ │
// │ 8 \ │ │
// │ │\ \ │ │
// │ │ \ \│ │
// │ │ \ 3 │
// │ │ \ │
// 0────9 \-7────6
N=20; // Size of the N64 logo
module N_letter()
{
// Base of the letter N
linear_extrude(height = N)
{
polygon(
points =
[[ 0, 0], [ 0, 3*N], // Vertices 0 & 1
[ N, 3*N], [2*N, 1.5*N], // Vertices 2 & 3
[2*N, 3*N], [3*N, 3*N], // Vertices 4 & 5
[3*N, 0], [2*N, 0], // Vertices 6 & 7
[N, 1.5*N], [ N, 0]] // Vertices 8 & 9
);
}
}
// N64_logo assembly
module N64_logo() {
color("green")
union()
{
N_letter();
translate([N, 0, -2*N]) rotate([0, -90, 0]) N_letter();
translate([2*N, 0, N]) rotate([0, 90, 0]) N_letter();
translate([3*N, 0, -N]) rotate([0, 180, 0]) N_letter();
}
}
// MAIN
translate([0, N, 0]) rotate([90, 0, 0]) N64_logo();