forked from smcameron/space-nerds-in-space
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cruiser.scad
60 lines (53 loc) · 1.12 KB
/
cruiser.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
module little_pod()
{
scale(v = [1, 1.5, 1])
sphere(r = 1.5, center = true);
}
module main_fuselage()
{
union() {
union() {
rotate(a = 90, v = [1, 0, 0]) {
scale(v = [1, 0.5, 1])
cylinder(h = 20, r1 = 3.5, r2 = 2.5, center = true);
}
translate(v = [0, 5, 0.8])
sphere(r = 2.5, center = true);
translate(v = [0, -5, 0.5])
sphere(r = 1.8, center = true);
}
translate(v = [0, 10, 0])
sphere(r = 3.5, center = true);
translate(v = [0, -10, 0])
sphere(r = 1.8, center = true);
translate(v = [4, 10, 0])
little_pod();
translate(v = [0, 5.5, 4])
cylinder(h = 8, r1 = 0.1, r2 = 0.1, center = true);
translate(v = [0, 5.1, 4])
cylinder(h = 6, r1 = 0.1, r2 = 0.1, center = true);
}
}
module sub_fuselage()
{
union() {
rotate(a = 90, v = [1, 0, 0]) {
scale(v = [1, 1.5, 1])
cylinder(h = 13, r1 = 0.7, r2 = 0.5, center = true);
}
translate(v = [0, 2, 1])
scale(v = [1, 1, 1.5])
sphere(r = 1.3, center = true);
}
}
module ship()
{
rotate(a = -90, v = [0, 0, 1])
union() {
translate(v = [0, 0, -3.5])
sub_fuselage();
main_fuselage();
}
}
$fn = 6;
ship();