Debian Codegraph @

src/gen/lib/ortho/partition__c.java

raw symbols SCIP
1 /* ========================================================================
2 * PlantUML : a free UML diagram generator
3 * ========================================================================
4 *
5 * Project Info: http://plantuml.com
6 *
7 * If you like this project or if you find it useful, you can support us at:
8 *
9 * http://plantuml.com/patreon (only 1$ per month!)
10 * http://plantuml.com/paypal
11 *
12 * This file is part of Smetana.
13 * Smetana is a partial translation of Graphviz/Dot sources from C to Java.
14 *
15 * (C) Copyright 2009-2020, Arnaud Roques
16 *
17 * This translation is distributed under the same Licence as the original C program:
18 *
19 *************************************************************************
20 * Copyright (c) 2011 AT&T Intellectual Property
21 * All rights reserved. This program and the accompanying materials
22 * are made available under the terms of the Eclipse Public License v1.0
23 * which accompanies this distribution, and is available at
24 * http://www.eclipse.org/legal/epl-v10.html
25 *
26 * Contributors: See CVS logs. Details at http://www.graphviz.org/
27 *************************************************************************
28 *
29 * THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS ECLIPSE PUBLIC
30 * LICENSE ("AGREEMENT"). [Eclipse Public License - v 1.0]
31 *
32 * ANY USE, REPRODUCTION OR DISTRIBUTION OF THE PROGRAM CONSTITUTES
33 * RECIPIENT'S ACCEPTANCE OF THIS AGREEMENT.
34 *
35 * You may obtain a copy of the License at
36 *
37 * http://www.eclipse.org/legal/epl-v10.html
38 *
39 * Unless required by applicable law or agreed to in writing, software
40 * distributed under the License is distributed on an "AS IS" BASIS,
41 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
42 * See the License for the specific language governing permissions and
43 * limitations under the License.
44 *
45 */
46 package gen.lib.ortho;
47 import static smetana.core.Macro.UNSUPPORTED;
48
49 public class partition__c {
50 //1 2digov3edok6d5srhgtlmrycs
51 // extern lt_symlist_t lt_preloaded_symbols[]
52
53
54 //1 baedz5i9est5csw3epz3cv7z
55 // typedef Ppoly_t Ppolyline_t
56
57
58 //1 9k44uhd5foylaeoekf3llonjq
59 // extern Dtmethod_t* Dtset
60
61
62 //1 1ahfywsmzcpcig2oxm7pt9ihj
63 // extern Dtmethod_t* Dtbag
64
65
66 //1 anhghfj3k7dmkudy2n7rvt31v
67 // extern Dtmethod_t* Dtoset
68
69
70 //1 5l6oj1ux946zjwvir94ykejbc
71 // extern Dtmethod_t* Dtobag
72
73
74 //1 2wtf222ak6cui8cfjnw6w377z
75 // extern Dtmethod_t* Dtlist
76
77
78 //1 d1s1s6ibtcsmst88e3057u9r7
79 // extern Dtmethod_t* Dtstack
80
81
82 //1 axa7mflo824p6fspjn1rdk0mt
83 // extern Dtmethod_t* Dtqueue
84
85
86 //1 ega812utobm4xx9oa9w9ayij6
87 // extern Dtmethod_t* Dtdeque
88
89
90 //1 cyfr996ur43045jv1tjbelzmj
91 // extern Dtmethod_t* Dtorder
92
93
94 //1 wlofoiftbjgrrabzb2brkycg
95 // extern Dtmethod_t* Dttree
96
97
98 //1 12bds94t7voj7ulwpcvgf6agr
99 // extern Dtmethod_t* Dthash
100
101
102 //1 9lqknzty480cy7zsubmabkk8h
103 // extern Dtmethod_t _Dttree
104
105
106 //1 bvn6zkbcp8vjdhkccqo1xrkrb
107 // extern Dtmethod_t _Dthash
108
109
110 //1 9lidhtd6nsmmv3e7vjv9e10gw
111 // extern Dtmethod_t _Dtlist
112
113
114 //1 34ujfamjxo7xn89u90oh2k6f8
115 // extern Dtmethod_t _Dtqueue
116
117
118 //1 3jy4aceckzkdv950h89p4wjc8
119 // extern Dtmethod_t _Dtstack
120
121
122 //1 8dfqgf3u1v830qzcjqh9o8ha7
123 // extern Agmemdisc_t AgMemDisc
124
125
126 //1 18k2oh2t6llfsdc5x0wlcnby8
127 // extern Agiddisc_t AgIdDisc
128
129
130 //1 a4r7hi80gdxtsv4hdoqpyiivn
131 // extern Agiodisc_t AgIoDisc
132
133
134 //1 bnzt5syjb7mgeru19114vd6xx
135 // extern Agdisc_t AgDefaultDisc
136
137
138 //1 35y2gbegsdjilegaribes00mg
139 // extern Agdesc_t Agdirected, Agstrictdirected, Agundirected, Agstrictundirected
140
141
142 //1 c2rygslq6bcuka3awmvy2b3ow
143 // typedef Agsubnode_t Agnoderef_t
144
145
146 //1 xam6yv0dcsx57dtg44igpbzn
147 // typedef Dtlink_t Agedgeref_t
148
149
150 //1 1duz2zmve5bdooct0ezmnnaxq
151 // static int chain_idx, mon_idx
152
153
154 //1 67uj2vwqlb937zf3jgzd5bre1
155 // static monchain_t* mchain
156
157
158 //1 b7wevmtwi3ljzl56axez0c18m
159 // static vertexchain_t* vert
160
161
162 //1 2owm4aavvrdgcsmzw0xh1keul
163 // static int* mon
164
165
166
167
168 //3 c5f2ppu5vis7zj6x1ehr7ipb8
169 // static void convert (boxf bb, int flip, int ccw, pointf* pts)
170 public static Object convert(Object... arg) {
171 UNSUPPORTED("e2z2o5ybnr5tgpkt8ty7hwan1"); // static void
172 UNSUPPORTED("7z9p7ryaqovx8l4zvz8ut5lh"); // convert (boxf bb, int flip, int ccw, pointf* pts)
173 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
174 UNSUPPORTED("d4u5o9hun4r9ctb05sitn35ie"); // pts[0] = bb.LL;
175 UNSUPPORTED("8c7ixjyy0o8pk7jvbhubvu7fk"); // pts[2] = bb.UR;
176 UNSUPPORTED("3oqttg1p147o6iu2ik3nuhaag"); // if (ccw) {
177 UNSUPPORTED("b6cwugc335s6xo11bjy8lzdtv"); // pts[1].x = bb.UR.x;
178 UNSUPPORTED("5g8pg756wtn4jz9pynuub13nu"); // pts[1].y = bb.LL.y;
179 UNSUPPORTED("86i7iwyoibsuencp95bp2l0q4"); // pts[3].x = bb.LL.x;
180 UNSUPPORTED("es4u9iskz0bxl8yc2utghf7yw"); // pts[3].y = bb.UR.y;
181 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
182 UNSUPPORTED("1nyzbeonram6636b1w955bypn"); // else {
183 UNSUPPORTED("apctdgahb5872oqu7l5h6puc2"); // pts[1].x = bb.LL.x;
184 UNSUPPORTED("7hnlqi5nik1acsnv1f8p6bcl"); // pts[1].y = bb.UR.y;
185 UNSUPPORTED("7jd9pnw8dy4kydjdmsqgagnag"); // pts[3].x = bb.UR.x;
186 UNSUPPORTED("tk95qh6cyvgcle477dclxmdc"); // pts[3].y = bb.LL.y;
187 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
188 UNSUPPORTED("9wlzvfxuhvsgkkq6lvlrw01d2"); // if (flip) {
189 UNSUPPORTED("bbuxsg26kpzb2fl660hjri9l8"); // int i;
190 UNSUPPORTED("5d0rjolqhmqfhdts46h273pw"); // for (i = 0; i < 4; i++) {
191 UNSUPPORTED("9dpwe8ucpbv8y180jmvfjohj0"); // double tmp = pts[i].y;
192 UNSUPPORTED("8nsyib2abbayywi8ydtyfrh1w"); // pts[i].y = pts[i].x;
193 UNSUPPORTED("e2stbhhso88rb6d0bps3wesbm"); // pts[i].x = -tmp;
194 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
195 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
196 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
197
198 throw new UnsupportedOperationException();
199 }
200
201
202
203
204 //3 7f2x9i3stjkwyki8jhp8g4crp
205 // static int store (segment_t* seg, int first, pointf* pts)
206 public static Object store(Object... arg) {
207 UNSUPPORTED("eyp5xkiyummcoc88ul2b6tkeg"); // static int
208 UNSUPPORTED("ck5s10q08ha996jg1dthuj4gz"); // store (segment_t* seg, int first, pointf* pts)
209 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
210 UNSUPPORTED("6a67ll1vnp0gczc7sdxxm0eus"); // int i, last = first + 4 - 1;
211 UNSUPPORTED("cp0v943eklkgtfrjyj59exkgj"); // int j = 0;
212 UNSUPPORTED("32ltq51ztqu722sxfo74u4mtw"); // for (i = first; i <= last; i++, j++) {
213 UNSUPPORTED("79puvan9sro080fsgrgz2t2q7"); // if (i == first) {
214 UNSUPPORTED("64r4m4ormvokugbo70tnvjx5m"); // seg[i].next = first+1;
215 UNSUPPORTED("1dm0tna3ay2sbc2yaliye2bse"); // seg[i].prev = last;
216 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
217 UNSUPPORTED("6cjbyd0qmosdne3p1e7cmt94k"); // else if (i == last) {
218 UNSUPPORTED("eanh96xgpeo6woibzznfh0wbv"); // seg[i].next = first;
219 UNSUPPORTED("9dcogmtm6yucs0hqvurnlvd8c"); // seg[i].prev = last-1;
220 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
221 UNSUPPORTED("8k75h069sv2k9b6tgz77dscwd"); // else {
222 UNSUPPORTED("2n6qylkakd0eh8qirmanhkqv6"); // seg[i].next = i+1;
223 UNSUPPORTED("e074ljxriocjv010xtqimpe82"); // seg[i].prev = i-1;
224 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
225 UNSUPPORTED("5n6eo7o5v5jxlkoan6t7rxrs6"); // seg[i].is_inserted = 0;
226 UNSUPPORTED("8boueifn4zp07ophbsfll1c4j"); // seg[seg[i].prev].v1 = seg[i].v0 = pts[j];
227 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
228 UNSUPPORTED("2fba7o4mz0g2iwmw1tsdmnyeq"); // return (last+1);
229 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
230
231 throw new UnsupportedOperationException();
232 }
233
234
235
236
237 //3 86pkmn254w4mzlbm1tvtj0utl
238 // static void genSegments (cell* cells, int ncells, boxf bb, segment_t* seg, int flip)
239 public static Object genSegments(Object... arg) {
240 UNSUPPORTED("e2z2o5ybnr5tgpkt8ty7hwan1"); // static void
241 UNSUPPORTED("1kvuie0el6g2uqdy7kissygr5"); // genSegments (cell* cells, int ncells, boxf bb, segment_t* seg, int flip)
242 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
243 UNSUPPORTED("brjd2xw92qki6azgl484qbcab"); // int j = 0, i = 1;
244 UNSUPPORTED("d8sp6cfkpfyndzmid92shiq50"); // pointf pts[4];
245 UNSUPPORTED("599xkip8oct4w8qnqgosguvxf"); // convert (bb, flip, 1, pts);
246 UNSUPPORTED("2ukjeetspuv54livez9siabr3"); // i = store (seg, i, pts);
247 UNSUPPORTED("c0t3vyjxjf53cre3fnsjl1zct"); // for (j = 0; j < ncells; j++) {
248 UNSUPPORTED("nnyfz2s31gezrnoj0r6t3c7e"); // convert (cells[j].bb, flip, 0, pts);
249 UNSUPPORTED("dtkvdb642xk2z42q0cqxa8cuw"); // i = store (seg, i, pts);
250 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
251 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
252
253 throw new UnsupportedOperationException();
254 }
255
256
257
258
259 //3 adiv3g0l2lfgmsrp6nszkbu7e
260 // static void generateRandomOrdering(int n, int* permute)
261 public static Object generateRandomOrdering(Object... arg) {
262 UNSUPPORTED("59dl3yc4jbcy2pb7j1njhlybi"); // static void
263 UNSUPPORTED("bayg75oypsrrhfr1fn4t44xzq"); // generateRandomOrdering(int n, int* permute)
264 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
265 UNSUPPORTED("dbbxghj26zogt3ririv6d35rx"); // int i, j, tmp;
266 UNSUPPORTED("bm4rxb9avtrlnwyqnenc25krj"); // for (i = 0; i <= n; i++) permute[i] = i;
267 UNSUPPORTED("8m819riue7hsq2j2p8vn2ssb5"); // for (i = 1; i <= n; i++) {
268 UNSUPPORTED("2kwf0aqv8qsg7rp5zguz8rp9a"); // j = i + drand48() * (n + 1 - i);
269 UNSUPPORTED("7d04842291lql0mh7uyxlrdk5"); // if (j != i) {
270 UNSUPPORTED("9c8awz319ebq9x0wpxjy3vdr6"); // tmp = permute[i];
271 UNSUPPORTED("9tz2w7jz6snz46csphfzc6j1r"); // permute [i] = permute[j];
272 UNSUPPORTED("c274z0kj80nfnoqb077lr9e5w"); // permute [j] = tmp;
273 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
274 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
275 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
276
277 throw new UnsupportedOperationException();
278 }
279
280
281
282
283 //3 abhkjog92vle0cw28y59cd6ny
284 // static int inside_polygon (trap_t *t, segment_t* seg)
285 public static Object inside_polygon(Object... arg) {
286 UNSUPPORTED("d9cz56vtrl0ri6hz88cumukuf"); // static int
287 UNSUPPORTED("5e3r7cxnwod76fm476ejisqjs"); // inside_polygon (trap_t *t, segment_t* seg)
288 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
289 UNSUPPORTED("1iqmfrt5wo4mwmshecxpdfpa9"); // int rseg = t->rseg;
290 UNSUPPORTED("dxnx57i2vw0o7ngs9bgwpet6"); // if (t->state == 2)
291 UNSUPPORTED("5oxhd3fvp0gfmrmz12vndnjt"); // return 0;
292 UNSUPPORTED("ciw4dstxif0s9rksfu13tmxi1"); // if ((t->lseg <= 0) || (t->rseg <= 0))
293 UNSUPPORTED("5oxhd3fvp0gfmrmz12vndnjt"); // return 0;
294 UNSUPPORTED("ea7zf31094dwtjf2dzluky008"); // if (((t->u0 <= 0) && (t->u1 <= 0)) ||
295 UNSUPPORTED("e15aszibtu1esr9cm5ddq9d5u"); // ((t->d0 <= 0) && (t->d1 <= 0))) /* triangle */
296 UNSUPPORTED("be5gm064ul8v8gm34w7hgonoj"); // return ((((&seg[rseg].v1)->y > (&seg[rseg].v0)->y + 1.0e-7) ? NOT(0) : (((&seg[rseg].v1)->y < (&seg[rseg].v0)->y - 1.0e-7) ? 0 : ((&seg[rseg].v1)->x > (&seg[rseg].v0)->x))));
297 UNSUPPORTED("bid671dovx1rdiquw5vm3fttj"); // return 0;
298 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
299
300 throw new UnsupportedOperationException();
301 }
302
303
304
305
306 //3 ew088xpoj2s831ch0zbnz5elx
307 // static double get_angle (pointf *vp0, pointf *vpnext, pointf *vp1)
308 public static Object get_angle(Object... arg) {
309 UNSUPPORTED("lt6cippjix5bbvyhkcpl8g7g"); // static double
310 UNSUPPORTED("dahlnw9xplc13ehv56akxp6fe"); // get_angle (pointf *vp0, pointf *vpnext, pointf *vp1)
311 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
312 UNSUPPORTED("369yvcclaxnouso7vjmxhcz1l"); // pointf v0, v1;
313 UNSUPPORTED("941ut9wx36d2re4xt7vn0stim"); // v0.x = vpnext->x - vp0->x;
314 UNSUPPORTED("7dfsrn98hfr6a80nms62qv9dy"); // v0.y = vpnext->y - vp0->y;
315 UNSUPPORTED("eholvtx37o5y2d1638yxn6v24"); // v1.x = vp1->x - vp0->x;
316 UNSUPPORTED("9967xssda33wyljha7pewt4mk"); // v1.y = vp1->y - vp0->y;
317 UNSUPPORTED("j9n4bua0t2z6uqjun1rcultc"); // if (((v0).x * (v1).y - (v1).x * (v0).y) >= 0) /* sine is positive */
318 UNSUPPORTED("cf3rdnuyrr7l7ewade7a57djr"); // return ((v0).x * (v1).x + (v0).y * (v1).y)/(sqrt((v0).x * (v0).x + (v0).y * (v0).y))/(sqrt((v1).x * (v1).x + (v1).y * (v1).y));
319 UNSUPPORTED("8983svt6g1kt3l45bd6ju9mw6"); // else
320 UNSUPPORTED("b8d4rpcuwbgggvigw19cs3pz3"); // return (-1.0 * ((v0).x * (v1).x + (v0).y * (v1).y)/(sqrt((v0).x * (v0).x + (v0).y * (v0).y))/(sqrt((v1).x * (v1).x + (v1).y * (v1).y)) - 2);
321 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
322
323 throw new UnsupportedOperationException();
324 }
325
326
327
328
329 //3 7gi4ub1tqpupq617koabfz9iy
330 // static int get_vertex_positions (int v0, int v1, int *ip, int *iq)
331 public static Object get_vertex_positions(Object... arg) {
332 UNSUPPORTED("eyp5xkiyummcoc88ul2b6tkeg"); // static int
333 UNSUPPORTED("86uczcsl4cyu14zme5scqmswu"); // get_vertex_positions (int v0, int v1, int *ip, int *iq)
334 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
335 UNSUPPORTED("en82orb21pn5f2w6hxc0pmi6r"); // vertexchain_t *vp0, *vp1;
336 UNSUPPORTED("9cyat6ft4tmgpumn70l9fwydy"); // register int i;
337 UNSUPPORTED("55a7kpuxgq6hsi6ljkbdivg16"); // double angle, temp;
338 UNSUPPORTED("bjekmi3f789xf2g33a7v1marm"); // int tp, tq;
339 UNSUPPORTED("6v6uklf23950dew0q3vlmjmtu"); // vp0 = &vert[v0];
340 UNSUPPORTED("e6h7hqx9nzufu0i4o6xctjri6"); // vp1 = &vert[v1];
341 UNSUPPORTED("ety4qtnzh8rpooitlhb64ufil"); // /* p is identified as follows. Scan from (v0, v1) rightwards till */
342 UNSUPPORTED("9em6bl9ikz3uv4t3tpkdoxeb9"); // /* you hit the first segment starting from v0. That chain is the */
343 UNSUPPORTED("17iufy6n7vezx6qpdhhsc8zvy"); // /* chain of our interest */
344 UNSUPPORTED("zq0nk6k4owgwciv5sc0z95vf"); // angle = -4.0;
345 UNSUPPORTED("2d2pdjjgu969q63zrkykinxdb"); // for (i = 0; i < 4; i++)
346 UNSUPPORTED("6ld19omy1z68vprfzbhrjqr2z"); // {
347 UNSUPPORTED("aiwx3n6xiaje2wbcw9fja0kp6"); // if (vp0->vnext[i] <= 0)
348 UNSUPPORTED("6hzbngzom80qdcr88vnds1r59"); // continue;
349 UNSUPPORTED("2qqqfeckj323vggxs72i2b9bd"); // if ((temp = get_angle(&vp0->pt, &(vert[vp0->vnext[i]].pt),
350 UNSUPPORTED("bfendrzuwv7ttibwlfxnzh3mv"); // &vp1->pt)) > angle)
351 UNSUPPORTED("98gvqspn5y1bfyr14rwoaqk67"); // {
352 UNSUPPORTED("d5mp4kdylwkyngcbi2ra9gda7"); // angle = temp;
353 UNSUPPORTED("8gf4rptcek1rtsswxgp4f5sp"); // tp = i;
354 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
355 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
356 UNSUPPORTED("29ch4xe4dtb8vrs3u6br7fkfn"); // *ip = tp;
357 UNSUPPORTED("449uwiujph9yz1kmgp91x1mph"); // /* Do similar actions for q */
358 UNSUPPORTED("zq0nk6k4owgwciv5sc0z95vf"); // angle = -4.0;
359 UNSUPPORTED("2d2pdjjgu969q63zrkykinxdb"); // for (i = 0; i < 4; i++)
360 UNSUPPORTED("6ld19omy1z68vprfzbhrjqr2z"); // {
361 UNSUPPORTED("6utzp015ebcuvv226lur8xqjn"); // if (vp1->vnext[i] <= 0)
362 UNSUPPORTED("6u4qfk9ctif0s5v6pg2ym2kh0"); // continue;
363 UNSUPPORTED("4qeaopyujc1p8ghdkrfs8swg1"); // if ((temp = get_angle(&vp1->pt, &(vert[vp1->vnext[i]].pt),
364 UNSUPPORTED("6d1kzaf50kwdnqztg4frxwh8t"); // &vp0->pt)) > angle)
365 UNSUPPORTED("98gvqspn5y1bfyr14rwoaqk67"); // {
366 UNSUPPORTED("d5mp4kdylwkyngcbi2ra9gda7"); // angle = temp;
367 UNSUPPORTED("5ksmrx85xq93zau95l8v9vcve"); // tq = i;
368 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
369 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
370 UNSUPPORTED("8xqnxp3votu03cx1jrh2jwkzn"); // *iq = tq;
371 UNSUPPORTED("bid671dovx1rdiquw5vm3fttj"); // return 0;
372 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
373
374 throw new UnsupportedOperationException();
375 }
376
377
378
379
380 //3 9a6v0rhhqdmefbgzi11be5g6h
381 // static int make_new_monotone_poly (int mcur, int v0, int v1)
382 public static Object make_new_monotone_poly(Object... arg) {
383 UNSUPPORTED("d9cz56vtrl0ri6hz88cumukuf"); // static int
384 UNSUPPORTED("8dv9txhv2yeoqkzbydeqjl054"); // make_new_monotone_poly (int mcur, int v0, int v1)
385 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
386 UNSUPPORTED("9ikjwwfx33ts34kb25fa7bc2l"); // int p, q, ip, iq;
387 UNSUPPORTED("9j34whh433i14tkn8pbaxw6gh"); // int mnew = (++mon_idx);
388 UNSUPPORTED("56fxdenx5fitvdwopxm5znugu"); // int i, j, nf0, nf1;
389 UNSUPPORTED("en82orb21pn5f2w6hxc0pmi6r"); // vertexchain_t *vp0, *vp1;
390 UNSUPPORTED("6v6uklf23950dew0q3vlmjmtu"); // vp0 = &vert[v0];
391 UNSUPPORTED("e6h7hqx9nzufu0i4o6xctjri6"); // vp1 = &vert[v1];
392 UNSUPPORTED("alqs5f8e3n3u5onl2jk7dufp7"); // get_vertex_positions(v0, v1, &ip, &iq);
393 UNSUPPORTED("2hakm8lo9g5t2j1ag9nyr2s6n"); // p = vp0->vpos[ip];
394 UNSUPPORTED("9cggg3kyqycbmj88qwiid1uar"); // q = vp1->vpos[iq];
395 UNSUPPORTED("3rkbxqt4po5kl0o0mduct8rcc"); // /* At this stage, we have got the positions of v0 and v1 in the */
396 UNSUPPORTED("c8605sg6k4m4718ch7un7l4n0"); // /* desired chain. Now modify the linked lists */
397 UNSUPPORTED("h85pxdzzlj05gngtc6052x5l"); // i = (++chain_idx); /* for the new list */
398 UNSUPPORTED("eowz6d0op1t6t0njrx6bb0yn8"); // j = (++chain_idx);
399 UNSUPPORTED("dn6hlugxl248e01l7ox4q9u8w"); // mchain[i].vnum = v0;
400 UNSUPPORTED("cbym1az3wmxvz10xvo5c25vlp"); // mchain[j].vnum = v1;
401 UNSUPPORTED("3xenn6wt1u82649f6st1y0jpy"); // mchain[i].next = mchain[p].next;
402 UNSUPPORTED("8gj5lqet3v2djl0zzmduxhjbo"); // mchain[mchain[p].next].prev = i;
403 UNSUPPORTED("8jwcwnyjn22k8hwa6snhelhdv"); // mchain[i].prev = j;
404 UNSUPPORTED("e8e675obna2uq1ayo5j6qxb3c"); // mchain[j].next = i;
405 UNSUPPORTED("249azfk4cx6fvn29okrr43mxg"); // mchain[j].prev = mchain[q].prev;
406 UNSUPPORTED("1ejluvyey6e0j7029btn2imcn"); // mchain[mchain[q].prev].next = j;
407 UNSUPPORTED("d1hgtt0rm4nozlb8yt6pa0k8q"); // mchain[p].next = q;
408 UNSUPPORTED("c8s9isar38c8ee9yj9szqdh2j"); // mchain[q].prev = p;
409 UNSUPPORTED("42hpz0zje3mclnj3dro8ypwml"); // nf0 = vp0->nextfree;
410 UNSUPPORTED("3vhonm18vr4ry7uanlxdzsa78"); // nf1 = vp1->nextfree;
411 UNSUPPORTED("dikgb6wf4n9mffboqek4g7min"); // vp0->vnext[ip] = v1;
412 UNSUPPORTED("dcc84n7kvdgludx7het4l77pa"); // vp0->vpos[nf0] = i;
413 UNSUPPORTED("bn2d4dxs38on2tt66qsk854a7"); // vp0->vnext[nf0] = mchain[mchain[i].next].vnum;
414 UNSUPPORTED("s8g0h9c5ugu7jx7fammu57j5"); // vp1->vpos[nf1] = j;
415 UNSUPPORTED("2cfbu34obnbyi820v423b3p3a"); // vp1->vnext[nf1] = v0;
416 UNSUPPORTED("18ghn7twlfq25wg7ho4mdpjq5"); // vp0->nextfree++;
417 UNSUPPORTED("6pibe6i58ps0evcw0elchlr5n"); // vp1->nextfree++;
418 UNSUPPORTED("8ofsl1uexufhfiekbia3rpw71"); // mon[mcur] = p;
419 UNSUPPORTED("6qcylzq69scx8z47rc3q53c2p"); // mon[mnew] = i;
420 UNSUPPORTED("1txsom7ht7w6bgk1wfyx8lsst"); // return mnew;
421 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
422
423 throw new UnsupportedOperationException();
424 }
425
426
427
428
429 //3 d0so1zakha0q0j27n2kdrpttw
430 // static int traverse_polygon (int* visited, boxf* decomp, int size, segment_t* seg, trap_t* tr, int mcur, int trnum, int from, int flip, int dir)
431 public static Object traverse_polygon(Object... arg) {
432 UNSUPPORTED("eyp5xkiyummcoc88ul2b6tkeg"); // static int
433 UNSUPPORTED("9guvbji3t13b64dg1nyaopea3"); // traverse_polygon (int* visited, boxf* decomp, int size, segment_t* seg, trap_t* tr,
434 UNSUPPORTED("cop1jvb6sbgiafrugdgcuyww8"); // int mcur, int trnum, int from, int flip, int dir)
435 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
436 UNSUPPORTED("9hip0zrehch3ppd50n93ndz9f"); // trap_t *t = &tr[trnum];
437 UNSUPPORTED("9vw5pneq9i40hijbn87i6muzw"); // int mnew;
438 UNSUPPORTED("4by94oz8hw5ksrudixtwwrdjt"); // int v0, v1;
439 UNSUPPORTED("4d0metbv0f36rcwe2dlscspik"); // int retval;
440 UNSUPPORTED("6b0tp7olw8su1dlt9r0409joh"); // int do_switch = 0;
441 UNSUPPORTED("d0q9pab7nbe8xr6dncj1rkglj"); // if ((trnum <= 0) || visited[trnum])
442 UNSUPPORTED("5fnyq1zql95vx5xiysa7fj12a"); // return size;
443 UNSUPPORTED("cnabgqf0r6cwbefc6z48v4muv"); // visited[trnum] = NOT(0);
444 UNSUPPORTED("e3779kj7w5dz1oy9qmxmrgv6x"); // if ((t->hi.y > t->lo.y) &&
445 UNSUPPORTED("1bkd7ej5xoxkn9w9yngm73in6"); // (seg[t->lseg].v0.x == seg[t->lseg].v1.x) &&
446 UNSUPPORTED("6dhg0j2967gtz8tbuf2fkmvte"); // (seg[t->rseg].v0.x == seg[t->rseg].v1.x)) {
447 UNSUPPORTED("cegqs3fbxpy1vh6ttghu2haol"); // if (flip) {
448 UNSUPPORTED("6uelhwb8drf4b6q5ru2myp9gr"); // decomp[size].LL.x = t->lo.y;
449 UNSUPPORTED("3ie5nszkp1w8ls6i09xu2kj58"); // decomp[size].LL.y = -seg[t->rseg].v0.x;
450 UNSUPPORTED("61vo1z771fo68sucys7bs0ijk"); // decomp[size].UR.x = t->hi.y;
451 UNSUPPORTED("a9grvoswejyt77ctdmsonk0qt"); // decomp[size].UR.y = -seg[t->lseg].v0.x;
452 UNSUPPORTED("yjgjo2sxpmhb7skgxwjx03ie"); // } else {
453 UNSUPPORTED("8ruo1j70pzrg494vp86s1sqc"); // decomp[size].LL.x = seg[t->lseg].v0.x;
454 UNSUPPORTED("6mj48zie12c6x3u7xea2f8hr3"); // decomp[size].LL.y = t->lo.y;
455 UNSUPPORTED("39hkdsjwkvofrh735gqoi7dci"); // decomp[size].UR.x = seg[t->rseg].v0.x;
456 UNSUPPORTED("1bjhgfi5s9y6kuu4xguq9bd20"); // decomp[size].UR.y = t->hi.y;
457 UNSUPPORTED("dquo3qofk56ds5xl95lhvcthf"); // }
458 UNSUPPORTED("cy8kzhvb0obp7jgom47s7zco9"); // size++;
459 UNSUPPORTED("7ijd6pszsxnoopppf6xwo8wdl"); // }
460 UNSUPPORTED("8xva2s9wcuidd7mlvpytarai8"); // /* We have much more information available here. */
461 UNSUPPORTED("zp53t0r52m3c9e801jgb0anx"); // /* rseg: goes upwards */
462 UNSUPPORTED("2a7sgu699nkxh3e7rs42nslze"); // /* lseg: goes downwards */
463 UNSUPPORTED("bspvkvr3shhnvq13d1c9svgc8"); // /* Initially assume that dir = TR_FROM_DN (from the left) */
464 UNSUPPORTED("859erkm7vifnaeylhrg1ge489"); // /* Switch v0 and v1 if necessary afterwards */
465 UNSUPPORTED("7nenieaup2bo7wznju50124gu"); // /* special cases for triangles with cusps at the opposite ends. */
466 UNSUPPORTED("2f72rdf12bkur0sb8jzt141et"); // /* take care of this first */
467 UNSUPPORTED("ark0tbg2u4lksur0hn1thlg8u"); // if ((t->u0 <= 0) && (t->u1 <= 0))
468 UNSUPPORTED("6ld19omy1z68vprfzbhrjqr2z"); // {
469 UNSUPPORTED("2gky1sit45s3urap7m9572dui"); // if ((t->d0 > 0) && (t->d1 > 0)) /* downward opening triangle */
470 UNSUPPORTED("98gvqspn5y1bfyr14rwoaqk67"); // {
471 UNSUPPORTED("a7q0c7q3zwi84dk8feu8hw949"); // v0 = tr[t->d1].lseg;
472 UNSUPPORTED("3un92nsknf6dvivoo4ut6xpjw"); // v1 = t->lseg;
473 UNSUPPORTED("b9sp6domcray594tb7rq7599"); // if (from == t->d1)
474 UNSUPPORTED("6dbei3uox5ql5a1vaaguh0xzp"); // {
475 UNSUPPORTED("9b48jw83n2qlbd27xuf69c5qe"); // do_switch = NOT(0);
476 UNSUPPORTED("7dchvr9xk6f4wwi83audzw6vj"); // mnew = make_new_monotone_poly(mcur, v1, v0);
477 UNSUPPORTED("4mo16xjesdvkqcrs3j9pw6rb6"); // size = traverse_polygon (visited, decomp, size, seg, tr, mcur, t->d1, trnum, flip, 1);
478 UNSUPPORTED("dtlg30b72ms08kp03lb2akq3r"); // size = traverse_polygon (visited, decomp, size, seg, tr, mnew, t->d0, trnum, flip, 1);
479 UNSUPPORTED("6t98dcecgbvbvtpycwiq2ynnj"); // }
480 UNSUPPORTED("cm85lvkbze3joxoa0qgvj5d42"); // else
481 UNSUPPORTED("6dbei3uox5ql5a1vaaguh0xzp"); // {
482 UNSUPPORTED("5ente0j9qdx8ibzrosxtyl4nv"); // mnew = make_new_monotone_poly(mcur, v0, v1);
483 UNSUPPORTED("3r3k4encoopl3sdf3f1ozjqhk"); // size = traverse_polygon (visited, decomp, size, seg, tr, mcur, t->d0, trnum, flip, 1);
484 UNSUPPORTED("1zydelpskydrv2jlukrghxjqm"); // size = traverse_polygon (visited, decomp, size, seg, tr, mnew, t->d1, trnum, flip, 1);
485 UNSUPPORTED("6t98dcecgbvbvtpycwiq2ynnj"); // }
486 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
487 UNSUPPORTED("e2koj2xocq76awegpydpyu62m"); // else
488 UNSUPPORTED("98gvqspn5y1bfyr14rwoaqk67"); // {
489 UNSUPPORTED("d1qk9y23kl78admhc396jcrkj"); // retval = -1; /* Just traverse all neighbours */
490 UNSUPPORTED("55rfugj7cpg4mi8oc5lwm9ve9"); // size = traverse_polygon (visited, decomp, size, seg, tr, mcur, t->u0, trnum, flip, 2);
491 UNSUPPORTED("7n2ov6zceqcw0j8pmeiz8hn4s"); // size = traverse_polygon (visited, decomp, size, seg, tr, mcur, t->u1, trnum, flip, 2);
492 UNSUPPORTED("e1jcx0tbalqyelsxssbh3lmt6"); // size = traverse_polygon (visited, decomp, size, seg, tr, mcur, t->d0, trnum, flip, 1);
493 UNSUPPORTED("4me7fmwngeaircvtb7sff3ijj"); // size = traverse_polygon (visited, decomp, size, seg, tr, mcur, t->d1, trnum, flip, 1);
494 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
495 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
496 UNSUPPORTED("biibbejkkn6y2hgp4rbkzlt63"); // else if ((t->d0 <= 0) && (t->d1 <= 0))
497 UNSUPPORTED("6ld19omy1z68vprfzbhrjqr2z"); // {
498 UNSUPPORTED("co9cdjh0zss1ce6wn5hsovb4o"); // if ((t->u0 > 0) && (t->u1 > 0)) /* upward opening triangle */
499 UNSUPPORTED("98gvqspn5y1bfyr14rwoaqk67"); // {
500 UNSUPPORTED("608hye0unh62kxu73xjcim0vg"); // v0 = t->rseg;
501 UNSUPPORTED("997u5iufydhu5b83stykxqi4s"); // v1 = tr[t->u0].rseg;
502 UNSUPPORTED("5pqs6tn54r9kjjuv7noh9n97t"); // if (from == t->u1)
503 UNSUPPORTED("6dbei3uox5ql5a1vaaguh0xzp"); // {
504 UNSUPPORTED("9b48jw83n2qlbd27xuf69c5qe"); // do_switch = NOT(0);
505 UNSUPPORTED("7dchvr9xk6f4wwi83audzw6vj"); // mnew = make_new_monotone_poly(mcur, v1, v0);
506 UNSUPPORTED("c0yxgwq7qw8py1stvijtw9ut3"); // size = traverse_polygon (visited, decomp, size, seg, tr, mcur, t->u1, trnum, flip, 2);
507 UNSUPPORTED("et6qmwrb429cnthwmphempxu0"); // size = traverse_polygon (visited, decomp, size, seg, tr, mnew, t->u0, trnum, flip, 2);
508 UNSUPPORTED("6t98dcecgbvbvtpycwiq2ynnj"); // }
509 UNSUPPORTED("cm85lvkbze3joxoa0qgvj5d42"); // else
510 UNSUPPORTED("6dbei3uox5ql5a1vaaguh0xzp"); // {
511 UNSUPPORTED("5ente0j9qdx8ibzrosxtyl4nv"); // mnew = make_new_monotone_poly(mcur, v0, v1);
512 UNSUPPORTED("bxugslyfkclt3755mhv0sc3ht"); // size = traverse_polygon (visited, decomp, size, seg, tr, mcur, t->u0, trnum, flip, 2);
513 UNSUPPORTED("64qq66m1iccqslv5wour58853"); // size = traverse_polygon (visited, decomp, size, seg, tr, mnew, t->u1, trnum, flip, 2);
514 UNSUPPORTED("6t98dcecgbvbvtpycwiq2ynnj"); // }
515 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
516 UNSUPPORTED("e2koj2xocq76awegpydpyu62m"); // else
517 UNSUPPORTED("98gvqspn5y1bfyr14rwoaqk67"); // {
518 UNSUPPORTED("d1qk9y23kl78admhc396jcrkj"); // retval = -1; /* Just traverse all neighbours */
519 UNSUPPORTED("55rfugj7cpg4mi8oc5lwm9ve9"); // size = traverse_polygon (visited, decomp, size, seg, tr, mcur, t->u0, trnum, flip, 2);
520 UNSUPPORTED("7n2ov6zceqcw0j8pmeiz8hn4s"); // size = traverse_polygon (visited, decomp, size, seg, tr, mcur, t->u1, trnum, flip, 2);
521 UNSUPPORTED("e1jcx0tbalqyelsxssbh3lmt6"); // size = traverse_polygon (visited, decomp, size, seg, tr, mcur, t->d0, trnum, flip, 1);
522 UNSUPPORTED("4me7fmwngeaircvtb7sff3ijj"); // size = traverse_polygon (visited, decomp, size, seg, tr, mcur, t->d1, trnum, flip, 1);
523 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
524 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
525 UNSUPPORTED("1izitiatr2ulhvy8h0pnsxiiz"); // else if ((t->u0 > 0) && (t->u1 > 0))
526 UNSUPPORTED("6ld19omy1z68vprfzbhrjqr2z"); // {
527 UNSUPPORTED("5pvgc5lzsbemakfagmdy8onnt"); // if ((t->d0 > 0) && (t->d1 > 0)) /* downward + upward cusps */
528 UNSUPPORTED("98gvqspn5y1bfyr14rwoaqk67"); // {
529 UNSUPPORTED("a7q0c7q3zwi84dk8feu8hw949"); // v0 = tr[t->d1].lseg;
530 UNSUPPORTED("997u5iufydhu5b83stykxqi4s"); // v1 = tr[t->u0].rseg;
531 UNSUPPORTED("3oejl3ub1rc10j9jmx94a30sw"); // retval = 3;
532 UNSUPPORTED("cpjixbghid2v2ttmi1omjq4df"); // if (((dir == 2) && (t->d1 == from)) ||
533 UNSUPPORTED("1vtjp034u1x48uhzu2jvmh0ek"); // ((dir == 1) && (t->u1 == from)))
534 UNSUPPORTED("6dbei3uox5ql5a1vaaguh0xzp"); // {
535 UNSUPPORTED("9b48jw83n2qlbd27xuf69c5qe"); // do_switch = NOT(0);
536 UNSUPPORTED("7dchvr9xk6f4wwi83audzw6vj"); // mnew = make_new_monotone_poly(mcur, v1, v0);
537 UNSUPPORTED("c0yxgwq7qw8py1stvijtw9ut3"); // size = traverse_polygon (visited, decomp, size, seg, tr, mcur, t->u1, trnum, flip, 2);
538 UNSUPPORTED("4mo16xjesdvkqcrs3j9pw6rb6"); // size = traverse_polygon (visited, decomp, size, seg, tr, mcur, t->d1, trnum, flip, 1);
539 UNSUPPORTED("bwjfea2e7yj2tyyhz2fj73xub"); // size = traverse_polygon (visited, decomp, size, seg, tr, mnew, t->u0, trnum, flip, 2);
540 UNSUPPORTED("c6tug0v8jlllvmf2nw412i7az"); // size = traverse_polygon (visited, decomp, size, seg, tr, mnew, t->d0, trnum, flip, 1);
541 UNSUPPORTED("6t98dcecgbvbvtpycwiq2ynnj"); // }
542 UNSUPPORTED("cm85lvkbze3joxoa0qgvj5d42"); // else
543 UNSUPPORTED("6dbei3uox5ql5a1vaaguh0xzp"); // {
544 UNSUPPORTED("5ente0j9qdx8ibzrosxtyl4nv"); // mnew = make_new_monotone_poly(mcur, v0, v1);
545 UNSUPPORTED("bxugslyfkclt3755mhv0sc3ht"); // size = traverse_polygon (visited, decomp, size, seg, tr, mcur, t->u0, trnum, flip, 2);
546 UNSUPPORTED("3r3k4encoopl3sdf3f1ozjqhk"); // size = traverse_polygon (visited, decomp, size, seg, tr, mcur, t->d0, trnum, flip, 1);
547 UNSUPPORTED("64qq66m1iccqslv5wour58853"); // size = traverse_polygon (visited, decomp, size, seg, tr, mnew, t->u1, trnum, flip, 2);
548 UNSUPPORTED("b00fn0czpty1ag5ihw9ev67k9"); // size = traverse_polygon (visited, decomp, size, seg, tr, mnew, t->d1, trnum, flip, 1);
549 UNSUPPORTED("6t98dcecgbvbvtpycwiq2ynnj"); // }
550 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
551 UNSUPPORTED("7vbb8vznij9zlyolu6orgzq63"); // else /* only downward cusp */
552 UNSUPPORTED("98gvqspn5y1bfyr14rwoaqk67"); // {
553 UNSUPPORTED("8a5njs108pwwsicxpr9cp011e"); // if (((fabs((&t->lo)->y - (&seg[t->lseg].v1)->y) <= 1.0e-7) && (fabs((&t->lo)->x - (&seg[t->lseg].v1)->x) <= 1.0e-7)))
554 UNSUPPORTED("6dbei3uox5ql5a1vaaguh0xzp"); // {
555 UNSUPPORTED("iq55fez7l08t1doqy34awci0"); // v0 = tr[t->u0].rseg;
556 UNSUPPORTED("6dqmuhbse549xc7nbc1t4fi8c"); // v1 = seg[t->lseg].next;
557 UNSUPPORTED("3o1isg154krcrahue9rgdvzzv"); // retval = 4;
558 UNSUPPORTED("ct1dz4hcovsoo7o89yuv4jqaj"); // if ((dir == 1) && (t->u0 == from))
559 UNSUPPORTED("3lflizih274xjqgv1g0wjdgeq"); // {
560 UNSUPPORTED("747hebbjlsz3afhysgh8jddh3"); // do_switch = NOT(0);
561 UNSUPPORTED("a63etqdmntd8mnuuuuq2iv8uk"); // mnew = make_new_monotone_poly(mcur, v1, v0);
562 UNSUPPORTED("e78lvv8zmyhisqei55jg0b5ow"); // size = traverse_polygon (visited, decomp, size, seg, tr, mcur, t->u0, trnum, flip, 2);
563 UNSUPPORTED("dspgt98nlpx18w318d5b65jdf"); // size = traverse_polygon (visited, decomp, size, seg, tr, mnew, t->d0, trnum, flip, 1);
564 UNSUPPORTED("8321g7cqx5few6bc5d8ltrpbu"); // size = traverse_polygon (visited, decomp, size, seg, tr, mnew, t->u1, trnum, flip, 2);
565 UNSUPPORTED("9vnwz4c8xw8z1762jvr65pidr"); // size = traverse_polygon (visited, decomp, size, seg, tr, mnew, t->d1, trnum, flip, 1);
566 UNSUPPORTED("6eq5kf0bj692bokt0bixy1ixh"); // }
567 UNSUPPORTED("3aqvmk5i0k4ue9zqfwhex7t14"); // else
568 UNSUPPORTED("3lflizih274xjqgv1g0wjdgeq"); // {
569 UNSUPPORTED("6tnv93tybou8dnl9l7lcmyp50"); // mnew = make_new_monotone_poly(mcur, v0, v1);
570 UNSUPPORTED("66azwpktshnoqv46ag8h77g8h"); // size = traverse_polygon (visited, decomp, size, seg, tr, mcur, t->u1, trnum, flip, 2);
571 UNSUPPORTED("el7cvlcafkwitwo8t66cutvmj"); // size = traverse_polygon (visited, decomp, size, seg, tr, mcur, t->d0, trnum, flip, 1);
572 UNSUPPORTED("ck5jclcux876638ifzrabja6c"); // size = traverse_polygon (visited, decomp, size, seg, tr, mcur, t->d1, trnum, flip, 1);
573 UNSUPPORTED("6vtwa1ilotojo4dxm38prhhb6"); // size = traverse_polygon (visited, decomp, size, seg, tr, mnew, t->u0, trnum, flip, 2);
574 UNSUPPORTED("6eq5kf0bj692bokt0bixy1ixh"); // }
575 UNSUPPORTED("6t98dcecgbvbvtpycwiq2ynnj"); // }
576 UNSUPPORTED("cm85lvkbze3joxoa0qgvj5d42"); // else
577 UNSUPPORTED("6dbei3uox5ql5a1vaaguh0xzp"); // {
578 UNSUPPORTED("7mcbwj8a2veib26ww67v0xayb"); // v0 = t->rseg;
579 UNSUPPORTED("el138o2v6si9fi54s9rho23kj"); // v1 = tr[t->u0].rseg;
580 UNSUPPORTED("cdlggb241g5t55g6npu51bhjo"); // retval = 5;
581 UNSUPPORTED("5jw5gn3xil0quizho5x17qzin"); // if ((dir == 1) && (t->u1 == from))
582 UNSUPPORTED("3lflizih274xjqgv1g0wjdgeq"); // {
583 UNSUPPORTED("747hebbjlsz3afhysgh8jddh3"); // do_switch = NOT(0);
584 UNSUPPORTED("a63etqdmntd8mnuuuuq2iv8uk"); // mnew = make_new_monotone_poly(mcur, v1, v0);
585 UNSUPPORTED("66azwpktshnoqv46ag8h77g8h"); // size = traverse_polygon (visited, decomp, size, seg, tr, mcur, t->u1, trnum, flip, 2);
586 UNSUPPORTED("9vnwz4c8xw8z1762jvr65pidr"); // size = traverse_polygon (visited, decomp, size, seg, tr, mnew, t->d1, trnum, flip, 1);
587 UNSUPPORTED("dspgt98nlpx18w318d5b65jdf"); // size = traverse_polygon (visited, decomp, size, seg, tr, mnew, t->d0, trnum, flip, 1);
588 UNSUPPORTED("6vtwa1ilotojo4dxm38prhhb6"); // size = traverse_polygon (visited, decomp, size, seg, tr, mnew, t->u0, trnum, flip, 2);
589 UNSUPPORTED("6eq5kf0bj692bokt0bixy1ixh"); // }
590 UNSUPPORTED("3aqvmk5i0k4ue9zqfwhex7t14"); // else
591 UNSUPPORTED("3lflizih274xjqgv1g0wjdgeq"); // {
592 UNSUPPORTED("6tnv93tybou8dnl9l7lcmyp50"); // mnew = make_new_monotone_poly(mcur, v0, v1);
593 UNSUPPORTED("e78lvv8zmyhisqei55jg0b5ow"); // size = traverse_polygon (visited, decomp, size, seg, tr, mcur, t->u0, trnum, flip, 2);
594 UNSUPPORTED("el7cvlcafkwitwo8t66cutvmj"); // size = traverse_polygon (visited, decomp, size, seg, tr, mcur, t->d0, trnum, flip, 1);
595 UNSUPPORTED("ck5jclcux876638ifzrabja6c"); // size = traverse_polygon (visited, decomp, size, seg, tr, mcur, t->d1, trnum, flip, 1);
596 UNSUPPORTED("8321g7cqx5few6bc5d8ltrpbu"); // size = traverse_polygon (visited, decomp, size, seg, tr, mnew, t->u1, trnum, flip, 2);
597 UNSUPPORTED("6eq5kf0bj692bokt0bixy1ixh"); // }
598 UNSUPPORTED("6t98dcecgbvbvtpycwiq2ynnj"); // }
599 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
600 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
601 UNSUPPORTED("8ql1l7nv15rr51xt5ty1sjycw"); // else if ((t->u0 > 0) || (t->u1 > 0)) /* no downward cusp */
602 UNSUPPORTED("6ld19omy1z68vprfzbhrjqr2z"); // {
603 UNSUPPORTED("duzxgn403jzqn6d6ut3gz298t"); // if ((t->d0 > 0) && (t->d1 > 0)) /* only upward cusp */
604 UNSUPPORTED("98gvqspn5y1bfyr14rwoaqk67"); // {
605 UNSUPPORTED("4xbxe3o8leve6xm0t19ee2vfe"); // if (((fabs((&t->hi)->y - (&seg[t->lseg].v0)->y) <= 1.0e-7) && (fabs((&t->hi)->x - (&seg[t->lseg].v0)->x) <= 1.0e-7)))
606 UNSUPPORTED("6dbei3uox5ql5a1vaaguh0xzp"); // {
607 UNSUPPORTED("ddiuyd0k6l4ju7yt0t7gnkyn2"); // v0 = tr[t->d1].lseg;
608 UNSUPPORTED("3xgnfxeseit96nt2oywbb12cm"); // v1 = t->lseg;
609 UNSUPPORTED("612bonw6ququtpyb2otlknu6u"); // retval = 6;
610 UNSUPPORTED("52c1b8vw0ww4s2y1fp9e5rjxt"); // if (!((dir == 2) && (t->d0 == from)))
611 UNSUPPORTED("3lflizih274xjqgv1g0wjdgeq"); // {
612 UNSUPPORTED("747hebbjlsz3afhysgh8jddh3"); // do_switch = NOT(0);
613 UNSUPPORTED("a63etqdmntd8mnuuuuq2iv8uk"); // mnew = make_new_monotone_poly(mcur, v1, v0);
614 UNSUPPORTED("66azwpktshnoqv46ag8h77g8h"); // size = traverse_polygon (visited, decomp, size, seg, tr, mcur, t->u1, trnum, flip, 2);
615 UNSUPPORTED("ck5jclcux876638ifzrabja6c"); // size = traverse_polygon (visited, decomp, size, seg, tr, mcur, t->d1, trnum, flip, 1);
616 UNSUPPORTED("e78lvv8zmyhisqei55jg0b5ow"); // size = traverse_polygon (visited, decomp, size, seg, tr, mcur, t->u0, trnum, flip, 2);
617 UNSUPPORTED("dspgt98nlpx18w318d5b65jdf"); // size = traverse_polygon (visited, decomp, size, seg, tr, mnew, t->d0, trnum, flip, 1);
618 UNSUPPORTED("6eq5kf0bj692bokt0bixy1ixh"); // }
619 UNSUPPORTED("3aqvmk5i0k4ue9zqfwhex7t14"); // else
620 UNSUPPORTED("3lflizih274xjqgv1g0wjdgeq"); // {
621 UNSUPPORTED("6tnv93tybou8dnl9l7lcmyp50"); // mnew = make_new_monotone_poly(mcur, v0, v1);
622 UNSUPPORTED("el7cvlcafkwitwo8t66cutvmj"); // size = traverse_polygon (visited, decomp, size, seg, tr, mcur, t->d0, trnum, flip, 1);
623 UNSUPPORTED("6vtwa1ilotojo4dxm38prhhb6"); // size = traverse_polygon (visited, decomp, size, seg, tr, mnew, t->u0, trnum, flip, 2);
624 UNSUPPORTED("8321g7cqx5few6bc5d8ltrpbu"); // size = traverse_polygon (visited, decomp, size, seg, tr, mnew, t->u1, trnum, flip, 2);
625 UNSUPPORTED("5yk6sndya5s45z9fap3jlftsv"); // size = traverse_polygon (visited, decomp, size, seg, tr, mnew, t->d1, trnum, flip, 1);
626 UNSUPPORTED("6eq5kf0bj692bokt0bixy1ixh"); // }
627 UNSUPPORTED("6t98dcecgbvbvtpycwiq2ynnj"); // }
628 UNSUPPORTED("cm85lvkbze3joxoa0qgvj5d42"); // else
629 UNSUPPORTED("6dbei3uox5ql5a1vaaguh0xzp"); // {
630 UNSUPPORTED("ddiuyd0k6l4ju7yt0t7gnkyn2"); // v0 = tr[t->d1].lseg;
631 UNSUPPORTED("7wup2u127p4wprrhd2g65hvf6"); // v1 = seg[t->rseg].next;
632 UNSUPPORTED("6ywwmc78aiixut85yk4dr53yx"); // retval = 7;
633 UNSUPPORTED("ayjr7wdfuvpw08o3v1x8gwrxn"); // if ((dir == 2) && (t->d1 == from))
634 UNSUPPORTED("3lflizih274xjqgv1g0wjdgeq"); // {
635 UNSUPPORTED("747hebbjlsz3afhysgh8jddh3"); // do_switch = NOT(0);
636 UNSUPPORTED("a63etqdmntd8mnuuuuq2iv8uk"); // mnew = make_new_monotone_poly(mcur, v1, v0);
637 UNSUPPORTED("ck5jclcux876638ifzrabja6c"); // size = traverse_polygon (visited, decomp, size, seg, tr, mcur, t->d1, trnum, flip, 1);
638 UNSUPPORTED("8321g7cqx5few6bc5d8ltrpbu"); // size = traverse_polygon (visited, decomp, size, seg, tr, mnew, t->u1, trnum, flip, 2);
639 UNSUPPORTED("6vtwa1ilotojo4dxm38prhhb6"); // size = traverse_polygon (visited, decomp, size, seg, tr, mnew, t->u0, trnum, flip, 2);
640 UNSUPPORTED("dspgt98nlpx18w318d5b65jdf"); // size = traverse_polygon (visited, decomp, size, seg, tr, mnew, t->d0, trnum, flip, 1);
641 UNSUPPORTED("6eq5kf0bj692bokt0bixy1ixh"); // }
642 UNSUPPORTED("3aqvmk5i0k4ue9zqfwhex7t14"); // else
643 UNSUPPORTED("3lflizih274xjqgv1g0wjdgeq"); // {
644 UNSUPPORTED("6tnv93tybou8dnl9l7lcmyp50"); // mnew = make_new_monotone_poly(mcur, v0, v1);
645 UNSUPPORTED("e78lvv8zmyhisqei55jg0b5ow"); // size = traverse_polygon (visited, decomp, size, seg, tr, mcur, t->u0, trnum, flip, 2);
646 UNSUPPORTED("el7cvlcafkwitwo8t66cutvmj"); // size = traverse_polygon (visited, decomp, size, seg, tr, mcur, t->d0, trnum, flip, 1);
647 UNSUPPORTED("66azwpktshnoqv46ag8h77g8h"); // size = traverse_polygon (visited, decomp, size, seg, tr, mcur, t->u1, trnum, flip, 2);
648 UNSUPPORTED("9vnwz4c8xw8z1762jvr65pidr"); // size = traverse_polygon (visited, decomp, size, seg, tr, mnew, t->d1, trnum, flip, 1);
649 UNSUPPORTED("6eq5kf0bj692bokt0bixy1ixh"); // }
650 UNSUPPORTED("6t98dcecgbvbvtpycwiq2ynnj"); // }
651 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
652 UNSUPPORTED("cs5d2p3v6x67knxt079180lf1"); // else /* no cusp */
653 UNSUPPORTED("98gvqspn5y1bfyr14rwoaqk67"); // {
654 UNSUPPORTED("u3jb6lmd4ip7tq4edphxoy2z"); // if (((fabs((&t->hi)->y - (&seg[t->lseg].v0)->y) <= 1.0e-7) && (fabs((&t->hi)->x - (&seg[t->lseg].v0)->x) <= 1.0e-7)) &&
655 UNSUPPORTED("8hbx4q52b68r4izus3j4ewijg"); // ((fabs((&t->lo)->y - (&seg[t->rseg].v0)->y) <= 1.0e-7) && (fabs((&t->lo)->x - (&seg[t->rseg].v0)->x) <= 1.0e-7)))
656 UNSUPPORTED("6dbei3uox5ql5a1vaaguh0xzp"); // {
657 UNSUPPORTED("7mcbwj8a2veib26ww67v0xayb"); // v0 = t->rseg;
658 UNSUPPORTED("3xgnfxeseit96nt2oywbb12cm"); // v1 = t->lseg;
659 UNSUPPORTED("cj0s3n96u7e6tq1nzlxp8a7gv"); // retval = 2;
660 UNSUPPORTED("azgs71ez0f45idcd7u0uhjkz4"); // if (dir == 1)
661 UNSUPPORTED("3lflizih274xjqgv1g0wjdgeq"); // {
662 UNSUPPORTED("747hebbjlsz3afhysgh8jddh3"); // do_switch = NOT(0);
663 UNSUPPORTED("a63etqdmntd8mnuuuuq2iv8uk"); // mnew = make_new_monotone_poly(mcur, v1, v0);
664 UNSUPPORTED("e78lvv8zmyhisqei55jg0b5ow"); // size = traverse_polygon (visited, decomp, size, seg, tr, mcur, t->u0, trnum, flip, 2);
665 UNSUPPORTED("66azwpktshnoqv46ag8h77g8h"); // size = traverse_polygon (visited, decomp, size, seg, tr, mcur, t->u1, trnum, flip, 2);
666 UNSUPPORTED("9vnwz4c8xw8z1762jvr65pidr"); // size = traverse_polygon (visited, decomp, size, seg, tr, mnew, t->d1, trnum, flip, 1);
667 UNSUPPORTED("dspgt98nlpx18w318d5b65jdf"); // size = traverse_polygon (visited, decomp, size, seg, tr, mnew, t->d0, trnum, flip, 1);
668 UNSUPPORTED("6eq5kf0bj692bokt0bixy1ixh"); // }
669 UNSUPPORTED("3aqvmk5i0k4ue9zqfwhex7t14"); // else
670 UNSUPPORTED("3lflizih274xjqgv1g0wjdgeq"); // {
671 UNSUPPORTED("6tnv93tybou8dnl9l7lcmyp50"); // mnew = make_new_monotone_poly(mcur, v0, v1);
672 UNSUPPORTED("ck5jclcux876638ifzrabja6c"); // size = traverse_polygon (visited, decomp, size, seg, tr, mcur, t->d1, trnum, flip, 1);
673 UNSUPPORTED("el7cvlcafkwitwo8t66cutvmj"); // size = traverse_polygon (visited, decomp, size, seg, tr, mcur, t->d0, trnum, flip, 1);
674 UNSUPPORTED("6vtwa1ilotojo4dxm38prhhb6"); // size = traverse_polygon (visited, decomp, size, seg, tr, mnew, t->u0, trnum, flip, 2);
675 UNSUPPORTED("8321g7cqx5few6bc5d8ltrpbu"); // size = traverse_polygon (visited, decomp, size, seg, tr, mnew, t->u1, trnum, flip, 2);
676 UNSUPPORTED("6eq5kf0bj692bokt0bixy1ixh"); // }
677 UNSUPPORTED("6t98dcecgbvbvtpycwiq2ynnj"); // }
678 UNSUPPORTED("30bq1zitecexyibeos8lcz9ms"); // else if (((fabs((&t->hi)->y - (&seg[t->rseg].v1)->y) <= 1.0e-7) && (fabs((&t->hi)->x - (&seg[t->rseg].v1)->x) <= 1.0e-7)) &&
679 UNSUPPORTED("7fm0u4okmm25vcrbk21uccbkf"); // ((fabs((&t->lo)->y - (&seg[t->lseg].v1)->y) <= 1.0e-7) && (fabs((&t->lo)->x - (&seg[t->lseg].v1)->x) <= 1.0e-7)))
680 UNSUPPORTED("6dbei3uox5ql5a1vaaguh0xzp"); // {
681 UNSUPPORTED("8e5yhelccmj6n8d33ziozi9ej"); // v0 = seg[t->rseg].next;
682 UNSUPPORTED("6dqmuhbse549xc7nbc1t4fi8c"); // v1 = seg[t->lseg].next;
683 UNSUPPORTED("eh17urgk88bfnpryw1evbojlf"); // retval = 1;
684 UNSUPPORTED("azgs71ez0f45idcd7u0uhjkz4"); // if (dir == 1)
685 UNSUPPORTED("3lflizih274xjqgv1g0wjdgeq"); // {
686 UNSUPPORTED("747hebbjlsz3afhysgh8jddh3"); // do_switch = NOT(0);
687 UNSUPPORTED("a63etqdmntd8mnuuuuq2iv8uk"); // mnew = make_new_monotone_poly(mcur, v1, v0);
688 UNSUPPORTED("e78lvv8zmyhisqei55jg0b5ow"); // size = traverse_polygon (visited, decomp, size, seg, tr, mcur, t->u0, trnum, flip, 2);
689 UNSUPPORTED("66azwpktshnoqv46ag8h77g8h"); // size = traverse_polygon (visited, decomp, size, seg, tr, mcur, t->u1, trnum, flip, 2);
690 UNSUPPORTED("9vnwz4c8xw8z1762jvr65pidr"); // size = traverse_polygon (visited, decomp, size, seg, tr, mnew, t->d1, trnum, flip, 1);
691 UNSUPPORTED("dspgt98nlpx18w318d5b65jdf"); // size = traverse_polygon (visited, decomp, size, seg, tr, mnew, t->d0, trnum, flip, 1);
692 UNSUPPORTED("6eq5kf0bj692bokt0bixy1ixh"); // }
693 UNSUPPORTED("3aqvmk5i0k4ue9zqfwhex7t14"); // else
694 UNSUPPORTED("3lflizih274xjqgv1g0wjdgeq"); // {
695 UNSUPPORTED("6tnv93tybou8dnl9l7lcmyp50"); // mnew = make_new_monotone_poly(mcur, v0, v1);
696 UNSUPPORTED("ck5jclcux876638ifzrabja6c"); // size = traverse_polygon (visited, decomp, size, seg, tr, mcur, t->d1, trnum, flip, 1);
697 UNSUPPORTED("el7cvlcafkwitwo8t66cutvmj"); // size = traverse_polygon (visited, decomp, size, seg, tr, mcur, t->d0, trnum, flip, 1);
698 UNSUPPORTED("6vtwa1ilotojo4dxm38prhhb6"); // size = traverse_polygon (visited, decomp, size, seg, tr, mnew, t->u0, trnum, flip, 2);
699 UNSUPPORTED("8321g7cqx5few6bc5d8ltrpbu"); // size = traverse_polygon (visited, decomp, size, seg, tr, mnew, t->u1, trnum, flip, 2);
700 UNSUPPORTED("6eq5kf0bj692bokt0bixy1ixh"); // }
701 UNSUPPORTED("6t98dcecgbvbvtpycwiq2ynnj"); // }
702 UNSUPPORTED("4i2amsjqesppq3lp9vpmv7r4r"); // else /* no split possible */
703 UNSUPPORTED("6dbei3uox5ql5a1vaaguh0xzp"); // {
704 UNSUPPORTED("a4ghaevttvkkfms2dhd4j26pc"); // retval = -1;
705 UNSUPPORTED("bxugslyfkclt3755mhv0sc3ht"); // size = traverse_polygon (visited, decomp, size, seg, tr, mcur, t->u0, trnum, flip, 2);
706 UNSUPPORTED("3r3k4encoopl3sdf3f1ozjqhk"); // size = traverse_polygon (visited, decomp, size, seg, tr, mcur, t->d0, trnum, flip, 1);
707 UNSUPPORTED("c0yxgwq7qw8py1stvijtw9ut3"); // size = traverse_polygon (visited, decomp, size, seg, tr, mcur, t->u1, trnum, flip, 2);
708 UNSUPPORTED("3ypcbrw5a964vz3dszjca8xvw"); // size = traverse_polygon (visited, decomp, size, seg, tr, mcur, t->d1, trnum, flip, 1);
709 UNSUPPORTED("6t98dcecgbvbvtpycwiq2ynnj"); // }
710 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
711 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
712 UNSUPPORTED("8mmoka8dpm06e00j83nvx2wfc"); // return size;
713 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
714
715 throw new UnsupportedOperationException();
716 }
717
718
719
720
721 //3 1q5h2go20arrwvxkwi1dpllun
722 // static int monotonate_trapezoids(int nsegs, segment_t*seg, trap_t* tr, int flip, boxf* decomp)
723 public static Object monotonate_trapezoids(Object... arg) {
724 UNSUPPORTED("eyp5xkiyummcoc88ul2b6tkeg"); // static int
725 UNSUPPORTED("4st5re5qeun3fazm6nwtr2504"); // monotonate_trapezoids(int nsegs, segment_t*seg, trap_t* tr,
726 UNSUPPORTED("3gqslrg5hqigs6bb03nagwbax"); // int flip, boxf* decomp)
727 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
728 UNSUPPORTED("9v0t4zzai4k1kr9wu7yirdcca"); // int i, size;
729 UNSUPPORTED("2axop7sy1z49z2ga4o3phveq3"); // int tr_start;
730 UNSUPPORTED("403dbgvseikvuaz19wa8ka871"); // int tr_size = (5*(nsegs)+1);
731 UNSUPPORTED("5l974t0r35h6lgions7zrfr9n"); // int* visited = (int*)zmalloc((tr_size)*sizeof(int));
732 UNSUPPORTED("8kbv1p0hl6a1jsb28mp9xizs6"); // mchain = (monchain_t*)zmalloc((tr_size)*sizeof(monchain_t));
733 UNSUPPORTED("50knp82hjjep106iokix8jayb"); // vert = (vertexchain_t*)zmalloc((nsegs+1)*sizeof(vertexchain_t));
734 UNSUPPORTED("3joe7zjof9jfs427j0nanppzg"); // mon = (int*)zmalloc((nsegs)*sizeof(int));
735 UNSUPPORTED("5stezg8pn70o9al2yeof9vbbm"); // /* First locate a trapezoid which lies inside the polygon */
736 UNSUPPORTED("clz63gofo9l9x4djgclagrdbl"); // /* and which is triangular */
737 UNSUPPORTED("bfkwyvnluov44fmf0ve0qc47b"); // for (i = 0; i < (5*(nsegs)+1); i++)
738 UNSUPPORTED("3kwag0shsa1vlgnpfz2z52jad"); // if (inside_polygon(&tr[i], seg)) break;
739 UNSUPPORTED("ebpi22p8d3ms6x8kif7wf849m"); // tr_start = i;
740 UNSUPPORTED("80e8cmn8ppz1g34yart4h3guc"); // /* Initialise the mon data-structure and start spanning all the */
741 UNSUPPORTED("c288aziy4b5qyrm0inw81wpf"); // /* trapezoids within the polygon */
742 UNSUPPORTED("9qxeq136dyf2jnwd4bf1kuaq6"); // for (i = 1; i <= nsegs; i++) {
743 UNSUPPORTED("9m9y60p6vbo7stjuyotwxb88s"); // mchain[i].prev = seg[i].prev;
744 UNSUPPORTED("88ejlvwd7gy17hqrhragtc8zv"); // mchain[i].next = seg[i].next;
745 UNSUPPORTED("cu3ie2h2ob81y8d5ebxfm56uj"); // mchain[i].vnum = i;
746 UNSUPPORTED("9akiu4gv6b7q4t4v7jbvspe77"); // vert[i].pt = seg[i].v0;
747 UNSUPPORTED("j6yppsuzqh4phhdx6t7chtp3"); // vert[i].vnext[0] = seg[i].next; /* next vertex */
748 UNSUPPORTED("avvt0stq2xxai7od20rqmnt4c"); // vert[i].vpos[0] = i; /* locn. of next vertex */
749 UNSUPPORTED("68bp8qgzocylz07fdkq761k61"); // vert[i].nextfree = 1;
750 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
751 UNSUPPORTED("50js3uabj113ezvs27yvc5zv5"); // chain_idx = nsegs;
752 UNSUPPORTED("8ocywthfoxu2ckdm469ksnvdw"); // mon_idx = 0;
753 UNSUPPORTED("36vw4fu4m3w15c4afhp1dgf7p"); // mon[0] = 1; /* position of any vertex in the first */
754 UNSUPPORTED("1gkcquzwnonqmlrklzwimth46"); // /* chain */
755 UNSUPPORTED("5mq8oebfg9zlu2dh458odwyza"); // /* traverse the polygon */
756 UNSUPPORTED("l12iv7r3oz1l157wkxev3k26"); // if (tr[tr_start].u0 > 0)
757 UNSUPPORTED("ef00tkl3m246yucima83gjqry"); // size = traverse_polygon (visited, decomp, 0, seg, tr, 0, tr_start, tr[tr_start].u0, flip, 1);
758 UNSUPPORTED("ek9ndv4cgpvv1ppq3o6hffjln"); // else if (tr[tr_start].d0 > 0)
759 UNSUPPORTED("2phk6542w1awpzofg19twa9u3"); // size = traverse_polygon (visited, decomp, 0, seg, tr, 0, tr_start, tr[tr_start].d0, flip, 2);
760 UNSUPPORTED("7p1upi5nlpk6oews5ejvqxzgq"); // free (visited);
761 UNSUPPORTED("dyur1to2vops13ap1n0q7lsol"); // free (mchain);
762 UNSUPPORTED("8pnrg51s1fq9cek6lwdi7795g"); // free (vert);
763 UNSUPPORTED("d0yk4ad70j6la3tjcpwkdaqvf"); // free (mon);
764 UNSUPPORTED("6vecslx1iges54gigd2bc6x6h"); // /* return the number of rects created */
765 UNSUPPORTED("8mmoka8dpm06e00j83nvx2wfc"); // return size;
766 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
767
768 throw new UnsupportedOperationException();
769 }
770
771
772
773
774 //3 7dl8o2typqtrtf964o8l9x9mn
775 // static int rectIntersect (boxf *d, const boxf *r0, const boxf *r1)
776 public static Object rectIntersect(Object... arg) {
777 UNSUPPORTED("d9cz56vtrl0ri6hz88cumukuf"); // static int
778 UNSUPPORTED("emzrn19dd9a1n8a75xt78ialj"); // rectIntersect (boxf *d, const boxf *r0, const boxf *r1)
779 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
780 UNSUPPORTED("6wfj8onzmd4ihhh62dqfmqpbx"); // double t;
781 UNSUPPORTED("10mg3ctpr0doly1xr4mn7m39v"); // t = (r0->LL.x > r1->LL.x) ? r0->LL.x : r1->LL.x;
782 UNSUPPORTED("4q3ymg1fo2b29aomy5kba4o06"); // d->UR.x = (r0->UR.x < r1->UR.x) ? r0->UR.x : r1->UR.x;
783 UNSUPPORTED("1muxzktb9b7cx05opqest2kf9"); // d->LL.x = t;
784 UNSUPPORTED("qu5cb749o6mku5meyk7xzjiq"); // t = (r0->LL.y > r1->LL.y) ? r0->LL.y : r1->LL.y;
785 UNSUPPORTED("3063iivbgzdi6hh53rsfr6o54"); // d->UR.y = (r0->UR.y < r1->UR.y) ? r0->UR.y : r1->UR.y;
786 UNSUPPORTED("5at6mfpw5k8ldnmm0icvhnj8j"); // d->LL.y = t;
787 UNSUPPORTED("upus29izwyyfylisn68yvdtv"); // if ((d->LL.x >= d->UR.x) ||
788 UNSUPPORTED("b45965pwcafgyy3hsxz3h3ywo"); // (d->LL.y >= d->UR.y))
789 UNSUPPORTED("5oxhd3fvp0gfmrmz12vndnjt"); // return 0;
790 UNSUPPORTED("3tcgz4dupb6kw5tdk7n3pca2l"); // return 1;
791 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
792
793 throw new UnsupportedOperationException();
794 }
795
796
797
798
799 //3 73fynz7ym6jvzqhvlj7evww7y
800 // boxf* partition (cell* cells, int ncells, int* nrects, boxf bb)
801 public static Object partition(Object... arg) {
802 UNSUPPORTED("e6wfqaorm3eq04ew3viebrrmw"); // boxf*
803 UNSUPPORTED("6tl2sd3xvb9xj27ba3ekerljs"); // partition (cell* cells, int ncells, int* nrects, boxf bb)
804 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
805 UNSUPPORTED("5a9fu6e10ez4wfuzd6drz5wqj"); // int nsegs = 4*(ncells+1);
806 UNSUPPORTED("8wy6s9fpdi1b5ozj26nvgi5k8"); // segment_t* segs = (segment_t*)gmalloc((nsegs+1)*sizeof(segment_t));
807 UNSUPPORTED("56aa5hinuuh4nm3lzmpzutm67"); // int* permute = (int*)zmalloc((nsegs+1)*sizeof(int));
808 UNSUPPORTED("79evy8eevd0rueiuu9nwedmmd"); // int hd_size, vd_size;
809 UNSUPPORTED("377uv2ijmy274yxftumax5tc"); // int i, j, cnt = 0;
810 UNSUPPORTED("aset1r6i7s8ess7vp2yh2hy3l"); // boxf* rs;
811 UNSUPPORTED("bxa465e0rk3cso7kp0a5dkzjk"); // int ntraps = (5*(nsegs)+1);
812 UNSUPPORTED("er46tt5i0x6c3jxkq7mwoku1i"); // trap_t* trs = (trap_t*)gmalloc((ntraps)*sizeof(trap_t));
813 UNSUPPORTED("afztmb3ryx5mnwhx57hubf04c"); // boxf* hor_decomp = (boxf*)zmalloc((ntraps)*sizeof(boxf));
814 UNSUPPORTED("57drcp2w6xycpft0alhizl1jb"); // boxf* vert_decomp = (boxf*)zmalloc((ntraps)*sizeof(boxf));
815 UNSUPPORTED("1k4qbp811phcxky1im1ceolu8"); // int nt;
816 UNSUPPORTED("4x4e3wgmpgyp48r9d918kpji2"); // /* fprintf (stderr, "cells = %d segs = %d traps = %d\n", ncells, nsegs, ntraps); */
817 UNSUPPORTED("3aznlcy8m96vtolzl06u5su27"); // genSegments (cells, ncells, bb, segs, 0);
818 UNSUPPORTED("cc0cvkd217k2gs1dd318mzfup"); // srand(173);
819 UNSUPPORTED("1icg2pbsojr5i5uz47hr32q6g"); // generateRandomOrdering (nsegs, permute);
820 UNSUPPORTED("diwoovfk15pa3cutfdespebi4"); // nt = construct_trapezoids(nsegs, segs, permute, ntraps, trs);
821 UNSUPPORTED("9y24uilj6sd8c40w65qz24w28"); // /* fprintf (stderr, "hor traps = %d\n", nt); */
822 UNSUPPORTED("bywih9homfisgvn30fa9ylam6"); // hd_size = monotonate_trapezoids (nsegs, segs, trs, 0, hor_decomp);
823 UNSUPPORTED("br66y4yenl0hukxxeblvw92wg"); // genSegments (cells, ncells, bb, segs, 1);
824 UNSUPPORTED("1icg2pbsojr5i5uz47hr32q6g"); // generateRandomOrdering (nsegs, permute);
825 UNSUPPORTED("diwoovfk15pa3cutfdespebi4"); // nt = construct_trapezoids(nsegs, segs, permute, ntraps, trs);
826 UNSUPPORTED("nklu5u660tkq7hgg1skeyos0"); // /* fprintf (stderr, "ver traps = %d\n", nt); */
827 UNSUPPORTED("aan563s5w2u32ftofra38kc7f"); // vd_size = monotonate_trapezoids (nsegs, segs, trs, 1, vert_decomp);
828 UNSUPPORTED("3tjm1uhdfv0fgkihdgxfbtp2k"); // rs = (boxf*)zmalloc((hd_size*vd_size)*sizeof(boxf));
829 UNSUPPORTED("1rg2b95x8evw81ge2jwloma9y"); // for (i=0; i<vd_size; i++)
830 UNSUPPORTED("deh27dmdimq7xjse31ugm10q2"); // for (j=0; j<hd_size; j++)
831 UNSUPPORTED("ecs2boj9ol0jad85kohtrmhjn"); // if (rectIntersect(&rs[cnt], &vert_decomp[i], &hor_decomp[j]))
832 UNSUPPORTED("e582tvavmpq7rmvpljjzzogkb"); // cnt++;
833 UNSUPPORTED("3r567j02zez92pbf1xosyruuy"); // rs = RALLOC (cnt, rs, boxf);
834 UNSUPPORTED("864f5ylvxgoy5rwmwl4pstg2p"); // free (segs);
835 UNSUPPORTED("cw72bzwepetjgucravr0r4tes"); // free (permute);
836 UNSUPPORTED("fe68055ozba4x8hu6folhq63"); // free (trs);
837 UNSUPPORTED("1bxw4aid8f0ujf72zwkuybw96"); // free (hor_decomp);
838 UNSUPPORTED("a2xs0v27ec23bhvf4kay6bu6b"); // free (vert_decomp);
839 UNSUPPORTED("3pwrekbwa61rwk7qtiod6xaax"); // *nrects = cnt;
840 UNSUPPORTED("ejswo03ycqos8e6zlteyjobpz"); // return rs;
841 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
842
843 throw new UnsupportedOperationException();
844 }
845
846
847 }