-
Notifications
You must be signed in to change notification settings - Fork 0
/
dodecahedron_inner_volume.scad
71 lines (65 loc) · 1.79 KB
/
dodecahedron_inner_volume.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
include <dodecahome_config.scad>
module DodecahedronSlice() {
C0 = 0.809016994374947424102293417183;
C1 = 1.30901699437494742410229341718;
vert_points = [
[ 0.0, 0.5, C1],
[ 0.0, 0.5, -C1],
[ 0.0, -0.5, C1],
[ 0.0, -0.5, -C1],
[ C1, 0.0, 0.5],
[ C1, 0.0, -0.5],
[ -C1, 0.0, 0.5],
[ -C1, 0.0, -0.5],
[ 0.5, C1, 0.0],
[ 0.5, -C1, 0.0],
[-0.5, C1, 0.0],
[-0.5, -C1, 0.0],
[ C0, C0, C0],
[ C0, C0, -C0],
[ C0, -C0, C0],
[ C0, -C0, -C0],
[ -C0, C0, C0],
[ -C0, C0, -C0],
[ -C0, -C0, C0],
[ -C0, -C0, -C0]
];
points = [
[ 0.0, 0.5, C1],
[ 0.0, 0.5, -C1],
[ 0.0, -0.5, C1],
[ 0.0, -0.5, -C1],
[ C1, 0.0, 0.5],
[ C1, 0.0, -0.5],
[ -C1, 0.0, 0.5],
[ -C1, 0.0, -0.5],
[ 0.5, C1, 0.0],
[ 0.5, -C1, 0.0],
[-0.5, C1, 0.0],
[-0.5, -C1, 0.0],
[ C0, C0, C0],
[ C0, C0, -C0],
[ C0, -C0, C0],
[ C0, -C0, -C0],
[ -C0, C0, C0],
[ -C0, C0, -C0],
[ -C0, -C0, C0],
[ -C0, -C0, -C0]
];
faces = [
[ 12, 4, 14, 2, 0],
[ 16, 10, 8, 12, 0],
[ 2, 18, 6, 16, 0],
[ 17, 10, 16, 6, 7],
[ 19, 3, 1, 17, 7], // 0
[ 6, 18, 11, 19, 7],
[ 15, 3, 19, 11, 9],
[ 14, 4, 5, 15, 9],
[ 11, 18, 2, 14, 9],
[ 8, 10, 17, 1, 13], // 1
[ 5, 4, 12, 8, 13],
[ 1, 3, 15, 5, 13] // 2
];
rotate([-magic_angle, 0, 0]) polyhedron(points, faces);
}
//scale(interior_scale) DodecahedronSlice();