forked from JustinSDK/dotSCAD
-
Notifications
You must be signed in to change notification settings - Fork 0
/
samurai_daruma.scad
108 lines (95 loc) · 1.99 KB
/
samurai_daruma.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
use <daruma.scad>
use <arc.scad>
use <polyline_join.scad>
text = "順暢";
font = "思源黑體 Medium";
font_size = 15;
nose = true;
model = "both"; // [daruma, helmet, both]
scale(.7) {
if(model == "daruma") {
difference() {
union() {
daruma(nose);
wish_decoration(text, font, font_size);
}
translate([0, 0, -23])
linear_extrude(20)
square(100, center = true);
}
} else if(model == "helmet") {
scale(1.03)
helmet();
}
else {
difference() {
union() {
daruma(nose);
wish_decoration(text, font, font_size);
}
translate([0, 0, -24.5])
linear_extrude(20)
square(100, center = true);
}
translate([0, 4, 55])
rotate([-20, 0, 0])
helmet();
}
}
module helmet() {
scale([1.125, 1.2, .8]) {
rotate_extrude($fn = 12)
arc(radius = 41, angle = [0, 90], width = 3);
rotate(-30)
rotate_extrude(angle = 240, $fn = 12)
polyline_join([[40.65, 1], [45, -10], [50, -30], [60, -45]])
circle(1.625, $fn = 4);
translate([0, 0, 1])
linear_extrude(2)
difference() {
translate([0, -20])
scale([.9, 1])
circle(41, $fn = 8);
circle(41);
}
translate([0, 0, 3])
linear_extrude(2)
difference() {
translate([0, -20])
circle(35, $fn = 8);
circle(41, $fn = 12);
}
translate([0, 0, 5])
linear_extrude(2)
difference() {
translate([0, -20])
circle(30, $fn = 4);
circle(41, $fn = 12);
}
translate([0, -41, 12])
rotate([90, 0, 0])
scale([1, 1.2, 0.35])
sphere(10, $fn = 6);
translate([0, -38, 67])
rotate([90, 0, 0])
linear_extrude(2)
difference() {
circle(41 * 1.5, $fn = 12);
translate([0, 14])
circle(41 * 1.5);
}
}
translate([-77, -26, -25])
rotate([-1, 23, 30])
linear_extrude(35)
rotate([0, 0, -150])
scale([0.75, 1])
arc(radius = 30, angle = [0, 130], width = 2);
mirror([1, 0, 0])
translate([-77, -26, -25])
rotate([-1, 23, 30])
linear_extrude(35)
rotate([0, 0, -150])
scale([0.75, 1])
arc(radius = 30, angle = [0, 130], width = 2);
}