summaryrefslogtreecommitdiff
path: root/src/lib/ephysics/ephysics_trimesh.h
diff options
context:
space:
mode:
authorGustavo Sverzut Barbieri <barbieri@gmail.com>2013-01-03 22:10:40 +0000
committerGustavo Sverzut Barbieri <barbieri@gmail.com>2013-01-03 22:10:40 +0000
commit9e0788cc2e261ec66cf740e35a3e71f4485df763 (patch)
tree8c1230e446edd6966d39c1b8959c7f97f5c0f731 /src/lib/ephysics/ephysics_trimesh.h
parent9edec477ebb83e64f3e464d82665e2b9f01f9bb0 (diff)
efl: merge ephysics
changes: * __UNUSED__ -> EINA_UNUSED * Fixed doc hierarchy SVN revision: 82126
Diffstat (limited to 'src/lib/ephysics/ephysics_trimesh.h')
-rw-r--r--src/lib/ephysics/ephysics_trimesh.h335
1 files changed, 335 insertions, 0 deletions
diff --git a/src/lib/ephysics/ephysics_trimesh.h b/src/lib/ephysics/ephysics_trimesh.h
new file mode 100644
index 0000000000..975cb1cb11
--- /dev/null
+++ b/src/lib/ephysics/ephysics_trimesh.h
@@ -0,0 +1,335 @@
1#ifndef EPHYSICS_TRIMESH_H
2#define EPHYSICS_TRIMESH_H
3
4#define CYLINDER_NUM_VERTICES 58
5#define CYLINDER_NUM_TRIANGLES 104
6
7static btScalar cylinder_vertices[CYLINDER_NUM_VERTICES * 3] = {
8 btScalar(0.508134), btScalar(-0.210476), btScalar(0.550000),
9 btScalar(0.530611), btScalar(0.097476), btScalar(0.550000),
10 btScalar(0.406474), btScalar(0.362621), btScalar(0.550000),
11 btScalar(0.165687), btScalar(0.517043), btScalar(0.550000),
12 btScalar(-0.145614), btScalar(0.521036), btScalar(0.550000),
13 btScalar(-0.405485), btScalar(0.364100), btScalar(0.550000),
14 btScalar(-0.536816), btScalar(0.066283), btScalar(0.550000),
15 btScalar(-0.491202), btScalar(-0.235817), btScalar(0.550000),
16 btScalar(-0.289243), btScalar(-0.455503), btScalar(0.550000),
17 btScalar(0.018444), btScalar(-0.546331), btScalar(0.550000),
18 btScalar(0.321449), btScalar(-0.433984), btScalar(0.550000),
19 btScalar(0.508134), btScalar(-0.210476), btScalar(-0.550000),
20 btScalar(0.321449), btScalar(-0.433984), btScalar(-0.550000),
21 btScalar(0.023871), btScalar(-0.545252), btScalar(-0.550000),
22 btScalar(-0.289243), btScalar(-0.455503), btScalar(-0.550000),
23 btScalar(-0.490465), btScalar(-0.236920), btScalar(-0.550000),
24 btScalar(-0.537432), btScalar(0.063186), btScalar(-0.550000),
25 btScalar(-0.407240), btScalar(0.361475), btScalar(-0.550000),
26 btScalar(-0.145614), btScalar(0.521036), btScalar(-0.550000),
27 btScalar(0.162590), btScalar(0.517659), btScalar(-0.550000),
28 btScalar(0.405750), btScalar(0.363704), btScalar(-0.550000),
29 btScalar(0.529995), btScalar(0.100572), btScalar(-0.550000),
30 btScalar(0.225162), btScalar(-0.126432), btScalar(0.550000),
31 btScalar(0.182505), btScalar(0.180319), btScalar(0.550000),
32 btScalar(-0.135548), btScalar(0.257663), btScalar(0.550000),
33 btScalar(-0.128146), btScalar(-0.029182), btScalar(0.550000),
34 btScalar(-0.047689), btScalar(-0.299859), btScalar(0.550000),
35 btScalar(0.192370), btScalar(-0.050817), btScalar(-0.550000),
36 btScalar(-0.080199), btScalar(-0.257948), btScalar(-0.550000),
37 btScalar(-0.229392), btScalar(0.019540), btScalar(-0.550000),
38 btScalar(-0.034804), btScalar(0.258372), btScalar(-0.550000),
39 btScalar(0.241500), btScalar(0.226175), btScalar(-0.550000),
40 btScalar(0.532902), btScalar(-0.085955), btScalar(0.216643),
41 btScalar(0.483467), btScalar(0.247392), btScalar(0.234226),
42 btScalar(0.278528), btScalar(0.462663), btScalar(0.218255),
43 btScalar(-0.041739), btScalar(0.541698), btScalar(0.182347),
44 btScalar(-0.330369), btScalar(0.428024), btScalar(0.180626),
45 btScalar(-0.518580), btScalar(0.157959), btScalar(0.172947),
46 btScalar(-0.521671), btScalar(-0.142420), btScalar(0.183206),
47 btScalar(-0.340102), btScalar(-0.421520), btScalar(0.186658),
48 btScalar(-0.046556), btScalar(-0.540740), btScalar(0.196846),
49 btScalar(0.325206), btScalar(-0.431473), btScalar(0.238916),
50 btScalar(0.479824), btScalar(-0.252844), btScalar(-0.162453),
51 btScalar(0.184507), btScalar(-0.513299), btScalar(-0.136220),
52 btScalar(-0.159624), btScalar(-0.518249), btScalar(-0.150107),
53 btScalar(-0.426985), btScalar(-0.331923), btScalar(-0.168222),
54 btScalar(-0.541617), btScalar(-0.042144), btScalar(-0.168426),
55 btScalar(-0.470990), btScalar(0.266065), btScalar(-0.185909),
56 btScalar(-0.239361), btScalar(0.488834), btScalar(-0.187932),
57 btScalar(0.134846), btScalar(0.523178), btScalar(-0.152636),
58 btScalar(0.397364), btScalar(0.376254), btScalar(-0.269892),
59 btScalar(0.531212), btScalar(0.094456), btScalar(-0.324493),
60 btScalar(0.382010), btScalar(0.393518), btScalar(-0.011940),
61 btScalar(0.523986), btScalar(0.130780), btScalar(-0.048009),
62 btScalar(0.041379), btScalar(-0.196807), btScalar(0.054210),
63 btScalar(0.013146), btScalar(0.357496), btScalar(0.024686),
64 btScalar(-0.047077), btScalar(0.119424), btScalar(-0.167934),
65 btScalar(0.055271), btScalar(0.158920), btScalar(0.227414),
66};
67
68static int cylinder_indices[CYLINDER_NUM_TRIANGLES][3] = {
69 {0, 1, 22},
70 {1, 2, 23},
71 {22, 1, 23},
72 {2, 3, 23},
73 {3, 4, 24},
74 {23, 3, 24},
75 {4, 5, 24},
76 {10, 0, 22},
77 {25, 24, 6},
78 {5, 6, 24},
79 {6, 7, 25},
80 {7, 8, 26},
81 {25, 7, 26},
82 {8, 9, 26},
83 {22, 26, 10},
84 {9, 10, 26},
85 {26, 22, 25},
86 {22, 23, 25},
87 {23, 24, 25},
88 {11, 12, 27},
89 {13, 28, 12},
90 {13, 14, 28},
91 {27, 12, 28},
92 {14, 15, 28},
93 {15, 16, 29},
94 {28, 15, 29},
95 {16, 17, 29},
96 {21, 11, 27},
97 {17, 18, 30},
98 {29, 17, 30},
99 {18, 19, 30},
100 {19, 20, 31},
101 {30, 19, 31},
102 {20, 21, 31},
103 {31, 21, 27},
104 {30, 31, 27},
105 {28, 29, 27},
106 {30, 27, 29},
107 {1, 0, 32},
108 {2, 1, 33},
109 {1, 32, 33},
110 {3, 2, 34},
111 {2, 33, 34},
112 {4, 3, 35},
113 {3, 34, 35},
114 {5, 4, 36},
115 {4, 35, 36},
116 {6, 5, 37},
117 {5, 36, 37},
118 {7, 6, 38},
119 {6, 37, 38},
120 {8, 7, 39},
121 {7, 38, 39},
122 {9, 8, 40},
123 {8, 39, 40},
124 {10, 9, 41},
125 {9, 40, 41},
126 {12, 11, 42},
127 {13, 12, 43},
128 {12, 42, 43},
129 {14, 13, 44},
130 {13, 43, 44},
131 {15, 14, 45},
132 {14, 44, 45},
133 {16, 15, 46},
134 {15, 45, 46},
135 {17, 16, 47},
136 {16, 46, 47},
137 {18, 17, 48},
138 {17, 47, 48},
139 {19, 18, 49},
140 {18, 48, 49},
141 {20, 19, 50},
142 {19, 49, 50},
143 {21, 20, 51},
144 {20, 50, 51},
145 {10, 41, 0},
146 {21, 51, 11},
147 {0, 41, 32},
148 {11, 51, 42},
149 {34, 33, 52},
150 {35, 34, 49},
151 {36, 35, 48},
152 {37, 36, 47},
153 {38, 37, 46},
154 {39, 38, 45},
155 {40, 39, 44},
156 {41, 40, 43},
157 {48, 35, 49},
158 {44, 43, 40},
159 {45, 44, 39},
160 {46, 45, 38},
161 {47, 46, 37},
162 {48, 47, 36},
163 {50, 49, 52},
164 {51, 50, 53},
165 {50, 52, 53},
166 {33, 32, 53},
167 {43, 42, 41},
168 {41, 42, 32},
169 {52, 49, 34},
170 {33, 53, 52},
171 {32, 42, 53},
172 {42, 51, 53},
173};
174
175#define CUBE_NUM_VERTICES 61
176#define CUBE_NUM_TRIANGLES 96
177
178static btScalar cube_vertices[CUBE_NUM_VERTICES * 3] = {
179 btScalar(0.550000), btScalar(-0.550000), btScalar(-0.550000),
180 btScalar(0.550000), btScalar(-0.550000), btScalar(-0.215571),
181 btScalar(0.550000), btScalar(-0.550000), btScalar(0.149207),
182 btScalar(0.550000), btScalar(-0.550000), btScalar(0.550000),
183 btScalar(-0.550000), btScalar(-0.550000), btScalar(-0.550000),
184 btScalar(-0.215767), btScalar(-0.550000), btScalar(-0.550000),
185 btScalar(0.178583), btScalar(-0.550000), btScalar(-0.550000),
186 btScalar(-0.550000), btScalar(-0.550000), btScalar(0.550000),
187 btScalar(-0.550000), btScalar(-0.550000), btScalar(0.205306),
188 btScalar(-0.550000), btScalar(-0.550000), btScalar(-0.180403),
189 btScalar(0.213790), btScalar(-0.550000), btScalar(0.550000),
190 btScalar(-0.152594), btScalar(-0.550000), btScalar(0.550000),
191 btScalar(0.550000), btScalar(-0.171346), btScalar(-0.550000),
192 btScalar(0.550000), btScalar(0.218404), btScalar(-0.550000),
193 btScalar(0.550000), btScalar(0.550000), btScalar(-0.550000),
194 btScalar(0.550000), btScalar(0.550000), btScalar(0.550000),
195 btScalar(0.550000), btScalar(0.216178), btScalar(0.550000),
196 btScalar(0.550000), btScalar(-0.168604), btScalar(0.550000),
197 btScalar(0.550000), btScalar(0.550000), btScalar(-0.230974),
198 btScalar(0.550000), btScalar(0.550000), btScalar(0.154825),
199 btScalar(-0.550000), btScalar(-0.201191), btScalar(-0.550000),
200 btScalar(-0.550000), btScalar(0.180873), btScalar(-0.550000),
201 btScalar(-0.550000), btScalar(0.550000), btScalar(-0.550000),
202 btScalar(-0.167045), btScalar(0.550000), btScalar(-0.550000),
203 btScalar(0.207428), btScalar(0.550000), btScalar(-0.550000),
204 btScalar(-0.550000), btScalar(0.550000), btScalar(0.550000),
205 btScalar(-0.550000), btScalar(0.235945), btScalar(0.550000),
206 btScalar(-0.550000), btScalar(-0.152540), btScalar(0.550000),
207 btScalar(0.202185), btScalar(0.550000), btScalar(0.550000),
208 btScalar(-0.178486), btScalar(0.550000), btScalar(0.550000),
209 btScalar(-0.550000), btScalar(0.550000), btScalar(-0.200119),
210 btScalar(-0.550000), btScalar(0.550000), btScalar(0.178238),
211 btScalar(0.183518), btScalar(-0.550000), btScalar(-0.048608),
212 btScalar(-0.193942), btScalar(-0.550000), btScalar(-0.265714),
213 btScalar(-0.176127), btScalar(-0.550000), btScalar(0.121548),
214 btScalar(0.550000), btScalar(-0.228480), btScalar(-0.211018),
215 btScalar(0.550000), btScalar(0.115197), btScalar(-0.269727),
216 btScalar(0.550000), btScalar(0.087351), btScalar(0.133224),
217 btScalar(0.019637), btScalar(-0.192951), btScalar(-0.550000),
218 btScalar(0.260210), btScalar(0.183806), btScalar(-0.550000),
219 btScalar(-0.127158), btScalar(0.171482), btScalar(-0.550000),
220 btScalar(-0.144513), btScalar(-0.112619), btScalar(0.550000),
221 btScalar(0.201326), btScalar(0.040933), btScalar(0.550000),
222 btScalar(-0.167096), btScalar(0.273800), btScalar(0.550000),
223 btScalar(0.207212), btScalar(0.550000), btScalar(-0.049764),
224 btScalar(-0.148416), btScalar(0.550000), btScalar(-0.261736),
225 btScalar(-0.150781), btScalar(0.550000), btScalar(0.120466),
226 btScalar(-0.550000), btScalar(-0.243131), btScalar(0.177642),
227 btScalar(-0.550000), btScalar(-0.017683), btScalar(-0.199324),
228 btScalar(-0.550000), btScalar(0.150767), btScalar(0.162842),
229 btScalar(-0.138413), btScalar(-0.072881), btScalar(-0.103734),
230 btScalar(0.139934), btScalar(0.152037), btScalar(-0.158703),
231 btScalar(0.254965), btScalar(-0.254145), btScalar(-0.307055),
232 btScalar(0.228935), btScalar(-0.176885), btScalar(0.123000),
233 btScalar(0.115739), btScalar(0.220857), btScalar(0.251735),
234};
235
236static int cube_indices[CUBE_NUM_TRIANGLES][3] = {
237 {0, 1, 6},
238 {1, 2, 32},
239 {2, 3, 10},
240 {5, 33, 4},
241 {5, 6, 33},
242 {9, 4, 33},
243 {7, 8, 11},
244 {8, 9, 34},
245 {11, 8, 34},
246 {9, 33, 34},
247 {10, 11, 34},
248 {2, 10, 32},
249 {6, 1, 32},
250 {6, 32, 33},
251 {33, 32, 34},
252 {34, 32, 10},
253 {12, 35, 0},
254 {2, 1, 35},
255 {3, 2, 17},
256 {12, 13, 36},
257 {36, 13, 18},
258 {15, 16, 19},
259 {19, 16, 37},
260 {16, 17, 37},
261 {18, 19, 37},
262 {17, 2, 37},
263 {14, 18, 13},
264 {1, 0, 35},
265 {35, 12, 36},
266 {18, 37, 36},
267 {35, 36, 37},
268 {2, 35, 37},
269 {0, 6, 12},
270 {5, 4, 20},
271 {6, 5, 38},
272 {5, 20, 38},
273 {13, 12, 39},
274 {13, 39, 14},
275 {21, 40, 20},
276 {21, 22, 23},
277 {23, 24, 40},
278 {21, 23, 40},
279 {24, 14, 39},
280 {12, 6, 38},
281 {38, 20, 40},
282 {38, 40, 39},
283 {40, 24, 39},
284 {12, 38, 39},
285 {10, 3, 17},
286 {7, 11, 27},
287 {27, 11, 41},
288 {11, 10, 41},
289 {16, 15, 28},
290 {17, 16, 42},
291 {26, 43, 25},
292 {26, 27, 41},
293 {28, 29, 43},
294 {16, 28, 42},
295 {41, 43, 26},
296 {10, 17, 42},
297 {41, 10, 42},
298 {28, 43, 42},
299 {41, 42, 43},
300 {29, 25, 43},
301 {18, 14, 24},
302 {15, 19, 28},
303 {19, 18, 44},
304 {28, 19, 44},
305 {30, 45, 22},
306 {24, 23, 45},
307 {25, 29, 31},
308 {29, 28, 46},
309 {31, 29, 46},
310 {28, 44, 46},
311 {30, 31, 46},
312 {23, 22, 45},
313 {18, 24, 44},
314 {30, 46, 45},
315 {45, 46, 44},
316 {44, 24, 45},
317 {4, 9, 20},
318 {27, 47, 7},
319 {9, 8, 47},
320 {8, 7, 47},
321 {21, 20, 48},
322 {22, 21, 30},
323 {26, 25, 31},
324 {26, 31, 49},
325 {27, 26, 49},
326 {31, 30, 49},
327 {30, 21, 48},
328 {47, 27, 49},
329 {20, 9, 48},
330 {30, 48, 49},
331 {47, 49, 48},
332 {9, 47, 48},
333};
334
335#endif