-
Notifications
You must be signed in to change notification settings - Fork 0
/
gemcut21039.inc
181 lines (170 loc) · 17.2 KB
/
gemcut21039.inc
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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
//*************************************************************************
//
// gemcut file created by Richard B. Conley
//
// modified for the use as a macro by Ive
//
//*************************************************************************
// Cut Number = 21039
// #declare GemWidth = 1.6013150302982;
// No of Triangles = 134
// No of Crown Triangles = 62
// No of Girdle Triangles = 32
// No of Pavilion Triangles = 40
// #declare MinGdl = 0.0640526012119;
#macro Gem(CrnAngle, PavAngle)
#local CrnTan = tan(radians(CrnAngle));
#local PavTan = tan(radians(PavAngle));
#declare Y0 = 0;
#declare Y1 = 0.170935840339 * CrnTan;
#declare Y2 = 0.291658268113 * CrnTan;
#declare Y3 = 0.356157655466 * CrnTan;
#declare Y4 = 0.383482626661 * CrnTan;
#declare Y5 = 0.430646659664 * CrnTan;
#declare Y6 = - 0.0640526012119;
#declare Y7 = -0.170935840339 * PavTan - 0.0640526012119;
#declare Y8 = -0.291658268113 * PavTan - 0.0640526012119;
#declare Y9 = -0.383482626661 * PavTan - 0.0640526012119;
#declare Y10 = -0.858902582239 * PavTan - 0.0640526012119;
//#declare Gem =
mesh
{
// Crown Triangles
triangle { <-0.498710657352, Y2, 0.498710657352>, <-0.423736382551, Y4, 0.423736382551>, <-0.498710657352, Y0, 0.800657515149> }
triangle { <-0.498710657352, Y2, 0.498710657352>, <-0.800657515149, Y0, 0.498710657352>, <-0.423736382551, Y4, 0.423736382551> }
triangle { <-0.423736382551, Y4, 0.423736382551>, <-0.240197254545, Y5, 0.400328757575>, <-0.498710657352, Y0, 0.800657515149> }
triangle { <-0.800657515149, Y0, 0.498710657352>, <-0.400328757575, Y5, 0.240197254545>, <-0.423736382551, Y4, 0.423736382551> }
triangle { <-0.498710657352, Y2, 0.498710657352>, <-0.64968408625, Y0, 0.760204306797>, <-0.760204306797, Y0, 0.64968408625> }
triangle { <-0.498710657352, Y2, 0.498710657352>, <-0.498710657352, Y0, 0.800657515149>, <-0.64968408625, Y0, 0.760204306797> }
triangle { <-0.760204306797, Y0, 0.64968408625>, <-0.800657515149, Y0, 0.498710657352>, <-0.498710657352, Y2, 0.498710657352> }
triangle { <-0.498710657352, Y2, -0.498710657352>, <-0.423736382551, Y4, -0.423736382551>, <-0.800657515149, Y0, -0.498710657352> }
triangle { <-0.498710657352, Y2, -0.498710657352>, <-0.498710657352, Y0, -0.800657515149>, <-0.423736382551, Y4, -0.423736382551> }
triangle { <-0.423736382551, Y4, -0.423736382551>, <-0.400328757575, Y5, -0.240197254545>, <-0.800657515149, Y0, -0.498710657352> }
triangle { <-0.498710657352, Y0, -0.800657515149>, <-0.240197254545, Y5, -0.400328757575>, <-0.423736382551, Y4, -0.423736382551> }
triangle { <-0.498710657352, Y2, -0.498710657352>, <-0.760204306797, Y0, -0.64968408625>, <-0.64968408625, Y0, -0.760204306797> }
triangle { <-0.498710657352, Y2, -0.498710657352>, <-0.800657515149, Y0, -0.498710657352>, <-0.760204306797, Y0, -0.64968408625> }
triangle { <-0.64968408625, Y0, -0.760204306797>, <-0.498710657352, Y0, -0.800657515149>, <-0.498710657352, Y2, -0.498710657352> }
triangle { <0.423736382551, Y4, -0.423736382551>, <0.498710657352, Y0, -0.800657515149>, <0.498710657352, Y2, -0.498710657352> }
triangle { <0.423736382551, Y4, -0.423736382551>, <0.498710657352, Y2, -0.498710657352>, <0.800657515149, Y0, -0.498710657352> }
triangle { <0.423736382551, Y4, -0.423736382551>, <0.240197254545, Y5, -0.400328757575>, <0.498710657352, Y0, -0.800657515149> }
triangle { <0.800657515149, Y0, -0.498710657352>, <0.400328757575, Y5, -0.240197254545>, <0.423736382551, Y4, -0.423736382551> }
triangle { <0.498710657352, Y2, -0.498710657352>, <0.64968408625, Y0, -0.760204306797>, <0.760204306797, Y0, -0.64968408625> }
triangle { <0.498710657352, Y2, -0.498710657352>, <0.498710657352, Y0, -0.800657515149>, <0.64968408625, Y0, -0.760204306797> }
triangle { <0.760204306797, Y0, -0.64968408625>, <0.800657515149, Y0, -0.498710657352>, <0.498710657352, Y2, -0.498710657352> }
triangle { <0.423736382551, Y4, 0.423736382551>, <0.800657515149, Y0, 0.498710657352>, <0.498710657352, Y2, 0.498710657352> }
triangle { <0.423736382551, Y4, 0.423736382551>, <0.498710657352, Y2, 0.498710657352>, <0.498710657352, Y0, 0.800657515149> }
triangle { <0.423736382551, Y4, 0.423736382551>, <0.400328757575, Y5, 0.240197254545>, <0.800657515149, Y0, 0.498710657352> }
triangle { <0.498710657352, Y0, 0.800657515149>, <0.240197254545, Y5, 0.400328757575>, <0.423736382551, Y4, 0.423736382551> }
triangle { <0.498710657352, Y2, 0.498710657352>, <0.760204306797, Y0, 0.64968408625>, <0.64968408625, Y0, 0.760204306797> }
triangle { <0.498710657352, Y2, 0.498710657352>, <0.800657515149, Y0, 0.498710657352>, <0.760204306797, Y0, 0.64968408625> }
triangle { <0.64968408625, Y0, 0.760204306797>, <0.498710657352, Y0, 0.800657515149>, <0.498710657352, Y2, 0.498710657352> }
triangle { <-0.507083092928, Y3, 0>, <-0.800657515149, Y0, 0.498710657352>, <-0.693903179796, Y1, 0> }
triangle { <-0.507083092928, Y3, 0>, <-0.693903179796, Y1, 0>, <-0.800657515149, Y0, -0.498710657352> }
triangle { <0, Y3, -0.507083092928>, <-0.498710657352, Y0, -0.800657515149>, <0, Y1, -0.693903179796> }
triangle { <0, Y3, -0.507083092928>, <0, Y1, -0.693903179796>, <0.498710657352, Y0, -0.800657515149> }
triangle { <0.507083092928, Y3, 0>, <0.800657515149, Y0, -0.498710657352>, <0.693903179796, Y1, 0> }
triangle { <0.507083092928, Y3, 0>, <0.693903179796, Y1, 0>, <0.800657515149, Y0, 0.498710657352> }
triangle { <0, Y1, 0.693903179796>, <0, Y3, 0.507083092928>, <0.498710657352, Y0, 0.800657515149> }
triangle { <0, Y1, 0.693903179796>, <-0.498710657352, Y0, 0.800657515149>, <0, Y3, 0.507083092928> }
triangle { <-0.693903179796, Y1, 0>, <-0.800657515149, Y0, 0.498710657352>, <-0.800657515149, Y0, -0.498710657352> }
triangle { <0, Y1, -0.693903179796>, <-0.498710657352, Y0, -0.800657515149>, <0.498710657352, Y0, -0.800657515149> }
triangle { <0.693903179796, Y1, 0>, <0.800657515149, Y0, -0.498710657352>, <0.800657515149, Y0, 0.498710657352> }
triangle { <0, Y1, 0.693903179796>, <0.498710657352, Y0, 0.800657515149>, <-0.498710657352, Y0, 0.800657515149> }
triangle { <-0.423736382551, Y4, 0.423736382551>, <-0.400328757575, Y5, 0.240197254545>, <-0.240197254545, Y5, 0.400328757575> }
triangle { <-0.507083092928, Y3, 0>, <-0.400328757575, Y5, -0.240197254545>, <-0.400328757575, Y5, 0.240197254545> }
triangle { <-0.507083092928, Y3, 0>, <-0.400328757575, Y5, 0.240197254545>, <-0.800657515149, Y0, 0.498710657352> }
triangle { <-0.400328757575, Y5, -0.240197254545>, <-0.507083092928, Y3, 0>, <-0.800657515149, Y0, -0.498710657352> }
triangle { <-0.423736382551, Y4, -0.423736382551>, <-0.240197254545, Y5, -0.400328757575>, <-0.400328757575, Y5, -0.240197254545> }
triangle { <0, Y3, -0.507083092928>, <0.240197254545, Y5, -0.400328757575>, <-0.240197254545, Y5, -0.400328757575> }
triangle { <0, Y3, -0.507083092928>, <-0.240197254545, Y5, -0.400328757575>, <-0.498710657352, Y0, -0.800657515149> }
triangle { <0.240197254545, Y5, -0.400328757575>, <0, Y3, -0.507083092928>, <0.498710657352, Y0, -0.800657515149> }
triangle { <0.423736382551, Y4, -0.423736382551>, <0.400328757575, Y5, -0.240197254545>, <0.240197254545, Y5, -0.400328757575> }
triangle { <0.423736382551, Y4, 0.423736382551>, <0.240197254545, Y5, 0.400328757575>, <0.400328757575, Y5, 0.240197254545> }
triangle { <0.507083092928, Y3, 0>, <0.400328757575, Y5, 0.240197254545>, <0.400328757575, Y5, -0.240197254545> }
triangle { <0.507083092928, Y3, 0>, <0.400328757575, Y5, -0.240197254545>, <0.800657515149, Y0, -0.498710657352> }
triangle { <0.400328757575, Y5, 0.240197254545>, <0.507083092928, Y3, 0>, <0.800657515149, Y0, 0.498710657352> }
triangle { <0, Y3, 0.507083092928>, <-0.240197254545, Y5, 0.400328757575>, <0.240197254545, Y5, 0.400328757575> }
triangle { <0, Y3, 0.507083092928>, <0.240197254545, Y5, 0.400328757575>, <0.498710657352, Y0, 0.800657515149> }
triangle { <-0.240197254545, Y5, 0.400328757575>, <0, Y3, 0.507083092928>, <-0.498710657352, Y0, 0.800657515149> }
triangle { <-0.400328757575, Y5, 0.240197254545>, <0.240197254545, Y5, 0.400328757575>, <-0.240197254545, Y5, 0.400328757575> }
triangle { <-0.400328757575, Y5, -0.240197254545>, <0.240197254545, Y5, 0.400328757575>, <-0.400328757575, Y5, 0.240197254545> }
triangle { <-0.240197254545, Y5, -0.400328757575>, <0.240197254545, Y5, 0.400328757575>, <-0.400328757575, Y5, -0.240197254545> }
triangle { <0.240197254545, Y5, -0.400328757575>, <0.240197254545, Y5, 0.400328757575>, <-0.240197254545, Y5, -0.400328757575> }
triangle { <0.400328757575, Y5, -0.240197254545>, <0.240197254545, Y5, 0.400328757575>, <0.240197254545, Y5, -0.400328757575> }
triangle { <0.400328757575, Y5, 0.240197254545>, <0.240197254545, Y5, 0.400328757575>, <0.400328757575, Y5, -0.240197254545> }
// Girdle Triangles
triangle { <-0.64968408625, Y0, 0.760204306797>, <-0.498710657352, Y0, 0.800657515149>, <-0.64968408625, Y6, 0.760204306797> }
triangle { <-0.760204306797, Y0, 0.64968408625>, <-0.64968408625, Y0, 0.760204306797>, <-0.64968408625, Y6, 0.760204306797> }
triangle { <-0.800657515149, Y0, 0.498710657352>, <-0.760204306797, Y0, 0.64968408625>, <-0.800657515149, Y6, 0.498710657352> }
triangle { <-0.800657515149, Y0, -0.498710657352>, <-0.800657515149, Y0, 0.498710657352>, <-0.800657515149, Y6, 0.498710657352> }
triangle { <-0.760204306797, Y0, -0.64968408625>, <-0.800657515149, Y0, -0.498710657352>, <-0.760204306797, Y6, -0.64968408625> }
triangle { <-0.64968408625, Y0, -0.760204306797>, <-0.760204306797, Y0, -0.64968408625>, <-0.760204306797, Y6, -0.64968408625> }
triangle { <-0.498710657352, Y0, -0.800657515149>, <-0.64968408625, Y0, -0.760204306797>, <-0.498710657352, Y6, -0.800657515149> }
triangle { <0.498710657352, Y0, -0.800657515149>, <-0.498710657352, Y0, -0.800657515149>, <-0.498710657352, Y6, -0.800657515149> }
triangle { <0.64968408625, Y0, -0.760204306797>, <0.498710657352, Y0, -0.800657515149>, <0.64968408625, Y6, -0.760204306797> }
triangle { <0.760204306797, Y0, -0.64968408625>, <0.64968408625, Y0, -0.760204306797>, <0.64968408625, Y6, -0.760204306797> }
triangle { <0.800657515149, Y0, -0.498710657352>, <0.760204306797, Y0, -0.64968408625>, <0.800657515149, Y6, -0.498710657352> }
triangle { <0.800657515149, Y0, 0.498710657352>, <0.800657515149, Y0, -0.498710657352>, <0.800657515149, Y6, -0.498710657352> }
triangle { <0.760204306797, Y0, 0.64968408625>, <0.800657515149, Y0, 0.498710657352>, <0.760204306797, Y6, 0.64968408625> }
triangle { <0.64968408625, Y0, 0.760204306797>, <0.760204306797, Y0, 0.64968408625>, <0.760204306797, Y6, 0.64968408625> }
triangle { <0.498710657352, Y0, 0.800657515149>, <0.64968408625, Y0, 0.760204306797>, <0.498710657352, Y6, 0.800657515149> }
triangle { <-0.498710657352, Y0, 0.800657515149>, <0.498710657352, Y0, 0.800657515149>, <0.498710657352, Y6, 0.800657515149> }
triangle { <0.800657515149, Y0, 0.498710657352>, <0.800657515149, Y6, -0.498710657352>, <0.800657515149, Y6, 0.498710657352> }
triangle { <0.800657515149, Y0, 0.498710657352>, <0.800657515149, Y6, 0.498710657352>, <0.760204306797, Y6, 0.64968408625> }
triangle { <0.64968408625, Y0, 0.760204306797>, <0.760204306797, Y6, 0.64968408625>, <0.64968408625, Y6, 0.760204306797> }
triangle { <0.64968408625, Y0, 0.760204306797>, <0.64968408625, Y6, 0.760204306797>, <0.498710657352, Y6, 0.800657515149> }
triangle { <-0.498710657352, Y0, 0.800657515149>, <0.498710657352, Y6, 0.800657515149>, <-0.498710657352, Y6, 0.800657515149> }
triangle { <-0.498710657352, Y0, 0.800657515149>, <-0.498710657352, Y6, 0.800657515149>, <-0.64968408625, Y6, 0.760204306797> }
triangle { <-0.760204306797, Y0, 0.64968408625>, <-0.64968408625, Y6, 0.760204306797>, <-0.760204306797, Y6, 0.64968408625> }
triangle { <-0.760204306797, Y0, 0.64968408625>, <-0.760204306797, Y6, 0.64968408625>, <-0.800657515149, Y6, 0.498710657352> }
triangle { <-0.800657515149, Y0, -0.498710657352>, <-0.800657515149, Y6, 0.498710657352>, <-0.800657515149, Y6, -0.498710657352> }
triangle { <-0.800657515149, Y0, -0.498710657352>, <-0.800657515149, Y6, -0.498710657352>, <-0.760204306797, Y6, -0.64968408625> }
triangle { <-0.64968408625, Y0, -0.760204306797>, <-0.760204306797, Y6, -0.64968408625>, <-0.64968408625, Y6, -0.760204306797> }
triangle { <-0.64968408625, Y0, -0.760204306797>, <-0.64968408625, Y6, -0.760204306797>, <-0.498710657352, Y6, -0.800657515149> }
triangle { <0.760204306797, Y0, -0.64968408625>, <0.64968408625, Y6, -0.760204306797>, <0.760204306797, Y6, -0.64968408625> }
triangle { <0.760204306797, Y0, -0.64968408625>, <0.760204306797, Y6, -0.64968408625>, <0.800657515149, Y6, -0.498710657352> }
triangle { <0.498710657352, Y0, -0.800657515149>, <0.498710657352, Y6, -0.800657515149>, <0.64968408625, Y6, -0.760204306797> }
triangle { <0.498710657352, Y0, -0.800657515149>, <-0.498710657352, Y6, -0.800657515149>, <0.498710657352, Y6, -0.800657515149> }
// Pavilion Triangles
triangle { <-0.498710657352, Y8, 0.498710657352>, <-0.498710657352, Y6, 0.800657515149>, <-0.423736382551, Y9, 0.423736382551> }
triangle { <-0.498710657352, Y8, 0.498710657352>, <-0.423736382551, Y9, 0.423736382551>, <-0.800657515149, Y6, 0.498710657352> }
triangle { <-0.498710657352, Y8, 0.498710657352>, <-0.760204306797, Y6, 0.64968408625>, <-0.64968408625, Y6, 0.760204306797> }
triangle { <-0.498710657352, Y8, 0.498710657352>, <-0.64968408625, Y6, 0.760204306797>, <-0.498710657352, Y6, 0.800657515149> }
triangle { <-0.760204306797, Y6, 0.64968408625>, <-0.498710657352, Y8, 0.498710657352>, <-0.800657515149, Y6, 0.498710657352> }
triangle { <-0.423736382551, Y9, 0.423736382551>, <-0.498710657352, Y6, 0.800657515149>, <0, Y7, 0.693903179796> }
triangle { <-0.800657515149, Y6, 0.498710657352>, <-0.423736382551, Y9, 0.423736382551>, <-0.693903179796, Y7, 0> }
triangle { <-0.498710657352, Y8, -0.498710657352>, <-0.800657515149, Y6, -0.498710657352>, <-0.423736382551, Y9, -0.423736382551> }
triangle { <-0.498710657352, Y8, -0.498710657352>, <-0.423736382551, Y9, -0.423736382551>, <-0.498710657352, Y6, -0.800657515149> }
triangle { <-0.498710657352, Y8, -0.498710657352>, <-0.64968408625, Y6, -0.760204306797>, <-0.760204306797, Y6, -0.64968408625> }
triangle { <-0.498710657352, Y8, -0.498710657352>, <-0.760204306797, Y6, -0.64968408625>, <-0.800657515149, Y6, -0.498710657352> }
triangle { <-0.64968408625, Y6, -0.760204306797>, <-0.498710657352, Y8, -0.498710657352>, <-0.498710657352, Y6, -0.800657515149> }
triangle { <-0.423736382551, Y9, -0.423736382551>, <-0.800657515149, Y6, -0.498710657352>, <-0.693903179796, Y7, 0> }
triangle { <-0.498710657352, Y6, -0.800657515149>, <-0.423736382551, Y9, -0.423736382551>, <0, Y7, -0.693903179796> }
triangle { <0.423736382551, Y9, -0.423736382551>, <0.498710657352, Y8, -0.498710657352>, <0.498710657352, Y6, -0.800657515149> }
triangle { <0.423736382551, Y9, -0.423736382551>, <0.800657515149, Y6, -0.498710657352>, <0.498710657352, Y8, -0.498710657352> }
triangle { <0.498710657352, Y8, -0.498710657352>, <0.760204306797, Y6, -0.64968408625>, <0.64968408625, Y6, -0.760204306797> }
triangle { <0.498710657352, Y8, -0.498710657352>, <0.64968408625, Y6, -0.760204306797>, <0.498710657352, Y6, -0.800657515149> }
triangle { <0.760204306797, Y6, -0.64968408625>, <0.498710657352, Y8, -0.498710657352>, <0.800657515149, Y6, -0.498710657352> }
triangle { <0.423736382551, Y9, -0.423736382551>, <0.498710657352, Y6, -0.800657515149>, <0, Y7, -0.693903179796> }
triangle { <0.800657515149, Y6, -0.498710657352>, <0.423736382551, Y9, -0.423736382551>, <0.693903179796, Y7, 0> }
triangle { <0.423736382551, Y9, 0.423736382551>, <0.498710657352, Y8, 0.498710657352>, <0.800657515149, Y6, 0.498710657352> }
triangle { <0.423736382551, Y9, 0.423736382551>, <0.498710657352, Y6, 0.800657515149>, <0.498710657352, Y8, 0.498710657352> }
triangle { <0.498710657352, Y8, 0.498710657352>, <0.64968408625, Y6, 0.760204306797>, <0.760204306797, Y6, 0.64968408625> }
triangle { <0.498710657352, Y8, 0.498710657352>, <0.760204306797, Y6, 0.64968408625>, <0.800657515149, Y6, 0.498710657352> }
triangle { <0.64968408625, Y6, 0.760204306797>, <0.498710657352, Y8, 0.498710657352>, <0.498710657352, Y6, 0.800657515149> }
triangle { <0.423736382551, Y9, 0.423736382551>, <0.800657515149, Y6, 0.498710657352>, <0.693903179796, Y7, 0> }
triangle { <0.498710657352, Y6, 0.800657515149>, <0.423736382551, Y9, 0.423736382551>, <0, Y7, 0.693903179796> }
triangle { <0, Y10, 0>, <0.423736382551, Y9, -0.423736382551>, <0, Y7, -0.693903179796> }
triangle { <0, Y10, 0>, <0.693903179796, Y7, 0>, <0.423736382551, Y9, -0.423736382551> }
triangle { <-0.423736382551, Y9, 0.423736382551>, <0, Y10, 0>, <-0.693903179796, Y7, 0> }
triangle { <-0.423736382551, Y9, 0.423736382551>, <0, Y7, 0.693903179796>, <0, Y10, 0> }
triangle { <0, Y10, 0>, <-0.423736382551, Y9, -0.423736382551>, <-0.693903179796, Y7, 0> }
triangle { <0, Y10, 0>, <0, Y7, -0.693903179796>, <-0.423736382551, Y9, -0.423736382551> }
triangle { <0.423736382551, Y9, 0.423736382551>, <0.693903179796, Y7, 0>, <0, Y10, 0> }
triangle { <0.423736382551, Y9, 0.423736382551>, <0, Y10, 0>, <0, Y7, 0.693903179796> }
triangle { <-0.693903179796, Y7, 0>, <-0.800657515149, Y6, -0.498710657352>, <-0.800657515149, Y6, 0.498710657352> }
triangle { <0, Y7, -0.693903179796>, <0.498710657352, Y6, -0.800657515149>, <-0.498710657352, Y6, -0.800657515149> }
triangle { <0.693903179796, Y7, 0>, <0.800657515149, Y6, 0.498710657352>, <0.800657515149, Y6, -0.498710657352> }
triangle { <0, Y7, 0.693903179796>, <-0.498710657352, Y6, 0.800657515149>, <0.498710657352, Y6, 0.800657515149> }
}
#end // macro