Debian Codegraph @

src/gen/lib/common/splines__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.common;
47 import static gen.lib.cgraph.edge__c.aghead;
48 import static gen.lib.cgraph.edge__c.agtail;
49 import static gen.lib.cgraph.obj__c.agraphof;
50 import static gen.lib.common.arrows__c.arrowEndClip;
51 import static gen.lib.common.arrows__c.arrowStartClip;
52 import static gen.lib.common.arrows__c.arrow_flags;
53 import static gen.lib.common.emit__c.update_bb_bz;
54 import static gen.lib.common.shapes__c.resolvePort;
55 import static gen.lib.common.utils__c.Bezier;
56 import static gen.lib.common.utils__c.dotneato_closest;
57 import static smetana.core.JUtils.EQ;
58 import static smetana.core.JUtilsDebug.ENTERING;
59 import static smetana.core.JUtilsDebug.LEAVING;
60 import static smetana.core.Macro.ABS;
61 import static smetana.core.Macro.ALLOC_ST_bezier;
62 import static smetana.core.Macro.APPROXEQPT;
63 import static smetana.core.Macro.ED_edge_type;
64 import static smetana.core.Macro.ED_head_port;
65 import static smetana.core.Macro.ED_label;
66 import static smetana.core.Macro.ED_spl;
67 import static smetana.core.Macro.ED_tail_port;
68 import static smetana.core.Macro.ED_to_orig;
69 import static smetana.core.Macro.GD_bb;
70 import static smetana.core.Macro.GD_flags;
71 import static smetana.core.Macro.GD_flip;
72 import static smetana.core.Macro.MAX;
73 import static smetana.core.Macro.MILLIPOINT;
74 import static smetana.core.Macro.MIN;
75 import static smetana.core.Macro.N;
76 import static smetana.core.Macro.ND_coord;
77 import static smetana.core.Macro.ND_node_type;
78 import static smetana.core.Macro.ND_order;
79 import static smetana.core.Macro.ND_rank;
80 import static smetana.core.Macro.ND_rw;
81 import static smetana.core.Macro.ND_shape;
82 import static smetana.core.Macro.NOT;
83 import static smetana.core.Macro.NOTI;
84 import static smetana.core.Macro.UNSUPPORTED;
85 import h.ST_Agedge_s;
86 import h.ST_Agnode_s;
87 import h.ST_Agraph_s;
88 import h.ST_bezier;
89 import h.ST_boxf;
90 import h.ST_inside_t;
91 import h.ST_path;
92 import h.ST_pathend_t;
93 import h.ST_pointf;
94 import h.ST_splineInfo;
95 import h.ST_splines;
96 import h.ST_textlabel_t;
97 import smetana.core.CFunction;
98 import smetana.core.MutableDouble;
99 import smetana.core.__ptr__;
100
101 public class splines__c {
102 //1 2digov3edok6d5srhgtlmrycs
103 // extern lt_symlist_t lt_preloaded_symbols[]
104
105
106 //1 baedz5i9est5csw3epz3cv7z
107 // typedef Ppoly_t Ppolyline_t
108
109
110 //1 9k44uhd5foylaeoekf3llonjq
111 // extern Dtmethod_t* Dtset
112
113
114 //1 1ahfywsmzcpcig2oxm7pt9ihj
115 // extern Dtmethod_t* Dtbag
116
117
118 //1 anhghfj3k7dmkudy2n7rvt31v
119 // extern Dtmethod_t* Dtoset
120
121
122 //1 5l6oj1ux946zjwvir94ykejbc
123 // extern Dtmethod_t* Dtobag
124
125
126 //1 2wtf222ak6cui8cfjnw6w377z
127 // extern Dtmethod_t* Dtlist
128
129
130 //1 d1s1s6ibtcsmst88e3057u9r7
131 // extern Dtmethod_t* Dtstack
132
133
134 //1 axa7mflo824p6fspjn1rdk0mt
135 // extern Dtmethod_t* Dtqueue
136
137
138 //1 ega812utobm4xx9oa9w9ayij6
139 // extern Dtmethod_t* Dtdeque
140
141
142 //1 cyfr996ur43045jv1tjbelzmj
143 // extern Dtmethod_t* Dtorder
144
145
146 //1 wlofoiftbjgrrabzb2brkycg
147 // extern Dtmethod_t* Dttree
148
149
150 //1 12bds94t7voj7ulwpcvgf6agr
151 // extern Dtmethod_t* Dthash
152
153
154 //1 9lqknzty480cy7zsubmabkk8h
155 // extern Dtmethod_t _Dttree
156
157
158 //1 bvn6zkbcp8vjdhkccqo1xrkrb
159 // extern Dtmethod_t _Dthash
160
161
162 //1 9lidhtd6nsmmv3e7vjv9e10gw
163 // extern Dtmethod_t _Dtlist
164
165
166 //1 34ujfamjxo7xn89u90oh2k6f8
167 // extern Dtmethod_t _Dtqueue
168
169
170 //1 3jy4aceckzkdv950h89p4wjc8
171 // extern Dtmethod_t _Dtstack
172
173
174 //1 8dfqgf3u1v830qzcjqh9o8ha7
175 // extern Agmemdisc_t AgMemDisc
176
177
178 //1 18k2oh2t6llfsdc5x0wlcnby8
179 // extern Agiddisc_t AgIdDisc
180
181
182 //1 a4r7hi80gdxtsv4hdoqpyiivn
183 // extern Agiodisc_t AgIoDisc
184
185
186 //1 bnzt5syjb7mgeru19114vd6xx
187 // extern Agdisc_t AgDefaultDisc
188
189
190 //1 35y2gbegsdjilegaribes00mg
191 // extern Agdesc_t Agdirected, Agstrictdirected, Agundirected, Agstrictundirected
192
193
194 //1 c2rygslq6bcuka3awmvy2b3ow
195 // typedef Agsubnode_t Agnoderef_t
196
197
198 //1 xam6yv0dcsx57dtg44igpbzn
199 // typedef Dtlink_t Agedgeref_t
200
201
202 //1 nye6dsi1twkbddwo9iffca1j
203 // extern char *Version
204
205
206 //1 65mu6k7h7lb7bx14jpiw7iyxr
207 // extern char **Files
208
209
210 //1 2rpjdzsdyrvomf00zcs3u3dyn
211 // extern const char **Lib
212
213
214 //1 6d2f111lntd2rsdt4gswh5909
215 // extern char *CmdName
216
217
218 //1 a0ltq04fpeg83soa05a2fkwb2
219 // extern char *specificFlags
220
221
222 //1 1uv30qeqq2jh6uznlr4dziv0y
223 // extern char *specificItems
224
225
226 //1 7i4hkvngxe3x7lmg5h6b3t9g3
227 // extern char *Gvfilepath
228
229
230 //1 9jp96pa73kseya3w6sulxzok6
231 // extern char *Gvimagepath
232
233
234 //1 40ylumfu7mrvawwf4v2asvtwk
235 // extern unsigned char Verbose
236
237
238 //1 93st8awjy1z0h07n28qycbaka
239 // extern unsigned char Reduce
240
241
242 //1 f2vs67ts992erf8onwfglurzp
243 // extern int MemTest
244
245
246 //1 c6f8whijgjwwagjigmxlwz3gb
247 // extern char *HTTPServerEnVar
248
249
250 //1 cp4hzj7p87m7arw776d3bt7aj
251 // extern char *Output_file_name
252
253
254 //1 a3rqagofsgraie6mx0krzkgsy
255 // extern int graphviz_errors
256
257
258 //1 5up05203r4kxvjn1m4njcgq5x
259 // extern int Nop
260
261
262 //1 umig46cco431x14b3kosde2t
263 // extern double PSinputscale
264
265
266 //1 52bj6v8fqz39khasobljfukk9
267 // extern int Syntax_errors
268
269
270 //1 9ekf2ina8fsjj6y6i0an6somj
271 // extern int Show_cnt
272
273
274 //1 38di5qi3nkxkq65onyvconk3r
275 // extern char** Show_boxes
276
277
278 //1 6ri6iu712m8mpc7t2670etpcw
279 // extern int CL_type
280
281
282 //1 bomxiw3gy0cgd1ydqtek7fpxr
283 // extern unsigned char Concentrate
284
285
286 //1 cqy3gqgcq8empdrbnrhn84058
287 // extern double Epsilon
288
289
290 //1 64slegfoouqeg0rmbyjrm8wgr
291 // extern int MaxIter
292
293
294 //1 88wdinpnmfs4mab4aw62yb0bg
295 // extern int Ndim
296
297
298 //1 8bbad3ogcelqnnvo5br5s05gq
299 // extern int State
300
301
302 //1 17rnd8q45zclfn68qqst2vxxn
303 // extern int EdgeLabelsDone
304
305
306 //1 ymx1z4s8cznjifl2d9f9m8jr
307 // extern double Initial_dist
308
309
310 //1 a33bgl0c3uqb3trx419qulj1x
311 // extern double Damping
312
313
314 //1 d9lvrpjg1r0ojv40pod1xwk8n
315 // extern int Y_invert
316
317
318 //1 71efkfs77q5tq9ex6y0f4kanh
319 // extern int GvExitOnUsage
320
321
322 //1 4xy2dkdkv0acs2ue9eca8hh2e
323 // extern Agsym_t *G_activepencolor, *G_activefillcolor, *G_selectedpencolor, *G_selectedfillcolor, *G_visitedpencolor, *G_visitedfillcolor, *G_deletedpencolor, *G_deletedfillcolor, *G_ordering, *G_peripheries, *G_penwidth, *G_gradientangle, *G_margin
324
325
326 //1 9js5gxgzr74eakgtfhnbws3t9
327 // extern Agsym_t *N_height, *N_width, *N_shape, *N_color, *N_fillcolor, *N_activepencolor, *N_activefillcolor, *N_selectedpencolor, *N_selectedfillcolor, *N_visitedpencolor, *N_visitedfillcolor, *N_deletedpencolor, *N_deletedfillcolor, *N_fontsize, *N_fontname, *N_fontcolor, *N_margin, *N_label, *N_xlabel, *N_nojustify, *N_style, *N_showboxes, *N_sides, *N_peripheries, *N_ordering, *N_orientation, *N_skew, *N_distortion, *N_fixed, *N_imagescale, *N_layer, *N_group, *N_comment, *N_vertices, *N_z, *N_penwidth, *N_gradientangle
328
329
330 //1 anqllp9sj7wo45w6bm11j8trn
331 // extern Agsym_t *E_weight, *E_minlen, *E_color, *E_fillcolor, *E_activepencolor, *E_activefillcolor, *E_selectedpencolor, *E_selectedfillcolor, *E_visitedpencolor, *E_visitedfillcolor, *E_deletedpencolor, *E_deletedfillcolor, *E_fontsize, *E_fontname, *E_fontcolor, *E_label, *E_xlabel, *E_dir, *E_style, *E_decorate, *E_showboxes, *E_arrowsz, *E_constr, *E_layer, *E_comment, *E_label_float, *E_samehead, *E_sametail, *E_arrowhead, *E_arrowtail, *E_headlabel, *E_taillabel, *E_labelfontsize, *E_labelfontname, *E_labelfontcolor, *E_labeldistance, *E_labelangle, *E_tailclip, *E_headclip, *E_penwidth
332
333
334 //1 bh0z9puipqw7gymjd5h5b8s6i
335 // extern struct fdpParms_s* fdp_parms
336
337
338
339
340 //3 ciez0pfggxdljedzsbklq49f0
341 // static inline point pointof(int x, int y)
342 public static Object pointof(Object... arg) {
343 UNSUPPORTED("8e4tj258yvfq5uhsdpk37n5eq"); // static inline point pointof(int x, int y)
344 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
345 UNSUPPORTED("c0j3k9xv06332q98k2pgpacto"); // point r;
346 UNSUPPORTED("12jimkrzqxavaie0cpapbx18c"); // r.x = x;
347 UNSUPPORTED("7ivmviysahgsc5nn9gtp7q2if"); // r.y = y;
348 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
349 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
350
351 throw new UnsupportedOperationException();
352 }
353
354
355
356
357 //3 c1s4k85p1cdfn176o3uryeros
358 // static inline pointf pointfof(double x, double y)
359 public static ST_pointf pointfof(double x, double y) {
360 // WARNING!! STRUCT
361 return pointfof_w_(x, y).copy();
362 }
363 private static ST_pointf pointfof_w_(double x, double y) {
364 ENTERING("c1s4k85p1cdfn176o3uryeros","pointfof");
365 try {
366 final ST_pointf r = new ST_pointf();
367 r.setDouble("x", x);
368 r.setDouble("y", y);
369 return r;
370 } finally {
371 LEAVING("c1s4k85p1cdfn176o3uryeros","pointfof");
372 }
373 }
374
375
376
377
378 //3 7cufnfitrh935ew093mw0i4b7
379 // static inline box boxof(int llx, int lly, int urx, int ury)
380 public static Object boxof(Object... arg) {
381 UNSUPPORTED("3lzesfdd337h31jrlib1czocm"); // static inline box boxof(int llx, int lly, int urx, int ury)
382 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
383 UNSUPPORTED("52u27kayecy1i1e8bbo8f7s9r"); // box b;
384 UNSUPPORTED("cylhjlutoc0sc0uy7g98m9fb8"); // b.LL.x = llx, b.LL.y = lly;
385 UNSUPPORTED("242of6revxzx8hpe7yerrchz6"); // b.UR.x = urx, b.UR.y = ury;
386 UNSUPPORTED("2vmm1j57brhn455f8f3iyw6mo"); // return b;
387 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
388
389 throw new UnsupportedOperationException();
390 }
391
392
393
394
395
396
397
398
399 //3 1n5xl70wxuabyf97mclvilsm6
400 // static inline point add_point(point p, point q)
401 public static Object add_point(Object... arg) {
402 UNSUPPORTED("6iamka1fx8fk1rohzzse8phte"); // static inline point add_point(point p, point q)
403 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
404 UNSUPPORTED("c0j3k9xv06332q98k2pgpacto"); // point r;
405 UNSUPPORTED("3n2sizjd0civbzm6iq7su1s2p"); // r.x = p.x + q.x;
406 UNSUPPORTED("65ygdo31w09i5i6bd2f7azcd3"); // r.y = p.y + q.y;
407 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
408 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
409
410 throw new UnsupportedOperationException();
411 }
412
413
414
415
416 //3 arrsbik9b5tnfcbzsm8gr2chx
417 // static inline pointf add_pointf(pointf p, pointf q)
418 public static ST_pointf add_pointf(final ST_pointf p, final ST_pointf q) {
419 // WARNING!! STRUCT
420 return add_pointf_w_(p.copy(), q.copy()).copy();
421 }
422 private static ST_pointf add_pointf_w_(final ST_pointf p, final ST_pointf q) {
423 ENTERING("arrsbik9b5tnfcbzsm8gr2chx","add_pointf");
424 try {
425 final ST_pointf r = new ST_pointf();
426 r.setDouble("x", p.x + q.x);
427 r.setDouble("y", p.y + q.y);
428 return r;
429 } finally {
430 LEAVING("arrsbik9b5tnfcbzsm8gr2chx","add_pointf");
431 }
432 }
433
434
435
436
437 //3 ai2dprak5y6obdsflguh5qbd7
438 // static inline point sub_point(point p, point q)
439 public static Object sub_point(Object... arg) {
440 UNSUPPORTED("cd602849h0bce8lu9xegka0ia"); // static inline point sub_point(point p, point q)
441 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
442 UNSUPPORTED("c0j3k9xv06332q98k2pgpacto"); // point r;
443 UNSUPPORTED("4q4q9dveah93si8ajfv59gz27"); // r.x = p.x - q.x;
444 UNSUPPORTED("9f90ik0o2yqhanzntpy3d2ydy"); // r.y = p.y - q.y;
445 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
446 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
447
448 throw new UnsupportedOperationException();
449 }
450
451
452
453
454 //3 16f6pyogcv3j7n2p0n8giqqgh
455 // static inline pointf sub_pointf(pointf p, pointf q)
456 public static Object sub_pointf(Object... arg) {
457 UNSUPPORTED("dmufj44lddsnj0wjyxsg2fcso"); // static inline pointf sub_pointf(pointf p, pointf q)
458 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
459 UNSUPPORTED("cvexv13y9fq49v0j4d5t4cm9f"); // pointf r;
460 UNSUPPORTED("4q4q9dveah93si8ajfv59gz27"); // r.x = p.x - q.x;
461 UNSUPPORTED("9f90ik0o2yqhanzntpy3d2ydy"); // r.y = p.y - q.y;
462 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
463 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
464
465 throw new UnsupportedOperationException();
466 }
467
468
469
470
471 //3 9k50jgrhc4f9824vf8ony74rw
472 // static inline point mid_point(point p, point q)
473 public static Object mid_point(Object... arg) {
474 UNSUPPORTED("evy44tdsmu3erff9dp2x835u2"); // static inline point mid_point(point p, point q)
475 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
476 UNSUPPORTED("c0j3k9xv06332q98k2pgpacto"); // point r;
477 UNSUPPORTED("1a6p6fm57o0wt5ze2btsx06c7"); // r.x = (p.x + q.x) / 2;
478 UNSUPPORTED("1kbj5tgdmfi6kf4jgg6skhr6e"); // r.y = (p.y + q.y) / 2;
479 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
480 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
481
482 throw new UnsupportedOperationException();
483 }
484
485
486
487
488 //3 59c4f7im0ftyowhnzzq2v9o1x
489 // static inline pointf mid_pointf(pointf p, pointf q)
490 public static Object mid_pointf(Object... arg) {
491 UNSUPPORTED("381o63o9kb04d7gzg65v0r3q"); // static inline pointf mid_pointf(pointf p, pointf q)
492 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
493 UNSUPPORTED("cvexv13y9fq49v0j4d5t4cm9f"); // pointf r;
494 UNSUPPORTED("c5vboetlr3mf43wns7iik6m1w"); // r.x = (p.x + q.x) / 2.;
495 UNSUPPORTED("bcdf562ldr3bjn78hcay5xd63"); // r.y = (p.y + q.y) / 2.;
496 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
497 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
498
499 throw new UnsupportedOperationException();
500 }
501
502
503
504
505 //3 5r18p38gisvcx3zsvbb9saixx
506 // static inline pointf interpolate_pointf(double t, pointf p, pointf q)
507 public static Object interpolate_pointf(Object... arg) {
508 UNSUPPORTED("894yimn33kmtm454llwdaotu8"); // static inline pointf interpolate_pointf(double t, pointf p, pointf q)
509 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
510 UNSUPPORTED("ef2acl8wa2ooqcb5vz3098maz"); // pointf r;
511 UNSUPPORTED("5tpwuyf5iidesy80v8o4nwkmk"); // r.x = p.x + t * (q.x - p.x);
512 UNSUPPORTED("ewnrc5uloj3w5jbmsjcn3wja0"); // r.y = p.y + t * (q.y - p.y);
513 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
514 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
515
516 throw new UnsupportedOperationException();
517 }
518
519
520
521
522 //3 bxzrv2ghq04qk5cbyy68s4mol
523 // static inline point exch_xy(point p)
524 public static Object exch_xy(Object... arg) {
525 UNSUPPORTED("2vxya0v2fzlv5e0vjaa8d414"); // static inline point exch_xy(point p)
526 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
527 UNSUPPORTED("c0j3k9xv06332q98k2pgpacto"); // point r;
528 UNSUPPORTED("60cojdwc2h7f0m51s9jdwvup7"); // r.x = p.y;
529 UNSUPPORTED("evp2x66oa4s1tlnc0ytxq2qbq"); // r.y = p.x;
530 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
531 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
532
533 throw new UnsupportedOperationException();
534 }
535
536
537
538
539 //3 9lt3e03tac6h6sydljrcws8fd
540 // static inline pointf exch_xyf(pointf p)
541 public static Object exch_xyf(Object... arg) {
542 UNSUPPORTED("8qamrobrqi8jsvvfrxkimrsnw"); // static inline pointf exch_xyf(pointf p)
543 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
544 UNSUPPORTED("cvexv13y9fq49v0j4d5t4cm9f"); // pointf r;
545 UNSUPPORTED("60cojdwc2h7f0m51s9jdwvup7"); // r.x = p.y;
546 UNSUPPORTED("evp2x66oa4s1tlnc0ytxq2qbq"); // r.y = p.x;
547 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
548 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
549
550 throw new UnsupportedOperationException();
551 }
552
553
554
555
556 //3 8l9qhieokthntzdorlu5zn29b
557 // static inline box box_bb(box b0, box b1)
558 public static Object box_bb(Object... arg) {
559 UNSUPPORTED("36et5gmnjrby6o7bq9sgh1hx6"); // static inline box box_bb(box b0, box b1)
560 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
561 UNSUPPORTED("52u27kayecy1i1e8bbo8f7s9r"); // box b;
562 UNSUPPORTED("8mr2c9xitsqi8z1plbp7ox1hu"); // b.LL.x = MIN(b0.LL.x, b1.LL.x);
563 UNSUPPORTED("2egu55ef4u1i03nwz01k7kcrl"); // b.LL.y = MIN(b0.LL.y, b1.LL.y);
564 UNSUPPORTED("9n6ei3odbgefwfxvql9whcpe"); // b.UR.x = MAX(b0.UR.x, b1.UR.x);
565 UNSUPPORTED("19ocysbuh4pxyft2bqhyhigr1"); // b.UR.y = MAX(b0.UR.y, b1.UR.y);
566 UNSUPPORTED("2vmm1j57brhn455f8f3iyw6mo"); // return b;
567 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
568
569 throw new UnsupportedOperationException();
570 }
571
572
573
574
575 //3 clws9h3bbjm0lw3hexf8nl4c4
576 // static inline boxf boxf_bb(boxf b0, boxf b1)
577 public static Object boxf_bb(Object... arg) {
578 UNSUPPORTED("dyrqu4ww9osr9c86gqgmifcp6"); // static inline boxf boxf_bb(boxf b0, boxf b1)
579 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
580 UNSUPPORTED("c57pq0f87j6dnbcvygu7v6k84"); // boxf b;
581 UNSUPPORTED("8mr2c9xitsqi8z1plbp7ox1hu"); // b.LL.x = MIN(b0.LL.x, b1.LL.x);
582 UNSUPPORTED("2egu55ef4u1i03nwz01k7kcrl"); // b.LL.y = MIN(b0.LL.y, b1.LL.y);
583 UNSUPPORTED("9n6ei3odbgefwfxvql9whcpe"); // b.UR.x = MAX(b0.UR.x, b1.UR.x);
584 UNSUPPORTED("19ocysbuh4pxyft2bqhyhigr1"); // b.UR.y = MAX(b0.UR.y, b1.UR.y);
585 UNSUPPORTED("2vmm1j57brhn455f8f3iyw6mo"); // return b;
586 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
587
588 throw new UnsupportedOperationException();
589 }
590
591
592
593
594 //3 bit6ycxo1iqd2al92y8gkzlvb
595 // static inline box box_intersect(box b0, box b1)
596 public static Object box_intersect(Object... arg) {
597 UNSUPPORTED("34gv28cldst09bl71itjgviue"); // static inline box box_intersect(box b0, box b1)
598 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
599 UNSUPPORTED("52u27kayecy1i1e8bbo8f7s9r"); // box b;
600 UNSUPPORTED("9slu7bixuymxttjic76ha2nl2"); // b.LL.x = MAX(b0.LL.x, b1.LL.x);
601 UNSUPPORTED("3uv943c2f82yuif249pf5azob"); // b.LL.y = MAX(b0.LL.y, b1.LL.y);
602 UNSUPPORTED("74tf5h16bc9zabq3s3dyny543"); // b.UR.x = MIN(b0.UR.x, b1.UR.x);
603 UNSUPPORTED("d99gcv3i7xes7y7rqf8ii20ux"); // b.UR.y = MIN(b0.UR.y, b1.UR.y);
604 UNSUPPORTED("2vmm1j57brhn455f8f3iyw6mo"); // return b;
605 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
606
607 throw new UnsupportedOperationException();
608 }
609
610
611
612
613 //3 8gfybie7k6pgb3o1a6llgpwng
614 // static inline boxf boxf_intersect(boxf b0, boxf b1)
615 public static Object boxf_intersect(Object... arg) {
616 UNSUPPORTED("ape22b8z6jfg17gvo42hok9eb"); // static inline boxf boxf_intersect(boxf b0, boxf b1)
617 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
618 UNSUPPORTED("c57pq0f87j6dnbcvygu7v6k84"); // boxf b;
619 UNSUPPORTED("9slu7bixuymxttjic76ha2nl2"); // b.LL.x = MAX(b0.LL.x, b1.LL.x);
620 UNSUPPORTED("3uv943c2f82yuif249pf5azob"); // b.LL.y = MAX(b0.LL.y, b1.LL.y);
621 UNSUPPORTED("74tf5h16bc9zabq3s3dyny543"); // b.UR.x = MIN(b0.UR.x, b1.UR.x);
622 UNSUPPORTED("d99gcv3i7xes7y7rqf8ii20ux"); // b.UR.y = MIN(b0.UR.y, b1.UR.y);
623 UNSUPPORTED("2vmm1j57brhn455f8f3iyw6mo"); // return b;
624 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
625
626 throw new UnsupportedOperationException();
627 }
628
629
630
631
632 //3 7z8j2quq65govaaejrz7b4cvb
633 // static inline int box_overlap(box b0, box b1)
634 public static Object box_overlap(Object... arg) {
635 UNSUPPORTED("1e9k599x7ygct7r4cfdxlk9u9"); // static inline int box_overlap(box b0, box b1)
636 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
637 UNSUPPORTED("7a9wwpu7dhdphd08y1ecw54w5"); // return OVERLAP(b0, b1);
638 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
639
640 throw new UnsupportedOperationException();
641 }
642
643
644
645
646 //3 4z0suuut2acsay5m8mg9dqjdu
647 // static inline int boxf_overlap(boxf b0, boxf b1)
648 public static Object boxf_overlap(Object... arg) {
649 UNSUPPORTED("905nejsewihwhhc3bhnrz9nwo"); // static inline int boxf_overlap(boxf b0, boxf b1)
650 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
651 UNSUPPORTED("7a9wwpu7dhdphd08y1ecw54w5"); // return OVERLAP(b0, b1);
652 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
653
654 throw new UnsupportedOperationException();
655 }
656
657
658
659
660 //3 dd34swz5rmdgu3a2np2a4h1dy
661 // static inline int box_contains(box b0, box b1)
662 public static Object box_contains(Object... arg) {
663 UNSUPPORTED("aputfc30fjkvy6jx4otljaczq"); // static inline int box_contains(box b0, box b1)
664 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
665 UNSUPPORTED("87ap80vrh2a4gpprbxr33lrg3"); // return CONTAINS(b0, b1);
666 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
667
668 throw new UnsupportedOperationException();
669 }
670
671
672
673
674 //3 8laj1bspbu2i1cjd9upr7xt32
675 // static inline int boxf_contains(boxf b0, boxf b1)
676 public static Object boxf_contains(Object... arg) {
677 UNSUPPORTED("7ccnttkiwt834yfyw0evcm18v"); // static inline int boxf_contains(boxf b0, boxf b1)
678 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
679 UNSUPPORTED("87ap80vrh2a4gpprbxr33lrg3"); // return CONTAINS(b0, b1);
680 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
681
682 throw new UnsupportedOperationException();
683 }
684
685
686
687
688 //3 4wf5swkz24xx51ja2dynbycu1
689 // static inline pointf perp (pointf p)
690 public static Object perp(Object... arg) {
691 UNSUPPORTED("567wpqlg9rv63ynyvxd9sgkww"); // static inline pointf perp (pointf p)
692 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
693 UNSUPPORTED("cvexv13y9fq49v0j4d5t4cm9f"); // pointf r;
694 UNSUPPORTED("2fyydy6t6yifjsczccsb9szeg"); // r.x = -p.y;
695 UNSUPPORTED("evp2x66oa4s1tlnc0ytxq2qbq"); // r.y = p.x;
696 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
697 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
698
699 throw new UnsupportedOperationException();
700 }
701
702
703
704
705 //3 6dtlpzv4mvgzb9o0b252yweuv
706 // static inline pointf scale (double c, pointf p)
707 public static Object scale(Object... arg) {
708 UNSUPPORTED("c1ngytew34bmkdb7vps5h3dh8"); // static inline pointf scale (double c, pointf p)
709 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
710 UNSUPPORTED("cvexv13y9fq49v0j4d5t4cm9f"); // pointf r;
711 UNSUPPORTED("dznf7nac14snww4usquyd6r3r"); // r.x = c * p.x;
712 UNSUPPORTED("33kk73m8vjcux5tnjl8co2pe6"); // r.y = c * p.y;
713 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
714 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
715
716 throw new UnsupportedOperationException();
717 }
718
719
720
721
722 //3 6izm0fbkejw7odmiw4zaw1ycp
723 // static void arrow_clip(edge_t * fe, node_t * hn, pointf * ps, int *startp, int *endp, bezier * spl, splineInfo * info)
724 public static void arrow_clip(ST_Agedge_s fe, ST_Agnode_s hn, ST_pointf.Array ps, int startp[], int endp[], ST_bezier spl, ST_splineInfo info) {
725 ENTERING("6izm0fbkejw7odmiw4zaw1ycp","arrow_clip");
726 try {
727 ST_Agedge_s e;
728 int i;
729 boolean j;
730 int sflag[] = new int[]{0};
731 int eflag[] = new int[]{0};
732 for (e = fe; ED_to_orig(e)!=null; e = ED_to_orig(e));
733 if (info.ignoreSwap)
734 j = false;
735 else
736 j = (Boolean) info.swapEnds.exe(e);
737 arrow_flags(e, sflag, eflag);
738 if ((Boolean) info.splineMerge.exe(hn))
739 eflag[0] = 0;
740 if ((Boolean) info.splineMerge.exe(agtail(fe)))
741 sflag[0] = 0;
742 /* swap the two ends */
743 if (j) {
744 i = sflag[0];
745 sflag[0] = eflag[0];
746 eflag[0] = i;
747 }
748 if (info.isOrtho) {
749 UNSUPPORTED("7a3lmojyfh13d6shkviuogx2c"); // if (eflag || sflag)
750 UNSUPPORTED("dzbrwr2ulubtjkbd8j2o4yyov"); // arrowOrthoClip(e, ps, *startp, *endp, spl, sflag, eflag);
751 }
752 else {
753 if (sflag[0]!=0)
754 startp[0] =
755 arrowStartClip(e, ps, startp[0], endp[0], spl, sflag[0]);
756 if (eflag[0]!=0)
757 endp[0] =
758 arrowEndClip(e, ps, startp[0], endp[0], spl, eflag[0]);
759 }
760 } finally {
761 LEAVING("6izm0fbkejw7odmiw4zaw1ycp","arrow_clip");
762 }
763 }
764
765
766
767
768 //3 q4t1ywnk3wm1vyh5seoj7xye
769 // void bezier_clip(inside_t * inside_context, boolean(*inside) (inside_t * inside_context, pointf p), pointf * sp, boolean left_inside)
770 public static void bezier_clip(__ptr__ inside_context, __ptr__ inside, ST_pointf.Array sp, boolean left_inside) {
771 ENTERING("q4t1ywnk3wm1vyh5seoj7xye","bezier_clip");
772 try {
773 final ST_pointf.Array seg = new ST_pointf.Array( 4);
774 final ST_pointf.Array best = new ST_pointf.Array( 4);
775 final ST_pointf pt = new ST_pointf(), opt = new ST_pointf();
776 __ptr__ left, right;
777 final MutableDouble low = new MutableDouble(0), high = new MutableDouble(0);
778 double t;
779 MutableDouble idir, odir;
780 boolean found;
781 int i;
782 if (left_inside) {
783 left = null;
784 right = seg.asPtr();
785 pt.___(sp.plus(0).getStruct());
786 idir = low;
787 odir = high;
788 } else {
789 left = seg.asPtr();
790 right = null;
791 pt.___(sp.plus(3).getStruct());
792 idir = high;
793 odir = low;
794 }
795 found = false;
796 low.setValue(0.0);
797 high.setValue(1.0);
798 do {
799 opt.___(pt);
800 t = (high.getValue() + low.getValue()) / 2.0;
801 pt.___(Bezier(sp, 3, t, left, right));
802 if ((Boolean) ((CFunction)inside).exe(inside_context, pt)) {
803 idir.setValue(t);
804 } else {
805 for (i = 0; i < 4; i++)
806 best.plus(i).setStruct(seg.plus(i).getStruct());
807 found = NOT(false);
808 odir.setValue(t);
809 }
810 } while (ABS(opt.x - pt.x) > .5 || ABS(opt.y - pt.y) > .5);
811 if (found)
812 for (i = 0; i < 4; i++)
813 sp.plus(i).setStruct(best.plus(i).getStruct());
814 else
815 for (i = 0; i < 4; i++)
816 sp.plus(i).setStruct(seg.plus(i).getStruct());
817 } finally {
818 LEAVING("q4t1ywnk3wm1vyh5seoj7xye","bezier_clip");
819 }
820 }
821
822
823
824
825 //3 1fjkj1ydhtlf13pqj5r041orq
826 // static void shape_clip0(inside_t * inside_context, node_t * n, pointf curve[4], boolean left_inside)
827 public static void shape_clip0(__ptr__ inside_context, ST_Agnode_s n, ST_pointf.Array curve, boolean left_inside) {
828 ENTERING("1fjkj1ydhtlf13pqj5r041orq","shape_clip0");
829 try {
830 int i;
831 double save_real_size;
832 final ST_pointf.Array c = new ST_pointf.Array( 4);
833 save_real_size = ND_rw(n);
834 for (i = 0; i < 4; i++) {
835 c.plus(i).setDouble("x", curve.get(i).x - ND_coord(n).x);
836 c.plus(i).setDouble("y", curve.get(i).y - ND_coord(n).y);
837 }
838 bezier_clip(inside_context, ND_shape(n).fns.insidefn, c,
839 left_inside);
840 for (i = 0; i < 4; i++) {
841 curve.plus(i).setDouble("x", c.get(i).x + ND_coord(n).x);
842 curve.plus(i).setDouble("y", c.get(i).y + ND_coord(n).y);
843 }
844 ND_rw(n, save_real_size);
845 } finally {
846 LEAVING("1fjkj1ydhtlf13pqj5r041orq","shape_clip0");
847 }
848 }
849
850
851
852
853 //3 5m4auahepda0ug3e1o05gm0kf
854 // void shape_clip(node_t * n, pointf curve[4])
855 public static Object shape_clip(Object... arg) {
856 UNSUPPORTED("14nvh1wyusdizrbkaqswyz6a3"); // void shape_clip(node_t * n, pointf curve[4])
857 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
858 UNSUPPORTED("9htbadryixdqglsfxbj66m3na"); // double save_real_size;
859 UNSUPPORTED("9hp0vh92flvlgoaxmzp4h6uaq"); // boolean left_inside;
860 UNSUPPORTED("a3jcleu2wok75rpalgfjt6tte"); // pointf c;
861 UNSUPPORTED("114lbsab8twbq15luo36j31q2"); // inside_t inside_context;
862 UNSUPPORTED("eua5l3utehs8yu615w4iusufv"); // if (ND_shape(n) == NULL || ND_shape(n)->fns->insidefn == NULL)
863 UNSUPPORTED("a7fgam0j0jm7bar0mblsv3no4"); // return;
864 UNSUPPORTED("a8yyudcgedtaoi8ey9sje90ph"); // inside_context.s.n = n;
865 UNSUPPORTED("3y9eccm2tmdyx34ew24hitfqq"); // inside_context.s.bp = NULL;
866 UNSUPPORTED("27aelctxo5teujbhkeu9x73hp"); // save_real_size = ND_rw(n);
867 UNSUPPORTED("21zlezol1pqversb7b7rso1hl"); // c.x = curve[0].x - ND_coord(n).x;
868 UNSUPPORTED("dxn2z9gn2x96x83fwcba9bdme"); // c.y = curve[0].y - ND_coord(n).y;
869 UNSUPPORTED("5o23jq82y9dhpry5f9u9umk5d"); // left_inside = ND_shape(n)->fns->insidefn(&inside_context, c);
870 UNSUPPORTED("9q38fqg00ynddr6952dvaz6n3"); // ND_rw(n) = save_real_size;
871 UNSUPPORTED("w5x58kft1tdd1d2ae83yfrej"); // shape_clip0(&inside_context, n, curve, left_inside);
872 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
873
874 throw new UnsupportedOperationException();
875 }
876
877
878
879
880 //3 bdirexg1qdtophlh0ofjvsmj7
881 // bezier *new_spline(edge_t * e, int sz)
882 public static ST_bezier new_spline(ST_Agedge_s e, int sz) {
883 ENTERING("bdirexg1qdtophlh0ofjvsmj7","new_spline");
884 try {
885 ST_bezier rv;
886 while (ED_edge_type(e) != 0)
887 e = ED_to_orig(e);
888 if (ED_spl(e) == null)
889 ED_spl(e, new ST_splines());
890 ED_spl(e).list = ALLOC_ST_bezier(ED_spl(e).size + 1, ED_spl(e).list);
891 rv = (ST_bezier) ED_spl(e).list.plus(ED_spl(e).size).getPtr();
892 ED_spl(e).setInt("size", ED_spl(e).size+1);
893 rv.list = new ST_pointf.Array(sz);
894 rv.setInt("size", sz);
895 rv.setInt("sflag", 0);
896 rv.setInt("eflag", 0);
897 rv.sp.setDouble("x", 0);
898 rv.sp.setDouble("y", 0);
899 rv.ep.setDouble("x", 0);
900 rv.ep.setDouble("y", 0);
901 return rv;
902 } finally {
903 LEAVING("bdirexg1qdtophlh0ofjvsmj7","new_spline");
904 }
905 }
906
907
908
909
910 //3 duednxyuvf6xrff752uuv620f
911 // void clip_and_install(edge_t * fe, node_t * hn, pointf * ps, int pn, splineInfo * info)
912 public static void clip_and_install(ST_Agedge_s fe, ST_Agnode_s hn, ST_pointf.Array ps, int pn, ST_splineInfo info) {
913 ENTERING("duednxyuvf6xrff752uuv620f","clip_and_install");
914 try {
915 final ST_pointf p2 = new ST_pointf();
916 ST_bezier newspl;
917 ST_Agnode_s tn;
918 int start[] = new int[] {0};
919 int end[] = new int[] {0};
920 int i, clipTail=0, clipHead=0;
921 ST_Agraph_s g;
922 ST_Agedge_s orig;
923 ST_boxf tbox=null, hbox=null;
924 final ST_inside_t inside_context = new ST_inside_t();
925 tn = agtail(fe);
926 g = agraphof(tn);
927 newspl = new_spline(fe, pn);
928 for (orig = fe; ED_edge_type(orig) != 0; orig = ED_to_orig(orig));
929 /* may be a reversed flat edge */
930 if (N(info.ignoreSwap) && (ND_rank(tn) == ND_rank(hn)) && (ND_order(tn) > ND_order(hn))) {
931 ST_Agnode_s tmp;
932 tmp = hn;
933 hn = tn;
934 tn = tmp;
935 }
936 if (EQ(tn, agtail(orig))) {
937 clipTail = ED_tail_port(orig).clip;
938 clipHead = ED_head_port(orig).clip;
939 tbox = (ST_boxf) ED_tail_port(orig).bp;
940 hbox = (ST_boxf) ED_head_port(orig).bp;
941 }
942 else { /* fe and orig are reversed */
943 clipTail = ED_head_port(orig).clip;
944 clipHead = ED_tail_port(orig).clip;
945 hbox = (ST_boxf) ED_tail_port(orig).bp;
946 tbox = (ST_boxf) ED_head_port(orig).bp;
947 }
948 /* spline may be interior to node */
949 if(clipHead!=0 && ND_shape(tn)!=null && ND_shape(tn).fns.insidefn!=null) {
950 inside_context.setPtr("s.n", tn);
951 inside_context.setPtr("s.bp", tbox);
952 for (start[0] = 0; start[0] < pn - 4; start[0] += 3) {
953 p2.setDouble("x", ps.get(start[0] + 3).x - ND_coord(tn).x);
954 p2.setDouble("y", ps.get(start[0] + 3).y - ND_coord(tn).y);
955 if (((Boolean)ND_shape(tn).fns.insidefn.exe(inside_context, p2)) == false)
956 break;
957 }
958 shape_clip0(inside_context, tn, ps.plus(start[0]), NOT(false));
959 } else
960 start[0] = 0;
961 if(clipHead!=0 && ND_shape(hn)!=null && ND_shape(hn).fns.insidefn!=null) {
962 inside_context.setPtr("s.n", hn);
963 inside_context.setPtr("s.bp", hbox);
964 for (end[0] = pn - 4; end[0] > 0; end[0] -= 3) {
965 p2.setDouble("x", ps.get(end[0]).x - ND_coord(hn).x);
966 p2.setDouble("y", ps.get(end[0]).y - ND_coord(hn).y);
967 if (((Boolean)ND_shape(hn).fns.insidefn.exe(inside_context, p2)) == false)
968 break;
969 }
970 shape_clip0(inside_context, hn, ps.plus(end[0]), false);
971 } else
972 end[0] = pn - 4;
973 for (; start[0] < pn - 4; start[0] += 3)
974 if (N(APPROXEQPT(ps.plus(start[0]).getPtr(), ps.plus(start[0] + 3).getPtr(), MILLIPOINT)))
975 break;
976 for (; end[0] > 0; end[0] -= 3)
977 if (N(APPROXEQPT(ps.plus(end[0]).getPtr(), ps.plus(end[0] + 3).getPtr(), MILLIPOINT)))
978 break;
979 arrow_clip(fe, hn, ps, start, end, newspl, info);
980 for (i = start[0]; i < end[0] + 4; ) {
981 final ST_pointf.Array cp = new ST_pointf.Array( 4);
982 newspl.list.get(i - start[0]).setStruct(ps.plus(i).getStruct());
983 cp.plus(0).setStruct(ps.plus(i).getStruct());
984 i++;
985 if ( i >= end[0] + 4)
986 break;
987 newspl.list.get(i - start[0]).setStruct(ps.plus(i).getStruct());
988 cp.plus(1).setStruct(ps.plus(i).getStruct());
989 i++;
990 newspl.list.get(i - start[0]).setStruct(ps.plus(i).getStruct());
991 cp.plus(2).setStruct(ps.plus(i).getStruct());
992 i++;
993 cp.plus(3).setStruct(ps.plus(i).getStruct());
994 update_bb_bz(GD_bb(g), cp);
995 }
996 newspl.setInt("size", end[0] - start[0] + 4);
997 } finally {
998 LEAVING("duednxyuvf6xrff752uuv620f","clip_and_install");
999 }
1000 }
1001
1002
1003
1004
1005 //3 25ndy15kghfrogsv0b0o0xkgv
1006 // static double conc_slope(node_t* n)
1007 public static double conc_slope(ST_Agnode_s n) {
1008 ENTERING("25ndy15kghfrogsv0b0o0xkgv","conc_slope");
1009 try {
1010 UNSUPPORTED("e388y3vtrp8f6spgh9q4wx37w"); // static double
1011 UNSUPPORTED("4yxpid2dxvb387487trn1umlw"); // conc_slope(node_t* n)
1012 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
1013 UNSUPPORTED("9669xuley9dxylr00ex9kbzg7"); // double s_in, s_out, m_in, m_out;
1014 UNSUPPORTED("wfd0ht8utdwwqctf47l4dtrz"); // int cnt_in, cnt_out;
1015 UNSUPPORTED("2bghyit203pd6xw2ihhenzyn8"); // pointf p;
1016 UNSUPPORTED("5gypxs09iuryx5a2eho9lgdcp"); // edge_t *e;
1017 UNSUPPORTED("apjf2mf9d7qj0eo9o2x5yli2e"); // s_in = s_out = 0.0;
1018 UNSUPPORTED("7mc6shwmvz25mz9inwj97lqk6"); // for (cnt_in = 0; (e = ND_in(n).list[cnt_in]); cnt_in++)
1019 UNSUPPORTED("cb1h5cx7oxhtdkm5l0k6qrx2z"); // s_in += ND_coord(agtail(e)).x;
1020 UNSUPPORTED("hjfqfqmtdqdrp9z80ebrpthm"); // for (cnt_out = 0; (e = ND_out(n).list[cnt_out]); cnt_out++)
1021 UNSUPPORTED("2iidrr9ljv8ap9s2g6gj3q1o3"); // s_out += ND_coord(aghead(e)).x;
1022 UNSUPPORTED("2yeio9xc9oorju7qqnhilwujx"); // p.x = ND_coord(n).x - (s_in / cnt_in);
1023 UNSUPPORTED("87jzl9isj7w9kgyr05inw33s5"); // p.y = ND_coord(n).y - ND_coord(agtail(ND_in(n).list[0])).y;
1024 UNSUPPORTED("6y2pc9af2xxdqajbpykvca9eg"); // m_in = atan2(p.y, p.x);
1025 UNSUPPORTED("ruwz5svpk33ucfgs4wx0xolm"); // p.x = (s_out / cnt_out) - ND_coord(n).x;
1026 UNSUPPORTED("8vif8c37lbo7ww4vwfrcxgpmr"); // p.y = ND_coord(aghead(ND_out(n).list[0])).y - ND_coord(n).y;
1027 UNSUPPORTED("ez8z3gbteryfhktbqkwmzhhzs"); // m_out = atan2(p.y, p.x);
1028 UNSUPPORTED("ej1ftaglexa47x955elb88yh2"); // return ((m_in + m_out) / 2.0);
1029 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
1030
1031 throw new UnsupportedOperationException();
1032 } finally {
1033 LEAVING("25ndy15kghfrogsv0b0o0xkgv","conc_slope");
1034 }
1035 }
1036
1037
1038
1039
1040 //3 egq4f4tmy1dhyj6jpj92r7xhu
1041 // void add_box(path * P, boxf b)
1042 public static void add_box(ST_path P, final ST_boxf b) {
1043 // WARNING!! STRUCT
1044 add_box_w_(P, b.copy());
1045 }
1046 private static void add_box_w_(ST_path P, final ST_boxf b) {
1047 ENTERING("egq4f4tmy1dhyj6jpj92r7xhu","add_box");
1048 try {
1049 if (b.LL.x < b.UR.x && b.LL.y < b.UR.y)
1050 {
1051 P.boxes[P.nbox].setStruct(b);
1052 P.nbox = P.nbox+1;
1053 }
1054 } finally {
1055 LEAVING("egq4f4tmy1dhyj6jpj92r7xhu","add_box");
1056 }
1057 }
1058
1059
1060
1061
1062 //3 7pc43ifcw5g56449d101qf590
1063 // void beginpath(path * P, edge_t * e, int et, pathend_t * endp, boolean merge)
1064 public static void beginpath(ST_path P, ST_Agedge_s e, int et, ST_pathend_t endp, boolean merge) {
1065 ENTERING("7pc43ifcw5g56449d101qf590","beginpath");
1066 try {
1067 int side, mask;
1068 ST_Agnode_s n;
1069 CFunction pboxfn;
1070 n = agtail(e);
1071 if (ED_tail_port(e).dyna!=0)
1072 ED_tail_port(e, resolvePort(agtail(e), aghead(e), ED_tail_port(e)));
1073 if (ND_shape(n)!=null)
1074 pboxfn = (CFunction) ND_shape(n).fns.pboxfn;
1075 else
1076 pboxfn = null;
1077 P.start.setStruct("p", add_pointf(ND_coord(n), (ST_pointf) ED_tail_port(e).p));
1078 if (merge) {
1079 /*P->start.theta = - M_PI / 2; */
1080 P.start.setDouble("theta", conc_slope(agtail(e)));
1081 P.start.constrained= NOTI(false);
1082 } else {
1083 if (ED_tail_port(e).constrained!=0) {
1084 P.start.setDouble("theta", ED_tail_port(e).theta);
1085 P.start.constrained= NOTI(false);
1086 } else
1087 P.start.constrained= 0;
1088 }
1089 P.nbox = 0;
1090 P.setPtr("data", e);
1091 endp.setStruct("np", P.start.p);
1092 if ((et == 1) && (ND_node_type(n) == 0) && ((side = ED_tail_port(e).side)!=0)) {
1093 UNSUPPORTED("a7lrhlfwr0y475aqjk6abhb3b"); // edge_t* orig;
1094 UNSUPPORTED("ew7nyfe712nsiphifeztwxfop"); // boxf b0, b = endp->nb;
1095 UNSUPPORTED("ait3wtnnvt134z2k87lvhq4ek"); // if (side & (1<<2)) {
1096 UNSUPPORTED("1r4lctdj9z1ivlz3uqpcj1yzf"); // endp->sidemask = (1<<2);
1097 UNSUPPORTED("arq09sf82lsjuxwfkesprcrcv"); // if (P->start.p.x < ND_coord(n).x) { /* go left */
1098 UNSUPPORTED("bj4z8gwgs6j5fax8k6l3u6mv3"); // b0.LL.x = b.LL.x - 1;
1099 UNSUPPORTED("54rmdm0xwy361tjs4aj6cv401"); // /* b0.LL.y = ND_coord(n).y + HT2(n); */
1100 UNSUPPORTED("11ax5pxz4q2uh0nzsrs1qs7ck"); // b0.LL.y = P->start.p.y;
1101 UNSUPPORTED("5xsapgq04e1hslq2835500q6k"); // b0.UR.x = b.UR.x;
1102 UNSUPPORTED("9ro8mx52kgsoogvlgfubgn4p0"); // b0.UR.y = ND_coord(n).y + (ND_ht(n)/2) + GD_ranksep(agraphof(n))/2;
1103 UNSUPPORTED("6p2nw1nh0qwn5ro3dltmd6w6c"); // b.UR.x = ND_coord(n).x - ND_lw(n) - (2-2);
1104 UNSUPPORTED("czvxm3loj0won7ye2b3xrfbv4"); // b.UR.y = b0.LL.y;
1105 UNSUPPORTED("1f4u492auf4ku7ik170e86iy3"); // b.LL.y = ND_coord(n).y - (ND_ht(n)/2);
1106 UNSUPPORTED("w9wsmby4dawn9npux1jrd9gl"); // b.LL.x -= 1;
1107 UNSUPPORTED("2f8usay82b128dq0sk4aqzw3h"); // endp->boxes[0] = b0;
1108 UNSUPPORTED("2diqdwueoy5oizl5kmbz6uyi8"); // endp->boxes[1] = b;
1109 UNSUPPORTED("6t98dcecgbvbvtpycwiq2ynnj"); // }
1110 UNSUPPORTED("6q044im7742qhglc4553noina"); // else {
1111 UNSUPPORTED("7sk0msbospwpwupzwpu8v87qt"); // b0.LL.x = b.LL.x;
1112 UNSUPPORTED("11ax5pxz4q2uh0nzsrs1qs7ck"); // b0.LL.y = P->start.p.y;
1113 UNSUPPORTED("54rmdm0xwy361tjs4aj6cv401"); // /* b0.LL.y = ND_coord(n).y + HT2(n); */
1114 UNSUPPORTED("4e5ydpfmxn1wuhnp78arn3f9x"); // b0.UR.x = b.UR.x+1;
1115 UNSUPPORTED("9ro8mx52kgsoogvlgfubgn4p0"); // b0.UR.y = ND_coord(n).y + (ND_ht(n)/2) + GD_ranksep(agraphof(n))/2;
1116 UNSUPPORTED("3f26r03ydc7aq52vcqpgxawgy"); // b.LL.x = ND_coord(n).x + ND_rw(n) + (2-2);
1117 UNSUPPORTED("czvxm3loj0won7ye2b3xrfbv4"); // b.UR.y = b0.LL.y;
1118 UNSUPPORTED("1f4u492auf4ku7ik170e86iy3"); // b.LL.y = ND_coord(n).y - (ND_ht(n)/2);
1119 UNSUPPORTED("bqk56pohk8hpgn91lv4m2zkv0"); // b.UR.x += 1;
1120 UNSUPPORTED("2f8usay82b128dq0sk4aqzw3h"); // endp->boxes[0] = b0;
1121 UNSUPPORTED("2diqdwueoy5oizl5kmbz6uyi8"); // endp->boxes[1] = b;
1122 UNSUPPORTED("196ta4n5nsqizd83y6oo7z8a2"); // }
1123 UNSUPPORTED("b7lioq6g7moe5otds46c8hrc"); // P->start.p.y += 1;
1124 UNSUPPORTED("4v7mmisc358r5tpq14qp4dx0f"); // endp->boxn = 2;
1125 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
1126 UNSUPPORTED("3s4re3z7asydnnotdylt94t1d"); // else if (side & (1<<0)) {
1127 UNSUPPORTED("auefgwb39x5hzqqc9b1zgl239"); // endp->sidemask = (1<<0);
1128 UNSUPPORTED("ax7mx0s11g0pgcgb8iopcu82a"); // b.UR.y = MAX(b.UR.y,P->start.p.y);
1129 UNSUPPORTED("esv3oinoscr6zht0kce49o450"); // endp->boxes[0] = b;
1130 UNSUPPORTED("3hptqfzzuz4dlsc8ejk1ynxt9"); // endp->boxn = 1;
1131 UNSUPPORTED("8pyl2559euuaxrntsyzj1ve8w"); // P->start.p.y -= 1;
1132 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
1133 UNSUPPORTED("bn3pwhefgp4zdatx3g60lj0ou"); // else if (side & (1<<3)) {
1134 UNSUPPORTED("2lmjkw07sr4x9a3xxrcb3yj07"); // endp->sidemask = (1<<3);
1135 UNSUPPORTED("bmdw7h7pzwkfbuzhxnsh4vbsm"); // b.UR.x = P->start.p.x;
1136 UNSUPPORTED("c86scga1j3ar95pgqvemnzrui"); // b.LL.y = ND_coord(n).y - (ND_ht(n)/2);
1137 UNSUPPORTED("cdhdxsyg42tregieb2l7kz8n"); // b.UR.y = P->start.p.y;
1138 UNSUPPORTED("esv3oinoscr6zht0kce49o450"); // endp->boxes[0] = b;
1139 UNSUPPORTED("3hptqfzzuz4dlsc8ejk1ynxt9"); // endp->boxn = 1;
1140 UNSUPPORTED("celmm9njwdxhpvd56zon98hrr"); // P->start.p.x -= 1;
1141 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
1142 UNSUPPORTED("8k75h069sv2k9b6tgz77dscwd"); // else {
1143 UNSUPPORTED("8kgb5ztvt4yv5h0nezr0q6n3z"); // endp->sidemask = (1<<1);
1144 UNSUPPORTED("cysdxceleujmu3rckrhibxaqd"); // b.LL.x = P->start.p.x;
1145 UNSUPPORTED("c86scga1j3ar95pgqvemnzrui"); // b.LL.y = ND_coord(n).y - (ND_ht(n)/2);
1146 UNSUPPORTED("cdhdxsyg42tregieb2l7kz8n"); // b.UR.y = P->start.p.y;
1147 UNSUPPORTED("esv3oinoscr6zht0kce49o450"); // endp->boxes[0] = b;
1148 UNSUPPORTED("3hptqfzzuz4dlsc8ejk1ynxt9"); // endp->boxn = 1;
1149 UNSUPPORTED("1n8o29xgguq4cce4rf04o5rke"); // P->start.p.x += 1;
1150 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
1151 UNSUPPORTED("4gatpb3u0rq9nikm6rjtejp85"); // for (orig = e; ED_edge_type(orig) != 0; orig = ED_to_orig(orig));
1152 UNSUPPORTED("askl6l2rq6b2bznfxj7ydvz5t"); // if (n == agtail(orig))
1153 UNSUPPORTED("dk49xvmby8949ngdmft4sgrox"); // ED_tail_port(orig).clip = 0;
1154 UNSUPPORTED("9352ql3e58qs4fzapgjfrms2s"); // else
1155 UNSUPPORTED("2tw6ymudedo6qij3ux424ydsi"); // ED_head_port(orig).clip = 0;
1156 UNSUPPORTED("a7fgam0j0jm7bar0mblsv3no4"); // return;
1157 }
1158 if ((et == 2) && ((side = ED_tail_port(e).side)!=0)) {
1159 UNSUPPORTED("ew7nyfe712nsiphifeztwxfop"); // boxf b0, b = endp->nb;
1160 UNSUPPORTED("a7lrhlfwr0y475aqjk6abhb3b"); // edge_t* orig;
1161 UNSUPPORTED("ait3wtnnvt134z2k87lvhq4ek"); // if (side & (1<<2)) {
1162 UNSUPPORTED("d7fd91oymbo1kkxfqhtbe2jky"); // b.LL.y = MIN(b.LL.y,P->start.p.y);
1163 UNSUPPORTED("esv3oinoscr6zht0kce49o450"); // endp->boxes[0] = b;
1164 UNSUPPORTED("3hptqfzzuz4dlsc8ejk1ynxt9"); // endp->boxn = 1;
1165 UNSUPPORTED("b7lioq6g7moe5otds46c8hrc"); // P->start.p.y += 1;
1166 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
1167 UNSUPPORTED("3s4re3z7asydnnotdylt94t1d"); // else if (side & (1<<0)) {
1168 UNSUPPORTED("6h0f9z7wklonn021j8ijd3b8m"); // if (endp->sidemask == (1<<2)) {
1169 UNSUPPORTED("7vjialx9rln6cj2y0ni5nc2gi"); // b0.UR.y = ND_coord(n).y - (ND_ht(n)/2);
1170 UNSUPPORTED("4e5ydpfmxn1wuhnp78arn3f9x"); // b0.UR.x = b.UR.x+1;
1171 UNSUPPORTED("1zpea73m3d4hdldoc5sypz1ag"); // b0.LL.x = P->start.p.x;
1172 UNSUPPORTED("esamvv08qn005uqko6caft2u"); // b0.LL.y = b0.UR.y - GD_ranksep(agraphof(n))/2;
1173 UNSUPPORTED("3f26r03ydc7aq52vcqpgxawgy"); // b.LL.x = ND_coord(n).x + ND_rw(n) + (2-2);
1174 UNSUPPORTED("74mnpbjmyubjppjur4ngy4t5u"); // b.LL.y = b0.UR.y;
1175 UNSUPPORTED("a6wnwn2mc878a2wacqkmdefx7"); // b.UR.y = ND_coord(n).y + (ND_ht(n)/2);
1176 UNSUPPORTED("bqk56pohk8hpgn91lv4m2zkv0"); // b.UR.x += 1;
1177 UNSUPPORTED("2f8usay82b128dq0sk4aqzw3h"); // endp->boxes[0] = b0;
1178 UNSUPPORTED("2diqdwueoy5oizl5kmbz6uyi8"); // endp->boxes[1] = b;
1179 UNSUPPORTED("93chrd1duv0atudbvr439u7t4"); // endp->boxn = 2;
1180 UNSUPPORTED("6t98dcecgbvbvtpycwiq2ynnj"); // }
1181 UNSUPPORTED("6q044im7742qhglc4553noina"); // else {
1182 UNSUPPORTED("8yftboq798vpnzuxkx6yuea18"); // b.UR.y = MAX(b.UR.y,P->start.p.y);
1183 UNSUPPORTED("at4jfrag6jtwm7rxu8p4p8d46"); // endp->boxes[0] = b;
1184 UNSUPPORTED("ev1muhahxwb1cntbhsb3c9aid"); // endp->boxn = 1;
1185 UNSUPPORTED("6t98dcecgbvbvtpycwiq2ynnj"); // }
1186 UNSUPPORTED("8pyl2559euuaxrntsyzj1ve8w"); // P->start.p.y -= 1;
1187 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
1188 UNSUPPORTED("bn3pwhefgp4zdatx3g60lj0ou"); // else if (side & (1<<3)) {
1189 UNSUPPORTED("bihp3ojpe2nsmh297nosihedn"); // b.UR.x = P->start.p.x+1;
1190 UNSUPPORTED("6h0f9z7wklonn021j8ijd3b8m"); // if (endp->sidemask == (1<<2)) {
1191 UNSUPPORTED("a6wnwn2mc878a2wacqkmdefx7"); // b.UR.y = ND_coord(n).y + (ND_ht(n)/2);
1192 UNSUPPORTED("afqhibyplfg1fftlkny8jq78t"); // b.LL.y = P->start.p.y-1;
1193 UNSUPPORTED("6t98dcecgbvbvtpycwiq2ynnj"); // }
1194 UNSUPPORTED("6q044im7742qhglc4553noina"); // else {
1195 UNSUPPORTED("1f4u492auf4ku7ik170e86iy3"); // b.LL.y = ND_coord(n).y - (ND_ht(n)/2);
1196 UNSUPPORTED("4no3qn8v4vx6rk2in60hgr8w6"); // b.UR.y = P->start.p.y+1;
1197 UNSUPPORTED("6t98dcecgbvbvtpycwiq2ynnj"); // }
1198 UNSUPPORTED("esv3oinoscr6zht0kce49o450"); // endp->boxes[0] = b;
1199 UNSUPPORTED("3hptqfzzuz4dlsc8ejk1ynxt9"); // endp->boxn = 1;
1200 UNSUPPORTED("celmm9njwdxhpvd56zon98hrr"); // P->start.p.x -= 1;
1201 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
1202 UNSUPPORTED("8k75h069sv2k9b6tgz77dscwd"); // else {
1203 UNSUPPORTED("cysdxceleujmu3rckrhibxaqd"); // b.LL.x = P->start.p.x;
1204 UNSUPPORTED("6h0f9z7wklonn021j8ijd3b8m"); // if (endp->sidemask == (1<<2)) {
1205 UNSUPPORTED("a6wnwn2mc878a2wacqkmdefx7"); // b.UR.y = ND_coord(n).y + (ND_ht(n)/2);
1206 UNSUPPORTED("5oh26jb6vz012qke7865hz5h7"); // b.LL.y = P->start.p.y;
1207 UNSUPPORTED("6t98dcecgbvbvtpycwiq2ynnj"); // }
1208 UNSUPPORTED("6q044im7742qhglc4553noina"); // else {
1209 UNSUPPORTED("1f4u492auf4ku7ik170e86iy3"); // b.LL.y = ND_coord(n).y - (ND_ht(n)/2);
1210 UNSUPPORTED("4no3qn8v4vx6rk2in60hgr8w6"); // b.UR.y = P->start.p.y+1;
1211 UNSUPPORTED("6t98dcecgbvbvtpycwiq2ynnj"); // }
1212 UNSUPPORTED("esv3oinoscr6zht0kce49o450"); // endp->boxes[0] = b;
1213 UNSUPPORTED("3hptqfzzuz4dlsc8ejk1ynxt9"); // endp->boxn = 1;
1214 UNSUPPORTED("1n8o29xgguq4cce4rf04o5rke"); // P->start.p.x += 1;
1215 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
1216 UNSUPPORTED("4gatpb3u0rq9nikm6rjtejp85"); // for (orig = e; ED_edge_type(orig) != 0; orig = ED_to_orig(orig));
1217 UNSUPPORTED("askl6l2rq6b2bznfxj7ydvz5t"); // if (n == agtail(orig))
1218 UNSUPPORTED("dk49xvmby8949ngdmft4sgrox"); // ED_tail_port(orig).clip = 0;
1219 UNSUPPORTED("9352ql3e58qs4fzapgjfrms2s"); // else
1220 UNSUPPORTED("2tw6ymudedo6qij3ux424ydsi"); // ED_head_port(orig).clip = 0;
1221 UNSUPPORTED("8jqn3kj2hrrlcifbw3x9sf6qu"); // endp->sidemask = side;
1222 UNSUPPORTED("a7fgam0j0jm7bar0mblsv3no4"); // return;
1223 }
1224 if (et == 1) side = (1<<0);
1225 else side = endp.sidemask; /* for flat edges */
1226 if (pboxfn!=null
1227 && (mask = (Integer) pboxfn.exe(n, ED_tail_port(e), side, endp.boxes[0], endp.boxn))!=0)
1228 UNSUPPORTED("ex9kjvshm19zbu9vqonk1avd8"); // endp->sidemask = mask;
1229 else {
1230 endp.boxes[0].setStruct(endp.nb);
1231 endp.setInt("boxn", 1);
1232 switch (et) {
1233 case 8:
1234 /* moving the box UR.y by + 1 avoids colinearity between
1235 port point and box that confuses Proutespline(). it's
1236 a bug in Proutespline() but this is the easiest fix. */
1237 UNSUPPORTED("9rnob8jdqqdjwzanv53yxc47u"); // assert(0); /* at present, we don't use beginpath for selfedges */
1238 UNSUPPORTED("46vb5zg9vm9n0q21g53nj66v3"); // endp->boxes[0].UR.y = P->start.p.y - 1;
1239 UNSUPPORTED("auefgwb39x5hzqqc9b1zgl239"); // endp->sidemask = (1<<0);
1240 break;
1241 case 2:
1242 if (endp.sidemask == (1<<2))
1243 ((ST_boxf)endp.boxes[0]).LL.y = P.start.p.y;
1244 else
1245 ((ST_boxf)endp.boxes[0]).UR.y = P.start.p.y;
1246 break;
1247 case 1:
1248 ((ST_boxf)(endp).boxes[0]).UR.y = P.start.p.y;
1249 endp.setInt("sidemask", (1<<0));
1250 P.start.p.setDouble("y", P.start.p.y - 1);
1251 break;
1252 }
1253 }
1254 } finally {
1255 LEAVING("7pc43ifcw5g56449d101qf590","beginpath");
1256 }
1257 }
1258
1259
1260
1261
1262 //3 79dr5om55xs3n5lgai1sf58vu
1263 // void endpath(path * P, edge_t * e, int et, pathend_t * endp, boolean merge)
1264 public static void endpath(ST_path P, ST_Agedge_s e, int et, ST_pathend_t endp, boolean merge) {
1265 ENTERING("79dr5om55xs3n5lgai1sf58vu","endpath");
1266 try {
1267 int side, mask;
1268 ST_Agnode_s n;
1269 CFunction pboxfn;
1270 n = aghead(e);
1271 if (ED_head_port(e).dyna!=0)
1272 UNSUPPORTED("9brhx94sjudx3jtzrnwa60x8"); // ED_head_port(e) = resolvePort(aghead(e), agtail(e), &ED_head_port(e));
1273 if (ND_shape(n)!=null)
1274 pboxfn = (CFunction) ND_shape(n).fns.pboxfn;
1275 else
1276 pboxfn = null;
1277 P.end.setStruct("p", add_pointf(ND_coord(n), (ST_pointf) ED_head_port(e).p));
1278 if (merge) {
1279 UNSUPPORTED("cproejwusj67kuugolh6tbkwz"); // /*P->end.theta = M_PI / 2; */
1280 UNSUPPORTED("65vhfvz1d1tub3f85tdsgg2g5"); // P->end.theta = conc_slope(aghead(e)) + M_PI;
1281 UNSUPPORTED("du4hwt6pjf3bmkvowssm7b0uo"); // assert(P->end.theta < 2 * M_PI);
1282 UNSUPPORTED("2w0c22i5xgcch77xd9jg104nw"); // P->end.constrained = NOT(0);
1283 } else {
1284 if (ED_head_port(e).constrained!=0) {
1285 P.end.setDouble("theta", ED_head_port(e).theta);
1286 P.end.setInt("constrained", 1);
1287 } else
1288 P.end.setInt("constrained", 0);
1289 }
1290 endp.setStruct("np", P.end.p);
1291 if ((et == 1) && (ND_node_type(n) == 0) && ((side = ED_head_port(e).side)!=0)) {
1292 UNSUPPORTED("a7lrhlfwr0y475aqjk6abhb3b"); // edge_t* orig;
1293 UNSUPPORTED("ew7nyfe712nsiphifeztwxfop"); // boxf b0, b = endp->nb;
1294 UNSUPPORTED("ait3wtnnvt134z2k87lvhq4ek"); // if (side & (1<<2)) {
1295 UNSUPPORTED("1r4lctdj9z1ivlz3uqpcj1yzf"); // endp->sidemask = (1<<2);
1296 UNSUPPORTED("cropv6s2edu614uzt364nepfo"); // b.LL.y = MIN(b.LL.y,P->end.p.y);
1297 UNSUPPORTED("esv3oinoscr6zht0kce49o450"); // endp->boxes[0] = b;
1298 UNSUPPORTED("3hptqfzzuz4dlsc8ejk1ynxt9"); // endp->boxn = 1;
1299 UNSUPPORTED("c91rvfjkunah0qffpuo47eshu"); // P->end.p.y += 1;
1300 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
1301 UNSUPPORTED("3s4re3z7asydnnotdylt94t1d"); // else if (side & (1<<0)) {
1302 UNSUPPORTED("auefgwb39x5hzqqc9b1zgl239"); // endp->sidemask = (1<<0);
1303 UNSUPPORTED("4tlqpclu7x0szo1rszndqau0d"); // if (P->end.p.x < ND_coord(n).x) { /* go left */
1304 UNSUPPORTED("80ypgtfgfrgq8j7whkaueouh5"); // b0.LL.x = b.LL.x-1;
1305 UNSUPPORTED("4ikkdf5k4ubwp4ou51rth0q41"); // /* b0.UR.y = ND_coord(n).y - HT2(n); */
1306 UNSUPPORTED("baysgwgvs09ywaufn74gq6m0a"); // b0.UR.y = P->end.p.y;
1307 UNSUPPORTED("5xsapgq04e1hslq2835500q6k"); // b0.UR.x = b.UR.x;
1308 UNSUPPORTED("7ut9yqcephghob5a3yo8af293"); // b0.LL.y = ND_coord(n).y - (ND_ht(n)/2) - GD_ranksep(agraphof(n))/2;
1309 UNSUPPORTED("6p2nw1nh0qwn5ro3dltmd6w6c"); // b.UR.x = ND_coord(n).x - ND_lw(n) - (2-2);
1310 UNSUPPORTED("74mnpbjmyubjppjur4ngy4t5u"); // b.LL.y = b0.UR.y;
1311 UNSUPPORTED("a6wnwn2mc878a2wacqkmdefx7"); // b.UR.y = ND_coord(n).y + (ND_ht(n)/2);
1312 UNSUPPORTED("w9wsmby4dawn9npux1jrd9gl"); // b.LL.x -= 1;
1313 UNSUPPORTED("2f8usay82b128dq0sk4aqzw3h"); // endp->boxes[0] = b0;
1314 UNSUPPORTED("2diqdwueoy5oizl5kmbz6uyi8"); // endp->boxes[1] = b;
1315 UNSUPPORTED("6t98dcecgbvbvtpycwiq2ynnj"); // }
1316 UNSUPPORTED("6q044im7742qhglc4553noina"); // else {
1317 UNSUPPORTED("7sk0msbospwpwupzwpu8v87qt"); // b0.LL.x = b.LL.x;
1318 UNSUPPORTED("baysgwgvs09ywaufn74gq6m0a"); // b0.UR.y = P->end.p.y;
1319 UNSUPPORTED("4ikkdf5k4ubwp4ou51rth0q41"); // /* b0.UR.y = ND_coord(n).y - HT2(n); */
1320 UNSUPPORTED("4e5ydpfmxn1wuhnp78arn3f9x"); // b0.UR.x = b.UR.x+1;
1321 UNSUPPORTED("7ut9yqcephghob5a3yo8af293"); // b0.LL.y = ND_coord(n).y - (ND_ht(n)/2) - GD_ranksep(agraphof(n))/2;
1322 UNSUPPORTED("3f26r03ydc7aq52vcqpgxawgy"); // b.LL.x = ND_coord(n).x + ND_rw(n) + (2-2);
1323 UNSUPPORTED("74mnpbjmyubjppjur4ngy4t5u"); // b.LL.y = b0.UR.y;
1324 UNSUPPORTED("a6wnwn2mc878a2wacqkmdefx7"); // b.UR.y = ND_coord(n).y + (ND_ht(n)/2);
1325 UNSUPPORTED("bqk56pohk8hpgn91lv4m2zkv0"); // b.UR.x += 1;
1326 UNSUPPORTED("2f8usay82b128dq0sk4aqzw3h"); // endp->boxes[0] = b0;
1327 UNSUPPORTED("2diqdwueoy5oizl5kmbz6uyi8"); // endp->boxes[1] = b;
1328 UNSUPPORTED("196ta4n5nsqizd83y6oo7z8a2"); // }
1329 UNSUPPORTED("4v7mmisc358r5tpq14qp4dx0f"); // endp->boxn = 2;
1330 UNSUPPORTED("6kjd8mut2dn2xv1k1zr63qp0s"); // P->end.p.y -= 1;
1331 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
1332 UNSUPPORTED("bn3pwhefgp4zdatx3g60lj0ou"); // else if (side & (1<<3)) {
1333 UNSUPPORTED("2lmjkw07sr4x9a3xxrcb3yj07"); // endp->sidemask = (1<<3);
1334 UNSUPPORTED("4e2bsroer72trfy5dl5k8f5s8"); // b.UR.x = P->end.p.x;
1335 UNSUPPORTED("3rsswd4vcybmrbhoqt0aldqds"); // b.UR.y = ND_coord(n).y + (ND_ht(n)/2);
1336 UNSUPPORTED("7m86tfoixpamdnl1ywyaz9uzy"); // b.LL.y = P->end.p.y;
1337 UNSUPPORTED("esv3oinoscr6zht0kce49o450"); // endp->boxes[0] = b;
1338 UNSUPPORTED("3hptqfzzuz4dlsc8ejk1ynxt9"); // endp->boxn = 1;
1339 UNSUPPORTED("5j92wv3nt0b7hnlf3ktengoom"); // P->end.p.x -= 1;
1340 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
1341 UNSUPPORTED("8k75h069sv2k9b6tgz77dscwd"); // else {
1342 UNSUPPORTED("8kgb5ztvt4yv5h0nezr0q6n3z"); // endp->sidemask = (1<<1);
1343 UNSUPPORTED("2upa323l3o3equsdn1v13nj0q"); // b.LL.x = P->end.p.x;
1344 UNSUPPORTED("3rsswd4vcybmrbhoqt0aldqds"); // b.UR.y = ND_coord(n).y + (ND_ht(n)/2);
1345 UNSUPPORTED("7m86tfoixpamdnl1ywyaz9uzy"); // b.LL.y = P->end.p.y;
1346 UNSUPPORTED("esv3oinoscr6zht0kce49o450"); // endp->boxes[0] = b;
1347 UNSUPPORTED("3hptqfzzuz4dlsc8ejk1ynxt9"); // endp->boxn = 1;
1348 UNSUPPORTED("44vy3z49e2oo6613r15tcgn8h"); // P->end.p.x += 1;
1349 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
1350 UNSUPPORTED("4gatpb3u0rq9nikm6rjtejp85"); // for (orig = e; ED_edge_type(orig) != 0; orig = ED_to_orig(orig));
1351 UNSUPPORTED("e8cujr3gqet8mj2n5h5jfogm1"); // if (n == aghead(orig))
1352 UNSUPPORTED("2tw6ymudedo6qij3ux424ydsi"); // ED_head_port(orig).clip = 0;
1353 UNSUPPORTED("9352ql3e58qs4fzapgjfrms2s"); // else
1354 UNSUPPORTED("dk49xvmby8949ngdmft4sgrox"); // ED_tail_port(orig).clip = 0;
1355 UNSUPPORTED("8jqn3kj2hrrlcifbw3x9sf6qu"); // endp->sidemask = side;
1356 UNSUPPORTED("a7fgam0j0jm7bar0mblsv3no4"); // return;
1357 }
1358 if ((et == 2) && ((side = ED_head_port(e).side)!=0)) {
1359 UNSUPPORTED("ew7nyfe712nsiphifeztwxfop"); // boxf b0, b = endp->nb;
1360 UNSUPPORTED("a7lrhlfwr0y475aqjk6abhb3b"); // edge_t* orig;
1361 UNSUPPORTED("ait3wtnnvt134z2k87lvhq4ek"); // if (side & (1<<2)) {
1362 UNSUPPORTED("cropv6s2edu614uzt364nepfo"); // b.LL.y = MIN(b.LL.y,P->end.p.y);
1363 UNSUPPORTED("esv3oinoscr6zht0kce49o450"); // endp->boxes[0] = b;
1364 UNSUPPORTED("3hptqfzzuz4dlsc8ejk1ynxt9"); // endp->boxn = 1;
1365 UNSUPPORTED("c91rvfjkunah0qffpuo47eshu"); // P->end.p.y += 1;
1366 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
1367 UNSUPPORTED("3s4re3z7asydnnotdylt94t1d"); // else if (side & (1<<0)) {
1368 UNSUPPORTED("6h0f9z7wklonn021j8ijd3b8m"); // if (endp->sidemask == (1<<2)) {
1369 UNSUPPORTED("80ypgtfgfrgq8j7whkaueouh5"); // b0.LL.x = b.LL.x-1;
1370 UNSUPPORTED("7vjialx9rln6cj2y0ni5nc2gi"); // b0.UR.y = ND_coord(n).y - (ND_ht(n)/2);
1371 UNSUPPORTED("e403abqgqxgss6h01127ebeil"); // b0.UR.x = P->end.p.x;
1372 UNSUPPORTED("esamvv08qn005uqko6caft2u"); // b0.LL.y = b0.UR.y - GD_ranksep(agraphof(n))/2;
1373 UNSUPPORTED("29fp8dba1xqbt5ire1m3oad6c"); // b.UR.x = ND_coord(n).x - ND_lw(n) - 2;
1374 UNSUPPORTED("74mnpbjmyubjppjur4ngy4t5u"); // b.LL.y = b0.UR.y;
1375 UNSUPPORTED("a6wnwn2mc878a2wacqkmdefx7"); // b.UR.y = ND_coord(n).y + (ND_ht(n)/2);
1376 UNSUPPORTED("w9wsmby4dawn9npux1jrd9gl"); // b.LL.x -= 1;
1377 UNSUPPORTED("2f8usay82b128dq0sk4aqzw3h"); // endp->boxes[0] = b0;
1378 UNSUPPORTED("2diqdwueoy5oizl5kmbz6uyi8"); // endp->boxes[1] = b;
1379 UNSUPPORTED("93chrd1duv0atudbvr439u7t4"); // endp->boxn = 2;
1380 UNSUPPORTED("6t98dcecgbvbvtpycwiq2ynnj"); // }
1381 UNSUPPORTED("6q044im7742qhglc4553noina"); // else {
1382 UNSUPPORTED("8yftboq798vpnzuxkx6yuea18"); // b.UR.y = MAX(b.UR.y,P->start.p.y);
1383 UNSUPPORTED("at4jfrag6jtwm7rxu8p4p8d46"); // endp->boxes[0] = b;
1384 UNSUPPORTED("ev1muhahxwb1cntbhsb3c9aid"); // endp->boxn = 1;
1385 UNSUPPORTED("6t98dcecgbvbvtpycwiq2ynnj"); // }
1386 UNSUPPORTED("6kjd8mut2dn2xv1k1zr63qp0s"); // P->end.p.y -= 1;
1387 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
1388 UNSUPPORTED("bn3pwhefgp4zdatx3g60lj0ou"); // else if (side & (1<<3)) {
1389 UNSUPPORTED("46ayak01kn7y7w3yaoreb6w1l"); // b.UR.x = P->end.p.x+1;
1390 UNSUPPORTED("6h0f9z7wklonn021j8ijd3b8m"); // if (endp->sidemask == (1<<2)) {
1391 UNSUPPORTED("a6wnwn2mc878a2wacqkmdefx7"); // b.UR.y = ND_coord(n).y + (ND_ht(n)/2);
1392 UNSUPPORTED("a3bb90cu4chg4dv4xfsx8r8ek"); // b.LL.y = P->end.p.y-1;
1393 UNSUPPORTED("6t98dcecgbvbvtpycwiq2ynnj"); // }
1394 UNSUPPORTED("6q044im7742qhglc4553noina"); // else {
1395 UNSUPPORTED("1f4u492auf4ku7ik170e86iy3"); // b.LL.y = ND_coord(n).y - (ND_ht(n)/2);
1396 UNSUPPORTED("20q189zumqwpltcod94td3f"); // b.UR.y = P->end.p.y+1;
1397 UNSUPPORTED("6t98dcecgbvbvtpycwiq2ynnj"); // }
1398 UNSUPPORTED("esv3oinoscr6zht0kce49o450"); // endp->boxes[0] = b;
1399 UNSUPPORTED("3hptqfzzuz4dlsc8ejk1ynxt9"); // endp->boxn = 1;
1400 UNSUPPORTED("5j92wv3nt0b7hnlf3ktengoom"); // P->end.p.x -= 1;
1401 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
1402 UNSUPPORTED("8k75h069sv2k9b6tgz77dscwd"); // else {
1403 UNSUPPORTED("9tx1p6meq5zi4ce5essw11ikg"); // b.LL.x = P->end.p.x-1;
1404 UNSUPPORTED("6h0f9z7wklonn021j8ijd3b8m"); // if (endp->sidemask == (1<<2)) {
1405 UNSUPPORTED("a6wnwn2mc878a2wacqkmdefx7"); // b.UR.y = ND_coord(n).y + (ND_ht(n)/2);
1406 UNSUPPORTED("a3bb90cu4chg4dv4xfsx8r8ek"); // b.LL.y = P->end.p.y-1;
1407 UNSUPPORTED("6t98dcecgbvbvtpycwiq2ynnj"); // }
1408 UNSUPPORTED("6q044im7742qhglc4553noina"); // else {
1409 UNSUPPORTED("1f4u492auf4ku7ik170e86iy3"); // b.LL.y = ND_coord(n).y - (ND_ht(n)/2);
1410 UNSUPPORTED("181rv2y41gamwqbbccj0rnb57"); // b.UR.y = P->end.p.y;
1411 UNSUPPORTED("6t98dcecgbvbvtpycwiq2ynnj"); // }
1412 UNSUPPORTED("esv3oinoscr6zht0kce49o450"); // endp->boxes[0] = b;
1413 UNSUPPORTED("3hptqfzzuz4dlsc8ejk1ynxt9"); // endp->boxn = 1;
1414 UNSUPPORTED("44vy3z49e2oo6613r15tcgn8h"); // P->end.p.x += 1;
1415 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
1416 UNSUPPORTED("4gatpb3u0rq9nikm6rjtejp85"); // for (orig = e; ED_edge_type(orig) != 0; orig = ED_to_orig(orig));
1417 UNSUPPORTED("e8cujr3gqet8mj2n5h5jfogm1"); // if (n == aghead(orig))
1418 UNSUPPORTED("2tw6ymudedo6qij3ux424ydsi"); // ED_head_port(orig).clip = 0;
1419 UNSUPPORTED("9352ql3e58qs4fzapgjfrms2s"); // else
1420 UNSUPPORTED("dk49xvmby8949ngdmft4sgrox"); // ED_tail_port(orig).clip = 0;
1421 UNSUPPORTED("8jqn3kj2hrrlcifbw3x9sf6qu"); // endp->sidemask = side;
1422 UNSUPPORTED("a7fgam0j0jm7bar0mblsv3no4"); // return;
1423 }
1424 if (et == 1) side = (1<<2);
1425 else side = endp.sidemask; /* for flat edges */
1426 if (pboxfn!=null
1427 && (mask = (Integer) pboxfn.exe(n, ED_head_port(e), side, endp.boxes[0], endp.boxn))!=0)
1428 endp.setInt("sidemask", mask);
1429 else {
1430 endp.boxes[0].setStruct(endp.nb);
1431 endp.setInt("boxn", 1);
1432 switch (et) {
1433 case 8:
1434 /* offset of -1 is symmetric w.r.t. beginpath()
1435 * FIXME: is any of this right? what if self-edge
1436 * doesn't connect from BOTTOM to TOP??? */
1437 UNSUPPORTED("bhkhf4i9pvxtxyka4sobszg33"); // assert(0); /* at present, we don't use endpath for selfedges */
1438 UNSUPPORTED("db6vmvnse8bawy8qwct7l24u8"); // endp->boxes[0].LL.y = P->end.p.y + 1;
1439 UNSUPPORTED("1r4lctdj9z1ivlz3uqpcj1yzf"); // endp->sidemask = (1<<2);
1440 UNSUPPORTED("ai3czg6gaaxspsmndknpyvuiu"); // break;
1441 case 2:
1442 if (endp.sidemask == (1<<2))
1443 endp.boxes[0].LL.y = P.end.p.y;
1444 else
1445 endp.boxes[0].UR.y = P.end.p.y;
1446 break;
1447 case 1:
1448 endp.boxes[0].LL.y = P.end.p.y;
1449 endp.setInt("sidemask", (1<<2));
1450 P.end.p.setDouble("y", P.end.p.y +1);
1451 break;
1452 }
1453 }
1454 } finally {
1455 LEAVING("79dr5om55xs3n5lgai1sf58vu","endpath");
1456 }
1457 }
1458
1459
1460
1461
1462 //3 3g7alj6eirl5b2hlhluiqvaax
1463 // static int convert_sides_to_points(int tail_side, int head_side)
1464 public static int convert_sides_to_points(int tail_side, int head_side) {
1465 ENTERING("3g7alj6eirl5b2hlhluiqvaax","convert_sides_to_points");
1466 int vertices[] = new int[] {12,4,6,2,3,1,9,8}; //the cumulative side value of each node point
1467 int i, tail_i, head_i;
1468 int pair_a[][] = new int[][] { //array of possible node point pairs
1469 {11,12,13,14,15,16,17,18},
1470 {21,22,23,24,25,26,27,28},
1471 {31,32,33,34,35,36,37,38},
1472 {41,42,43,44,45,46,47,48},
1473 {51,52,53,54,55,56,57,58},
1474 {61,62,63,64,65,66,67,68},
1475 {71,72,73,74,75,76,77,78},
1476 {81,82,83,84,85,86,87,88}
1477 };
1478 try {
1479 tail_i = head_i = -1;
1480 for(i=0;i< 8; i++){
1481 if(head_side == vertices[i]){
1482 head_i = i;
1483 break;
1484 }
1485 }
1486 for(i=0;i< 8; i++){
1487 if(tail_side == vertices[i]){
1488 tail_i = i;
1489 break;
1490 }
1491 }
1492 if( tail_i < 0 || head_i < 0)
1493 return 0;
1494 else
1495 return pair_a[tail_i][head_i];
1496 } finally {
1497 LEAVING("3g7alj6eirl5b2hlhluiqvaax","convert_sides_to_points");
1498 }
1499 }
1500
1501
1502
1503
1504 //3 7l37y1w97mt6n5pd9x5dzgwud
1505 // static void selfBottom (edge_t* edges[], int ind, int cnt, double sizex, double stepy, splineInfo* sinfo)
1506 public static Object selfBottom(Object... arg) {
1507 UNSUPPORTED("5mldqfen59kshqgaknayjc5ox"); // static void selfBottom (edge_t* edges[], int ind, int cnt,
1508 UNSUPPORTED("e0472i5ngodtv68y0hdhq1azu"); // double sizex, double stepy, splineInfo* sinfo)
1509 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
1510 UNSUPPORTED("7a2vzpy4tpc2fpmuf12nhtfca"); // pointf tp, hp, np;
1511 UNSUPPORTED("cjx5v6hayed3q8eeub1cggqca"); // node_t *n;
1512 UNSUPPORTED("5gypxs09iuryx5a2eho9lgdcp"); // edge_t *e;
1513 UNSUPPORTED("2131r3ibxv7drmcz6f2j5d9c2"); // int i, sgn, point_pair;
1514 UNSUPPORTED("de1bz9yfc9w49kc4vy1ge2ltd"); // double hy, ty, stepx, dx, dy, width, height;
1515 UNSUPPORTED("cutkizwxyuykhmayeb60m22av"); // pointf points[1000];
1516 UNSUPPORTED("79ig2xj5nogd41esx7798m82t"); // int pointn;
1517 UNSUPPORTED("e3wy3x07xdsusfbgecfcqg5lj"); // e = edges[ind];
1518 UNSUPPORTED("dul1axf6kjslblufm4omk5k32"); // n = agtail(e);
1519 UNSUPPORTED("43yzlf5354g6qlugyzpmr745t"); // stepx = (sizex / 2.) / cnt;
1520 UNSUPPORTED("brakcbw9hvzlljogqwzlhgb0v"); // stepx = MAX(stepx,2.);
1521 UNSUPPORTED("dko3xt785e372nj0fiocjfas"); // pointn = 0;
1522 UNSUPPORTED("dqazhjgevh1spyg3xzwb3bcks"); // np = ND_coord(n);
1523 UNSUPPORTED("ehf9o80lfi02no07wz207kyp6"); // tp = ED_tail_port(e).p;
1524 UNSUPPORTED("f18822xrptoagri7001gamxwh"); // tp.x += np.x;
1525 UNSUPPORTED("pcmp8bdd8677mjvvef7kfh5y"); // tp.y += np.y;
1526 UNSUPPORTED("b4mfdkjjk3n78ssy4h80g5lc6"); // hp = ED_head_port(e).p;
1527 UNSUPPORTED("e7rhhgc42h5z6kvvnkz6wfn0r"); // hp.x += np.x;
1528 UNSUPPORTED("bisu3qji6rw3wu3srdv8vhrxb"); // hp.y += np.y;
1529 UNSUPPORTED("2c8kmvidaqx92wd2mq1ys6753"); // if (tp.x >= hp.x) sgn = 1;
1530 UNSUPPORTED("cvln1r5ffbp1z1sq0y6ago4og"); // else sgn = -1;
1531 UNSUPPORTED("7squuk10wt6xrbp24obpx41bw"); // dy = ND_ht(n)/2., dx = 0.;
1532 UNSUPPORTED("7sojr831wk2u8c86xerkjyojd"); // // certain adjustments are required for some point_pairs in order to improve the
1533 UNSUPPORTED("byuachd2fjte06s7xwnbmxlcx"); // // display of the edge path between them
1534 UNSUPPORTED("eje36stfd9p7ulgo4qk6gjwvx"); // point_pair = convert_sides_to_points(ED_tail_port(e).side,ED_head_port(e).side);
1535 UNSUPPORTED("2qmvjd6iwnaqwop679caoaxnn"); // switch(point_pair){
1536 UNSUPPORTED("8c31t4u50f9yjnlb8ii84ts3w"); // case 67: sgn = -sgn;
1537 UNSUPPORTED("9ekmvj13iaml5ndszqyxa8eq"); // break;
1538 UNSUPPORTED("5vhsnixpf0pg2oz10ps2valyn"); // default:
1539 UNSUPPORTED("9ekmvj13iaml5ndszqyxa8eq"); // break;
1540 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
1541 UNSUPPORTED("5n29oadzd6emvd2fwjisx6ovk"); // ty = MIN(dy, 3*(tp.y + dy - np.y));
1542 UNSUPPORTED("dly5hufg66dgb6zn5lqcerae1"); // hy = MIN(dy, 3*(hp.y + dy - np.y));
1543 UNSUPPORTED("1psokm6w9e7qw7fm2g1cayuk7"); // for (i = 0; i < cnt; i++) {
1544 UNSUPPORTED("a0u9ggni4r8gikqyyxf6wgaa5"); // e = edges[ind++];
1545 UNSUPPORTED("bgymnp4yekw8tzr70cnzzn9ez"); // dy += stepy, ty += stepy, hy += stepy, dx += sgn*stepx;
1546 UNSUPPORTED("8tkxpvgpxpilkes33cj73nr8o"); // pointn = 0;
1547 UNSUPPORTED("2j93ajzz3i9adm0syj177su98"); // points[pointn++] = tp;
1548 UNSUPPORTED("15uyub8ah85dmbdmc0lqgjqb"); // points[pointn++] = pointfof(tp.x + dx, tp.y - ty / 3);
1549 UNSUPPORTED("bh0lpazk6gpagl57bydccqkv4"); // points[pointn++] = pointfof(tp.x + dx, np.y - dy);
1550 UNSUPPORTED("381vppahpairjja0hahm7lktb"); // points[pointn++] = pointfof((tp.x+hp.x)/2, np.y - dy);
1551 UNSUPPORTED("n63wd0j09ndu0hiaxhwx7izb"); // points[pointn++] = pointfof(hp.x - dx, np.y - dy);
1552 UNSUPPORTED("dzdgwa3zfedg3kys9pd8mp5qm"); // points[pointn++] = pointfof(hp.x - dx, hp.y - hy / 3);
1553 UNSUPPORTED("6t0sueo9zyoccfzqit4c7pvcy"); // points[pointn++] = hp;
1554 UNSUPPORTED("6nhnbriaxn7zi0ab1z8bkbzd"); // if (ED_label(e)) {
1555 UNSUPPORTED("a7ea1ybpt7lv8fk1pc1outbs5"); // if (GD_flip(agraphof(agtail(e)))) {
1556 UNSUPPORTED("7d83ym7h1stime4wbmifcx809"); // width = ED_label(e)->dimen.y;
1557 UNSUPPORTED("44m5sni7g3n6fnk6ca57u9dc2"); // height = ED_label(e)->dimen.x;
1558 UNSUPPORTED("s8koz5x85ytpnff1o94rlxqy"); // } else {
1559 UNSUPPORTED("66vu2joy64r1yrkvp3oolz1ws"); // width = ED_label(e)->dimen.x;
1560 UNSUPPORTED("d6bobo1f6gxkxa2fffvmn41g0"); // height = ED_label(e)->dimen.y;
1561 UNSUPPORTED("klxoy56t7b20wxnwqm0qoofz"); // }
1562 UNSUPPORTED("cot4bdvsbrav4yex2yesffgd9"); // ED_label(e)->pos.y = ND_coord(n).y - dy - height / 2.0;
1563 UNSUPPORTED("9wg1yftg90g8jld2m2p5m31ro"); // ED_label(e)->pos.x = ND_coord(n).x;
1564 UNSUPPORTED("7efx4yevu8176mmuqjtk4bfss"); // ED_label(e)->set = NOT(0);
1565 UNSUPPORTED("13o3f1bpjm731ee8hpa8d3f5y"); // if (height > stepy)
1566 UNSUPPORTED("alt1jvhdhimr8iltoxg7dycq1"); // dy += height - stepy;
1567 UNSUPPORTED("4mhlpjofolwivhm0tl8cxznly"); // }
1568 UNSUPPORTED("5fvid2bi7fy5jv5dyttfprpzj"); // clip_and_install(e, aghead(e), points, pointn, sinfo);
1569 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
1570 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
1571
1572 throw new UnsupportedOperationException();
1573 }
1574
1575
1576
1577
1578 //3 2thwh4ase1jdq8ghhf0oqyql5
1579 // static void selfTop (edge_t* edges[], int ind, int cnt, double sizex, double stepy, splineInfo* sinfo)
1580 public static Object selfTop(Object... arg) {
1581 UNSUPPORTED("e2z2o5ybnr5tgpkt8ty7hwan1"); // static void
1582 UNSUPPORTED("32kq3vfpd1msv3v0nv0uqavzh"); // selfTop (edge_t* edges[], int ind, int cnt, double sizex, double stepy,
1583 UNSUPPORTED("2t4o7k97lw32u08cs5j96r7if"); // splineInfo* sinfo)
1584 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
1585 UNSUPPORTED("2131r3ibxv7drmcz6f2j5d9c2"); // int i, sgn, point_pair;
1586 UNSUPPORTED("1suoh1r8nnndqo9txafuch8az"); // double hy, ty, stepx, dx, dy, width, height;
1587 UNSUPPORTED("7a2vzpy4tpc2fpmuf12nhtfca"); // pointf tp, hp, np;
1588 UNSUPPORTED("cjx5v6hayed3q8eeub1cggqca"); // node_t *n;
1589 UNSUPPORTED("5gypxs09iuryx5a2eho9lgdcp"); // edge_t *e;
1590 UNSUPPORTED("cutkizwxyuykhmayeb60m22av"); // pointf points[1000];
1591 UNSUPPORTED("79ig2xj5nogd41esx7798m82t"); // int pointn;
1592 UNSUPPORTED("e3wy3x07xdsusfbgecfcqg5lj"); // e = edges[ind];
1593 UNSUPPORTED("dul1axf6kjslblufm4omk5k32"); // n = agtail(e);
1594 UNSUPPORTED("43yzlf5354g6qlugyzpmr745t"); // stepx = (sizex / 2.) / cnt;
1595 UNSUPPORTED("7199vb689fs8rdn6j40wpw2py"); // stepx = MAX(stepx, 2.);
1596 UNSUPPORTED("dko3xt785e372nj0fiocjfas"); // pointn = 0;
1597 UNSUPPORTED("dqazhjgevh1spyg3xzwb3bcks"); // np = ND_coord(n);
1598 UNSUPPORTED("ehf9o80lfi02no07wz207kyp6"); // tp = ED_tail_port(e).p;
1599 UNSUPPORTED("f18822xrptoagri7001gamxwh"); // tp.x += np.x;
1600 UNSUPPORTED("pcmp8bdd8677mjvvef7kfh5y"); // tp.y += np.y;
1601 UNSUPPORTED("b4mfdkjjk3n78ssy4h80g5lc6"); // hp = ED_head_port(e).p;
1602 UNSUPPORTED("e7rhhgc42h5z6kvvnkz6wfn0r"); // hp.x += np.x;
1603 UNSUPPORTED("bisu3qji6rw3wu3srdv8vhrxb"); // hp.y += np.y;
1604 UNSUPPORTED("2c8kmvidaqx92wd2mq1ys6753"); // if (tp.x >= hp.x) sgn = 1;
1605 UNSUPPORTED("cvln1r5ffbp1z1sq0y6ago4og"); // else sgn = -1;
1606 UNSUPPORTED("7squuk10wt6xrbp24obpx41bw"); // dy = ND_ht(n)/2., dx = 0.;
1607 UNSUPPORTED("7sojr831wk2u8c86xerkjyojd"); // // certain adjustments are required for some point_pairs in order to improve the
1608 UNSUPPORTED("byuachd2fjte06s7xwnbmxlcx"); // // display of the edge path between them
1609 UNSUPPORTED("eje36stfd9p7ulgo4qk6gjwvx"); // point_pair = convert_sides_to_points(ED_tail_port(e).side,ED_head_port(e).side);
1610 UNSUPPORTED("2qmvjd6iwnaqwop679caoaxnn"); // switch(point_pair){
1611 UNSUPPORTED("6mjalqxwnjw8e27c2ioujowul"); // case 15:
1612 UNSUPPORTED("5vvzajt4nlp9tr9qagb46uzw0"); // dx = sgn*(ND_rw(n) - (hp.x-np.x) + stepx);
1613 UNSUPPORTED("9ekmvj13iaml5ndszqyxa8eq"); // break;
1614 UNSUPPORTED("av3gl91zikst7e3hby657df3z"); // case 38:
1615 UNSUPPORTED("d2wzrbnbuinus07v39wtrzg6k"); // dx = sgn*(ND_lw(n)-(np.x-hp.x) + stepx);
1616 UNSUPPORTED("9ekmvj13iaml5ndszqyxa8eq"); // break;
1617 UNSUPPORTED("dk2te1ff65z24g7yge6td5w1h"); // case 41:
1618 UNSUPPORTED("54zp7hq4t1477ra0toi6nfc3s"); // dx = sgn*(ND_rw(n)-(tp.x-np.x) + stepx);
1619 UNSUPPORTED("9ekmvj13iaml5ndszqyxa8eq"); // break;
1620 UNSUPPORTED("eyz8046vmrhfd05uo35ud2o26"); // case 48:
1621 UNSUPPORTED("54zp7hq4t1477ra0toi6nfc3s"); // dx = sgn*(ND_rw(n)-(tp.x-np.x) + stepx);
1622 UNSUPPORTED("9ekmvj13iaml5ndszqyxa8eq"); // break;
1623 UNSUPPORTED("90hjo1ph35lg8jy4yywzro3nf"); // case 14:
1624 UNSUPPORTED("23d0sltghssogk5wk9024lh41"); // case 37:
1625 UNSUPPORTED("3dvppfwsy4t6h54uecu5i9hry"); // case 47:
1626 UNSUPPORTED("95n009mwo78h9zg1mx5yc3j7l"); // case 51:
1627 UNSUPPORTED("8ytmvd73zq9qu5c4ku4jcap4a"); // case 57:
1628 UNSUPPORTED("1tbpkq9m2taj7n3fj63cocjyn"); // case 58:
1629 UNSUPPORTED("u36w11cbjvnwnr2a9aukmfop"); // dx = sgn*((((ND_lw(n)-(np.x-tp.x)) + (ND_rw(n)-(hp.x-np.x)))/3.));
1630 UNSUPPORTED("9ekmvj13iaml5ndszqyxa8eq"); // break;
1631 UNSUPPORTED("a92kp8x7ej800lliiwzfuobem"); // case 73:
1632 UNSUPPORTED("c22dsvqh8h2a9v76t3u9dzyi4"); // dx = sgn*(ND_lw(n)-(np.x-tp.x) + stepx);
1633 UNSUPPORTED("9ekmvj13iaml5ndszqyxa8eq"); // break;
1634 UNSUPPORTED("3ijo2dao8lyum56ai3jujbmap"); // case 83:
1635 UNSUPPORTED("bjovxk89tmb4rsuvw09nszp4c"); // dx = sgn*(ND_lw(n)-(np.x-tp.x));
1636 UNSUPPORTED("9ekmvj13iaml5ndszqyxa8eq"); // break;
1637 UNSUPPORTED("f4rvirpst5ft3uksqp3okyjcf"); // case 84:
1638 UNSUPPORTED("1i3gur9btuj2u5s8ybbgmd87y"); // dx = sgn*((((ND_lw(n)-(np.x-tp.x)) + (ND_rw(n)-(hp.x-np.x)))/2.) + stepx);
1639 UNSUPPORTED("9ekmvj13iaml5ndszqyxa8eq"); // break;
1640 UNSUPPORTED("72fiv7451m2qnkzbfjcwv7pgx"); // case 74:
1641 UNSUPPORTED("1yel8f4unntut6w7bgdhgsvq1"); // case 75:
1642 UNSUPPORTED("93kdallci9a743giye6pd0y0f"); // case 85:
1643 UNSUPPORTED("919n1grj4s92nolxlmoqx4qqw"); // dx = sgn*((((ND_lw(n)-(np.x-tp.x)) + (ND_rw(n)-(hp.x-np.x)))/2.) + 2*stepx);
1644 UNSUPPORTED("9ekmvj13iaml5ndszqyxa8eq"); // break;
1645 UNSUPPORTED("1drv0xz8hp34qnf72b4jpprg2"); // default:
1646 UNSUPPORTED("9ekmvj13iaml5ndszqyxa8eq"); // break;
1647 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
1648 UNSUPPORTED("7jtwt2insvwb55tafkqx3boot"); // ty = MIN(dy, 3*(np.y + dy - tp.y));
1649 UNSUPPORTED("7vwwj5yxukw3e1k0twakhhgg3"); // hy = MIN(dy, 3*(np.y + dy - hp.y));
1650 UNSUPPORTED("1psokm6w9e7qw7fm2g1cayuk7"); // for (i = 0; i < cnt; i++) {
1651 UNSUPPORTED("a0u9ggni4r8gikqyyxf6wgaa5"); // e = edges[ind++];
1652 UNSUPPORTED("bgymnp4yekw8tzr70cnzzn9ez"); // dy += stepy, ty += stepy, hy += stepy, dx += sgn*stepx;
1653 UNSUPPORTED("8tkxpvgpxpilkes33cj73nr8o"); // pointn = 0;
1654 UNSUPPORTED("2j93ajzz3i9adm0syj177su98"); // points[pointn++] = tp;
1655 UNSUPPORTED("810s5qsu6it4vef0j2l5blqdm"); // points[pointn++] = pointfof(tp.x + dx, tp.y + ty / 3);
1656 UNSUPPORTED("r9y9vrfhtcn0ly9mxyipodbo"); // points[pointn++] = pointfof(tp.x + dx, np.y + dy);
1657 UNSUPPORTED("576fgxddv6rfxjwqc4ziex02m"); // points[pointn++] = pointfof((tp.x+hp.x)/2, np.y + dy);
1658 UNSUPPORTED("7wozarouo08hg5qnrcqmlrzv1"); // points[pointn++] = pointfof(hp.x - dx, np.y + dy);
1659 UNSUPPORTED("6z0fdvc1cxk34nwjps2o0vy9e"); // points[pointn++] = pointfof(hp.x - dx, hp.y + hy / 3);
1660 UNSUPPORTED("6t0sueo9zyoccfzqit4c7pvcy"); // points[pointn++] = hp;
1661 UNSUPPORTED("6nhnbriaxn7zi0ab1z8bkbzd"); // if (ED_label(e)) {
1662 UNSUPPORTED("95cz173vhlho6qxwqiafjznd6"); // if (GD_flip(agraphof(agtail(e)))) {
1663 UNSUPPORTED("5tq797micincut6x05g6eokxk"); // width = ED_label(e)->dimen.y;
1664 UNSUPPORTED("2wpl3ja2mlxynjamnyblux5j"); // height = ED_label(e)->dimen.x;
1665 UNSUPPORTED("175pyfe8j8mbhdwvrbx3gmew9"); // } else {
1666 UNSUPPORTED("5oxmxe34kl5iq4p27e8r7k11y"); // width = ED_label(e)->dimen.x;
1667 UNSUPPORTED("4eunm5kqgzuzko60febalr1gg"); // height = ED_label(e)->dimen.y;
1668 UNSUPPORTED("6t98dcecgbvbvtpycwiq2ynnj"); // }
1669 UNSUPPORTED("8ygvy3gas9hrwh99z44j4vw14"); // ED_label(e)->pos.y = ND_coord(n).y + dy + height / 2.0;
1670 UNSUPPORTED("89l2ovblsu6gnx97clo8ev1yk"); // ED_label(e)->pos.x = ND_coord(n).x;
1671 UNSUPPORTED("3tkba5lhpnujfu8lcz8lewsyn"); // ED_label(e)->set = NOT(0);
1672 UNSUPPORTED("df1lpvk1x9s2nna4dimpv5ixv"); // if (height > stepy)
1673 UNSUPPORTED("anykz2jqihvnza16edujzsmnm"); // dy += height - stepy;
1674 UNSUPPORTED("4mhlpjofolwivhm0tl8cxznly"); // }
1675 UNSUPPORTED("iyaed8bkc8xb16vcnxvc7d6s"); // clip_and_install(e, aghead(e), points, pointn, sinfo);
1676 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
1677 UNSUPPORTED("b9185t6i77ez1ac587ul8ndnc"); // return;
1678 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
1679
1680 throw new UnsupportedOperationException();
1681 }
1682
1683
1684
1685
1686 //3 3sr8gvj4141qql0v12lb89cyt
1687 // static void selfRight (edge_t* edges[], int ind, int cnt, double stepx, double sizey, splineInfo* sinfo)
1688 public static void selfRight(ST_Agedge_s.ArrayOfStar edges, int ind, int cnt, double stepx, double sizey, ST_splineInfo sinfo) {
1689 ENTERING("3sr8gvj4141qql0v12lb89cyt","selfRight");
1690 try {
1691 int i, sgn, point_pair;
1692 double hx, tx, stepy, dx, dy, width, height;
1693 final ST_pointf tp = new ST_pointf(), hp = new ST_pointf(), np = new ST_pointf();
1694 ST_Agnode_s n;
1695 ST_Agedge_s e;
1696 final ST_pointf.Array points = new ST_pointf.Array( 1000);
1697 int pointn;
1698 e = (ST_Agedge_s) edges.get(ind);
1699 n = agtail(e);
1700 stepy = (sizey / 2.) / cnt;
1701 stepy = MAX(stepy, 2.);
1702 pointn = 0;
1703 np.___(ND_coord(n));
1704 tp.___(ED_tail_port(e).p);
1705 tp.setDouble("x", tp.x + np.x);
1706 tp.setDouble("y", tp.y + np.y);
1707 hp.___(ED_head_port(e).p);
1708 hp.setDouble("x", hp.x + np.x);
1709 hp.setDouble("y", hp.y + np.y);
1710 if (tp.y >= hp.y) sgn = 1;
1711 else sgn = -1;
1712 dx = ND_rw(n);
1713 dy = 0;
1714 // certain adjustments are required for some point_pairs in order to improve the
1715 // display of the edge path between them
1716 point_pair = convert_sides_to_points(ED_tail_port(e).side,ED_head_port(e).side);
1717 switch(point_pair){
1718 case 32:
1719 case 65: if(tp.y == hp.y)
1720 sgn = -sgn;
1721 break;
1722 default:
1723 break;
1724 }
1725 tx = MIN(dx, 3*(np.x + dx - tp.x));
1726 hx = MIN(dx, 3*(np.x + dx - hp.x));
1727 for (i = 0; i < cnt; i++) {
1728 e = (ST_Agedge_s) edges.plus(ind++).getPtr();
1729 dx += stepx; tx += stepx; hx += stepx; dy += sgn*stepy;
1730 pointn = 0;
1731 points.plus(pointn++).setStruct(tp);
1732 points.plus(pointn++).setStruct(pointfof(tp.x + tx / 3, tp.y + dy));
1733 points.plus(pointn++).setStruct(pointfof(np.x + dx, tp.y + dy));
1734 points.plus(pointn++).setStruct(pointfof(np.x + dx, (tp.y+hp.y)/2));
1735 points.plus(pointn++).setStruct(pointfof(np.x + dx, hp.y - dy));
1736 points.plus(pointn++).setStruct(pointfof(hp.x + hx / 3, hp.y - dy));
1737 points.plus(pointn++).setStruct(hp);
1738 if (ED_label(e)!=null) {
1739 if (GD_flip(agraphof(agtail(e)))!=0) {
1740 width = ED_label(e).dimen.y;
1741 height = ED_label(e).dimen.x;
1742 } else {
1743 width = ED_label(e).dimen.x;
1744 height = ED_label(e).dimen.y;
1745 }
1746 ED_label(e).pos.setDouble("x", ND_coord(n).x + dx + width / 2.0);
1747 ED_label(e).pos.setDouble("y", ND_coord(n).y);
1748 ED_label(e).set= NOTI(false);
1749 if (width > stepx)
1750 dx += width - stepx;
1751 }
1752 clip_and_install(e, aghead(e), points.asPtr(), pointn, sinfo);
1753 }
1754 return;
1755 } finally {
1756 LEAVING("3sr8gvj4141qql0v12lb89cyt","selfRight");
1757 }
1758 }
1759
1760
1761
1762
1763 //3 pb3pqqgfs6pzscxz9g4ip66b
1764 // static void selfLeft (edge_t* edges[], int ind, int cnt, double stepx, double sizey, splineInfo* sinfo)
1765 public static Object selfLeft(Object... arg) {
1766 UNSUPPORTED("e2z2o5ybnr5tgpkt8ty7hwan1"); // static void
1767 UNSUPPORTED("e1xon7wncs6szxkut7r3ylg8a"); // selfLeft (edge_t* edges[], int ind, int cnt, double stepx, double sizey,
1768 UNSUPPORTED("304grcrgelbk1tnep5avkaylv"); // splineInfo* sinfo)
1769 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
1770 UNSUPPORTED("5kzmtbtnct9t7sugzyg0t1505"); // int i, sgn,point_pair;
1771 UNSUPPORTED("9oe5un4g42lfm6s5sruhajt5n"); // double hx, tx, stepy, dx, dy, width, height;
1772 UNSUPPORTED("7a2vzpy4tpc2fpmuf12nhtfca"); // pointf tp, hp, np;
1773 UNSUPPORTED("cjx5v6hayed3q8eeub1cggqca"); // node_t *n;
1774 UNSUPPORTED("5gypxs09iuryx5a2eho9lgdcp"); // edge_t *e;
1775 UNSUPPORTED("cutkizwxyuykhmayeb60m22av"); // pointf points[1000];
1776 UNSUPPORTED("79ig2xj5nogd41esx7798m82t"); // int pointn;
1777 UNSUPPORTED("e3wy3x07xdsusfbgecfcqg5lj"); // e = edges[ind];
1778 UNSUPPORTED("dul1axf6kjslblufm4omk5k32"); // n = agtail(e);
1779 UNSUPPORTED("2biq5cfn3eflyc9vcakp8z40j"); // stepy = (sizey / 2.) / cnt;
1780 UNSUPPORTED("ag6m3hxmkt2fwxfbd09gtse84"); // stepy = MAX(stepy,2.);
1781 UNSUPPORTED("dko3xt785e372nj0fiocjfas"); // pointn = 0;
1782 UNSUPPORTED("dqazhjgevh1spyg3xzwb3bcks"); // np = ND_coord(n);
1783 UNSUPPORTED("ehf9o80lfi02no07wz207kyp6"); // tp = ED_tail_port(e).p;
1784 UNSUPPORTED("f18822xrptoagri7001gamxwh"); // tp.x += np.x;
1785 UNSUPPORTED("pcmp8bdd8677mjvvef7kfh5y"); // tp.y += np.y;
1786 UNSUPPORTED("b4mfdkjjk3n78ssy4h80g5lc6"); // hp = ED_head_port(e).p;
1787 UNSUPPORTED("e7rhhgc42h5z6kvvnkz6wfn0r"); // hp.x += np.x;
1788 UNSUPPORTED("bisu3qji6rw3wu3srdv8vhrxb"); // hp.y += np.y;
1789 UNSUPPORTED("9pq7cc11wf5inm1gtl9nubola"); // if (tp.y >= hp.y) sgn = 1;
1790 UNSUPPORTED("cvln1r5ffbp1z1sq0y6ago4og"); // else sgn = -1;
1791 UNSUPPORTED("5t4m5gzysfvdd5gfy1snezlv1"); // dx = ND_lw(n), dy = 0.;
1792 UNSUPPORTED("7sojr831wk2u8c86xerkjyojd"); // // certain adjustments are required for some point_pairs in order to improve the
1793 UNSUPPORTED("byuachd2fjte06s7xwnbmxlcx"); // // display of the edge path between them
1794 UNSUPPORTED("eje36stfd9p7ulgo4qk6gjwvx"); // point_pair = convert_sides_to_points(ED_tail_port(e).side,ED_head_port(e).side);
1795 UNSUPPORTED("2qmvjd6iwnaqwop679caoaxnn"); // switch(point_pair){
1796 UNSUPPORTED("1ztn6qfhzw55cdorxgbs8mvaw"); // case 12:
1797 UNSUPPORTED("5nakmzm2t38aw7gowxf3597ny"); // case 67:
1798 UNSUPPORTED("bvy8vwcvwtkz9nqaq8173x6bh"); // if(tp.y == hp.y)
1799 UNSUPPORTED("cffqbosum7o1l5iposy2evrfl"); // sgn = -sgn;
1800 UNSUPPORTED("9ekmvj13iaml5ndszqyxa8eq"); // break;
1801 UNSUPPORTED("5vhsnixpf0pg2oz10ps2valyn"); // default:
1802 UNSUPPORTED("9ekmvj13iaml5ndszqyxa8eq"); // break;
1803 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
1804 UNSUPPORTED("p2znjsd0rhcqyou2d4tcp4m3"); // tx = MIN(dx, 3*(tp.x + dx - np.x));
1805 UNSUPPORTED("9fc36i8mydvpx5fb9s7oomgg9"); // hx = MIN(dx, 3*(hp.x + dx - np.x));
1806 UNSUPPORTED("1psokm6w9e7qw7fm2g1cayuk7"); // for (i = 0; i < cnt; i++) {
1807 UNSUPPORTED("a0u9ggni4r8gikqyyxf6wgaa5"); // e = edges[ind++];
1808 UNSUPPORTED("corxl7j4p1epemy3mlhnxuh7f"); // dx += stepx, tx += stepx, hx += stepx, dy += sgn*stepy;
1809 UNSUPPORTED("8tkxpvgpxpilkes33cj73nr8o"); // pointn = 0;
1810 UNSUPPORTED("2j93ajzz3i9adm0syj177su98"); // points[pointn++] = tp;
1811 UNSUPPORTED("1d3rn5phdxf8hhlmh3b3wp7lh"); // points[pointn++] = pointfof(tp.x - tx / 3, tp.y + dy);
1812 UNSUPPORTED("2wxmjkn0pmrslgogz96iftqs0"); // points[pointn++] = pointfof(np.x - dx, tp.y + dy);
1813 UNSUPPORTED("clocavnhfvokhhthg9cujkqa0"); // points[pointn++] = pointfof(np.x - dx, (tp.y+hp.y)/2);
1814 UNSUPPORTED("6tz9mqs3ff68mo5r1xmq2zyc4"); // points[pointn++] = pointfof(np.x - dx, hp.y - dy);
1815 UNSUPPORTED("a6oh2uv36d620c50ery1vvmd7"); // points[pointn++] = pointfof(hp.x - hx / 3, hp.y - dy);
1816 UNSUPPORTED("6t0sueo9zyoccfzqit4c7pvcy"); // points[pointn++] = hp;
1817 UNSUPPORTED("6nhnbriaxn7zi0ab1z8bkbzd"); // if (ED_label(e)) {
1818 UNSUPPORTED("7ewy2tc2zfli5k6dghdnao8tw"); // if (GD_flip(agraphof(agtail(e)))) {
1819 UNSUPPORTED("7d83ym7h1stime4wbmifcx809"); // width = ED_label(e)->dimen.y;
1820 UNSUPPORTED("44m5sni7g3n6fnk6ca57u9dc2"); // height = ED_label(e)->dimen.x;
1821 UNSUPPORTED("s8koz5x85ytpnff1o94rlxqy"); // } else {
1822 UNSUPPORTED("66vu2joy64r1yrkvp3oolz1ws"); // width = ED_label(e)->dimen.x;
1823 UNSUPPORTED("d6bobo1f6gxkxa2fffvmn41g0"); // height = ED_label(e)->dimen.y;
1824 UNSUPPORTED("klxoy56t7b20wxnwqm0qoofz"); // }
1825 UNSUPPORTED("e7au5qlazz8i26lvbl9c5k657"); // ED_label(e)->pos.x = ND_coord(n).x - dx - width / 2.0;
1826 UNSUPPORTED("dfo4prcp2cafipoufh8bql0id"); // ED_label(e)->pos.y = ND_coord(n).y;
1827 UNSUPPORTED("7efx4yevu8176mmuqjtk4bfss"); // ED_label(e)->set = NOT(0);
1828 UNSUPPORTED("8ivpntotxg2rgw585hkdgsixh"); // if (width > stepx)
1829 UNSUPPORTED("34ujzn0u4l056cgabsn09ncw8"); // dx += width - stepx;
1830 UNSUPPORTED("4mhlpjofolwivhm0tl8cxznly"); // }
1831 UNSUPPORTED("5fvid2bi7fy5jv5dyttfprpzj"); // clip_and_install(e, aghead(e), points, pointn, sinfo);
1832 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
1833 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
1834
1835 throw new UnsupportedOperationException();
1836 }
1837
1838
1839
1840
1841 //3 678whq05s481ertx02jloteu3
1842 // int selfRightSpace (edge_t* e)
1843 public static int selfRightSpace(ST_Agedge_s e) {
1844 ENTERING("678whq05s481ertx02jloteu3","selfRightSpace");
1845 try {
1846 int sw=0;
1847 double label_width;
1848 ST_textlabel_t l = ED_label(e);
1849 if ((N(ED_tail_port(e).defined) && N(ED_head_port(e).defined)) ||
1850 (
1851 N(ED_tail_port(e).side & (1<<3)) &&
1852 N(ED_head_port(e).side & (1<<3)) &&
1853 ((ED_tail_port(e).side != ED_head_port(e).side) ||
1854 (N(ED_tail_port(e).side & ((1<<2)|(1<<0)))))
1855 )) {
1856 sw = 18;
1857 if (l!=null) {
1858 label_width = GD_flip(agraphof(aghead(e)))!=0 ? l.dimen.y : l.dimen.x;
1859 sw += label_width;
1860 }
1861 }
1862 else sw = 0;
1863 return sw;
1864 } finally {
1865 LEAVING("678whq05s481ertx02jloteu3","selfRightSpace");
1866 }
1867 }
1868
1869
1870
1871
1872 //3 bt3fwgprixbc5rceeewozdqr9
1873 // void makeSelfEdge(path * P, edge_t * edges[], int ind, int cnt, double sizex, double sizey, splineInfo * sinfo)
1874 public static void makeSelfEdge(ST_path P, ST_Agedge_s.ArrayOfStar edges, int ind, int cnt, double sizex, double sizey, ST_splineInfo sinfo) {
1875 ENTERING("bt3fwgprixbc5rceeewozdqr9","makeSelfEdge");
1876 try {
1877 ST_Agedge_s e;
1878 e = (ST_Agedge_s) edges.get(ind);
1879 /* self edge without ports or
1880 * self edge with all ports inside, on the right, or at most 1 on top
1881 * and at most 1 on bottom
1882 */
1883 if ((N(ED_tail_port(e).defined) && N(ED_head_port(e).defined)) ||
1884 (
1885 N(ED_tail_port(e).side & (1<<3)) &&
1886 N(ED_head_port(e).side & (1<<3)) &&
1887 ((ED_tail_port(e).side != ED_head_port(e).side) ||
1888 (N(ED_tail_port(e).side & ((1<<2)|(1<<0))))))) {
1889 selfRight(edges, ind, cnt, sizex, sizey, sinfo);
1890 }
1891 /* self edge with port on left side */
1892 else if ((ED_tail_port(e).side & (1<<3))!=0 || (ED_head_port(e).side & (1<<3))!=0) {
1893 /* handle L-R specially */
1894 if ((ED_tail_port(e).side & (1<<1))!=0 || (ED_head_port(e).side & (1<<1))!=0) {
1895 selfTop(edges, ind, cnt, sizex, sizey, sinfo);
1896 }
1897 else {
1898 selfLeft(edges, ind, cnt, sizex, sizey, sinfo);
1899 }
1900 }
1901 /* self edge with both ports on top side */
1902 else if ((ED_tail_port(e).side & (1<<2))!=0) {
1903 selfTop(edges, ind, cnt, sizex, sizey, sinfo);
1904 }
1905 else if ((ED_tail_port(e).side & (1<<0))!=0) {
1906 selfBottom(edges, ind, cnt, sizex, sizey, sinfo);
1907 }
1908 else assert(false);
1909 } finally {
1910 LEAVING("bt3fwgprixbc5rceeewozdqr9","makeSelfEdge");
1911 }
1912 }
1913
1914
1915
1916
1917 //3 9br31owvzkmo6hpgi5o3yqs6u
1918 // void makePortLabels(edge_t * e)
1919 public static Object makePortLabels(Object... arg) {
1920 UNSUPPORTED("7h8uwyqfmkrxlwe199ha5685e"); // void makePortLabels(edge_t * e)
1921 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
1922 UNSUPPORTED("8592v0z3b9lcnaz6kmep9i7fb"); // /* Only use this if labelangle or labeldistance is set for the edge;
1923 UNSUPPORTED("60d7j1whu0efnsich22dgcgct"); // * otherwise, handle with external labels.
1924 UNSUPPORTED("795vpnc8yojryr8b46aidsu69"); // */
1925 UNSUPPORTED("exadv83959uk532g2sef35k8d"); // if (!E_labelangle && !E_labeldistance) return;
1926 UNSUPPORTED("ex1c7eojs5nx6t10t191xuzvj"); // if (ED_head_label(e) && !ED_head_label(e)->set) {
1927 UNSUPPORTED("1hjdl17xghg2aygn0psu0p2oq"); // if (place_portlabel(e, NOT(0)))
1928 UNSUPPORTED("3rgc9w83agr2ba9s9muyubzqz"); // updateBB(agraphof(agtail(e)), ED_head_label(e));
1929 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
1930 UNSUPPORTED("twsg91c027nxls3s64jxn4cy"); // if (ED_tail_label(e) && !ED_tail_label(e)->set) {
1931 UNSUPPORTED("bu5i9ibw82s14f8vgd3nz2s46"); // if (place_portlabel(e, 0))
1932 UNSUPPORTED("80z5y1fe03judv18cnzdcbyww"); // updateBB(agraphof(agtail(e)), ED_tail_label(e));
1933 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
1934 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
1935
1936 throw new UnsupportedOperationException();
1937 }
1938
1939
1940
1941
1942 //3 7wyn51o9k6u7joaq9k18boffh
1943 // static void endPoints(splines * spl, pointf * p, pointf * q)
1944 public static void endPoints(ST_splines spl, ST_pointf p, ST_pointf q) {
1945 ENTERING("7wyn51o9k6u7joaq9k18boffh","endPoints");
1946 try {
1947 final ST_bezier bz = new ST_bezier();
1948 bz.____(spl.list.get(0));
1949 if (bz.sflag!=0) {
1950 UNSUPPORTED("4wazlko0bxmzxoobqacij1btk"); // *p = bz.sp;
1951 }
1952 else {
1953 p.____(bz.list.get(0));
1954 }
1955 bz.____(spl.list.plus(spl.size-1).getPtr());
1956 if (bz.eflag!=0) {
1957 UNSUPPORTED("78u9nvs8u7rxturidz5nf8hn4"); // *q = bz.ep;
1958 }
1959 else {
1960 q.____(bz.list.get(bz.size-1));
1961 }
1962 } finally {
1963 LEAVING("7wyn51o9k6u7joaq9k18boffh","endPoints");
1964 }
1965 }
1966
1967
1968
1969
1970 //3 4v696uonfsqf7e6iafx99ovoj
1971 // static pointf polylineMidpoint (splines* spl, pointf* pp, pointf* pq)
1972 public static Object polylineMidpoint(Object... arg) {
1973 UNSUPPORTED("2zzd7mrm2u540dwuyzehozffj"); // static pointf
1974 UNSUPPORTED("2h8atayvi2acugdlg0pai43ib"); // polylineMidpoint (splines* spl, pointf* pp, pointf* pq)
1975 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
1976 UNSUPPORTED("37thdceezsvepe7tlyfatrbcw"); // bezier bz;
1977 UNSUPPORTED("88fnnm6x9xzbtbojfr24qfqgy"); // int i, j, k;
1978 UNSUPPORTED("ejxa966mpm7v3o59230r3vwjz"); // double d, dist = 0;
1979 UNSUPPORTED("8nmqlo5bwer36kl8mp1gtz5bf"); // pointf pf, qf, mf;
1980 UNSUPPORTED("4z4l1zu33m72iirxmuhdg36iw"); // for (i = 0; i < spl->size; i++) {
1981 UNSUPPORTED("ewoeh3d6otc2rgpaxuzwm38x7"); // bz = spl->list[i];
1982 UNSUPPORTED("99as77xwpn23hvyqfywj6oi2g"); // for (j = 0, k=3; k < bz.size; j+=3,k+=3) {
1983 UNSUPPORTED("2gecyey0ki14xgfwd8lmdmexb"); // pf = bz.list[j];
1984 UNSUPPORTED("apnzdgopwxw4q1fw7qtnifypo"); // qf = bz.list[k];
1985 UNSUPPORTED("829tfml4q5a7brr6x4nun2cuc"); // dist += DIST(pf, qf);
1986 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
1987 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
1988 UNSUPPORTED("em4an03o2ddsawe30b5l50d8k"); // dist /= 2;
1989 UNSUPPORTED("4z4l1zu33m72iirxmuhdg36iw"); // for (i = 0; i < spl->size; i++) {
1990 UNSUPPORTED("ewoeh3d6otc2rgpaxuzwm38x7"); // bz = spl->list[i];
1991 UNSUPPORTED("99as77xwpn23hvyqfywj6oi2g"); // for (j = 0, k=3; k < bz.size; j+=3,k+=3) {
1992 UNSUPPORTED("2gecyey0ki14xgfwd8lmdmexb"); // pf = bz.list[j];
1993 UNSUPPORTED("apnzdgopwxw4q1fw7qtnifypo"); // qf = bz.list[k];
1994 UNSUPPORTED("9efld0l6jtgzu237fqme6vlih"); // d = DIST(pf,qf);
1995 UNSUPPORTED("uolmj8tx8ul9z4zxcs6xt03h"); // if (d >= dist) {
1996 UNSUPPORTED("5pequ7xrb4otn4nmoo4xzbppn"); // *pp = pf;
1997 UNSUPPORTED("6y0c82r8tb4tcxzx62aes05hf"); // *pq = qf;
1998 UNSUPPORTED("43wwwo6k1nlge8ou0cyuxjsws"); // mf.x = ((qf.x*dist) + (pf.x*(d-dist)))/d;
1999 UNSUPPORTED("7rndnud8ft5vs2kx1fjwhymtm"); // mf.y = ((qf.y*dist) + (pf.y*(d-dist)))/d;
2000 UNSUPPORTED("9t6wng08fgzru4uhripezjnkg"); // return mf;
2001 UNSUPPORTED("6t98dcecgbvbvtpycwiq2ynnj"); // }
2002 UNSUPPORTED("5c97f6vfxny0zz35l2bu4maox"); // else
2003 UNSUPPORTED("9pooqnj2v1895ue6jlimhrxgr"); // dist -= d;
2004 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
2005 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
2006 UNSUPPORTED("8kllckmfkh8837qtc8hwoh74j"); // assert (0); /* should never get here */
2007 UNSUPPORTED("cs6egh6pje9pqxb748vbj2q51"); // return mf;
2008 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
2009
2010 throw new UnsupportedOperationException();
2011 }
2012
2013
2014
2015
2016 //3 8hpmwzlqbj1nii32zubbe9hru
2017 // pointf edgeMidpoint (graph_t* g, edge_t * e)
2018 public static ST_pointf edgeMidpoint(ST_Agraph_s g, ST_Agedge_s e) {
2019 ENTERING("8hpmwzlqbj1nii32zubbe9hru","edgeMidpoint");
2020 try {
2021 return edgeMidpoint_(g, e).copy();
2022 } finally {
2023 LEAVING("8hpmwzlqbj1nii32zubbe9hru","edgeMidpoint");
2024 }
2025 }
2026
2027
2028 private static ST_pointf edgeMidpoint_(ST_Agraph_s g, ST_Agedge_s e) {
2029 int et = (GD_flags(g) & (7 << 1));
2030 final ST_pointf d = new ST_pointf();
2031 final ST_pointf spf = new ST_pointf();
2032 final ST_pointf p = new ST_pointf();
2033 final ST_pointf q = new ST_pointf();
2034 endPoints((ST_splines) ED_spl(e), p, q);
2035 if (APPROXEQPT(p, q, MILLIPOINT)) { /* degenerate spline */
2036 UNSUPPORTED("7i8m5mpfnv7m9uqxh015zfdaj"); // spf = p;
2037 }
2038 else if ((et == (5 << 1)) || (et == (2 << 1))) {
2039 d.x = (q.x + p.x) / 2.;
2040 d.y = (p.y + q.y) / 2.;
2041 spf.___(dotneato_closest((ST_splines)ED_spl(e), d));
2042 }
2043 else { /* ET_PLINE, ET_ORTHO or ET_LINE */
2044 UNSUPPORTED("6he3hi05vusuthrchn4enk7o6"); // spf = polylineMidpoint (ED_spl(e), &p, &q);
2045 }
2046 return spf;
2047 }
2048
2049
2050
2051
2052 //3 3msxu7tuq8q3m0sqtthq29flm
2053 // void addEdgeLabels(graph_t* g, edge_t * e, pointf rp, pointf rq)
2054 public static Object addEdgeLabels(Object... arg) {
2055 UNSUPPORTED("ldo41gaevp1jys68pnbguk3z"); // void addEdgeLabels(graph_t* g, edge_t * e, pointf rp, pointf rq)
2056 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
2057 UNSUPPORTED("as6htoa1c0fv7e0v9a7h98p5h"); // makePortLabels(e);
2058 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
2059
2060 throw new UnsupportedOperationException();
2061 }
2062
2063
2064
2065
2066 //3 54bdrq95zwpwmxf86ln5eom99
2067 // int place_portlabel(edge_t * e, boolean head_p)
2068 public static Object place_portlabel(Object... arg) {
2069 UNSUPPORTED("bnu1zhg128g969c502d6btzbs"); // int place_portlabel(edge_t * e, boolean head_p)
2070 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
2071 UNSUPPORTED("2l3ombz9fng1wmxwdgkjokemn"); // textlabel_t *l;
2072 UNSUPPORTED("6tl9mepc2bett364jduh2q4mf"); // splines *spl;
2073 UNSUPPORTED("3hs99atzl1l857khumt6ycmbh"); // bezier *bez;
2074 UNSUPPORTED("7dsz4anx5o7u9qq3lzzknay2f"); // double dist, angle;
2075 UNSUPPORTED("65fz6d9e07e4c95zyum8bt633"); // pointf c[4], pe, pf;
2076 UNSUPPORTED("b17di9c7wgtqm51bvsyxz6e2f"); // int i;
2077 UNSUPPORTED("8l8zbwbivibv6xgq0pxgwvq9n"); // char* la;
2078 UNSUPPORTED("e5b3d0nivpt5k8dkz65otlbpz"); // char* ld;
2079 UNSUPPORTED("2kp0srstg11z7hyemmxoo4e52"); // if (ED_edge_type(e) == 6)
2080 UNSUPPORTED("c9ckhc8veujmwcw0ar3u3zld4"); // return 0;
2081 UNSUPPORTED("chxgak0231km4auc7310y9pk8"); // /* add label here only if labelangle or labeldistance is defined; else, use external label */
2082 UNSUPPORTED("t397yg339z571sgse05vtq1w"); // if ((!E_labelangle || (*(la = agxget(e,E_labelangle)) == '\0')) &&
2083 UNSUPPORTED("8uvkv1d0qbznkf3xuozvc7qzf"); // (!E_labeldistance || (*(ld = agxget(e,E_labeldistance)) == '\0'))) {
2084 UNSUPPORTED("c9ckhc8veujmwcw0ar3u3zld4"); // return 0;
2085 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
2086 UNSUPPORTED("tm1vvm5oplen4vv9y7lqo6xf"); // l = head_p ? ED_head_label(e) : ED_tail_label(e);
2087 UNSUPPORTED("3gtifp1yui3al397n1i9akefw"); // if ((spl = getsplinepoints(e)) == NULL) return 0;
2088 UNSUPPORTED("2ia4wsp0i4dpjelpvoiytkbi7"); // if (!head_p) {
2089 UNSUPPORTED("7ahdd5aq924y6mwot89trjyra"); // bez = &spl->list[0];
2090 UNSUPPORTED("efd82pfo3nyqu51w9264hj3kl"); // if (bez->sflag) {
2091 UNSUPPORTED("47udgszrx6pdd38kn2sweuhwh"); // pe = bez->sp;
2092 UNSUPPORTED("e5nb3zmvz6fp6xqkor9i4yf0"); // pf = bez->list[0];
2093 UNSUPPORTED("7yhr8hn3r6wohafwxrt85b2j2"); // } else {
2094 UNSUPPORTED("61yxghl3kwjuso7s1p0n7t1n2"); // pe = bez->list[0];
2095 UNSUPPORTED("ced0y25bh0hjo9cnppppf7h2x"); // for (i = 0; i < 4; i++)
2096 UNSUPPORTED("1y5d5t4i694a5f0j7ee6a7z2y"); // c[i] = bez->list[i];
2097 UNSUPPORTED("92m7eg16654p0n58cwr883aqa"); // pf = Bezier(c, 3, 0.1, NULL, NULL);
2098 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
2099 UNSUPPORTED("c07up7zvrnu2vhzy6d7zcu94g"); // } else {
2100 UNSUPPORTED("4s7tr233odbsuhmyc1ksdmnjs"); // bez = &spl->list[spl->size - 1];
2101 UNSUPPORTED("5d2ntg5cm9vsqeat2p88bel1l"); // if (bez->eflag) {
2102 UNSUPPORTED("er4lbg8eptuapclxc4o7sqvam"); // pe = bez->ep;
2103 UNSUPPORTED("91krm055d5o8geih7ot17sp97"); // pf = bez->list[bez->size - 1];
2104 UNSUPPORTED("7yhr8hn3r6wohafwxrt85b2j2"); // } else {
2105 UNSUPPORTED("70e7dqxnvd7agtj92eve28u4r"); // pe = bez->list[bez->size - 1];
2106 UNSUPPORTED("ced0y25bh0hjo9cnppppf7h2x"); // for (i = 0; i < 4; i++)
2107 UNSUPPORTED("7v8xa8y04nup6v5cwzsdkqs2z"); // c[i] = bez->list[bez->size - 4 + i];
2108 UNSUPPORTED("8pbi2gjbe0mg3ghpfkt7kwpm9"); // pf = Bezier(c, 3, 0.9, NULL, NULL);
2109 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
2110 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
2111 UNSUPPORTED("14iusq03pj0vtm5mkr4ny0o1y"); // angle = atan2(pf.y - pe.y, pf.x - pe.x) +
2112 UNSUPPORTED("2jyhji8yxpqj21l189dgr1wcz"); // RADIANS(late_double(e, E_labelangle, -25, -180.0));
2113 UNSUPPORTED("5ibf647cm3agxlbdzq27a2sed"); // dist = 10 * late_double(e, E_labeldistance, 1.0, 0.0);
2114 UNSUPPORTED("etyjtm4uw7xa47lhonum31o4r"); // l->pos.x = pe.x + dist * cos(angle);
2115 UNSUPPORTED("b28y7lmoordi3n69md9mfl7k9"); // l->pos.y = pe.y + dist * sin(angle);
2116 UNSUPPORTED("5nziiydj5nf07y5wrg22fpu86"); // l->set = NOT(0);
2117 UNSUPPORTED("3tcgz4dupb6kw5tdk7n3pca2l"); // return 1;
2118 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
2119
2120 throw new UnsupportedOperationException();
2121 }
2122
2123
2124
2125
2126 //3 2tbz9tbkzx8os72qiyhgnby67
2127 // splines *getsplinepoints(edge_t * e)
2128 public static ST_splines getsplinepoints(ST_Agedge_s e) {
2129 ENTERING("2tbz9tbkzx8os72qiyhgnby67","getsplinepoints");
2130 try {
2131 ST_Agedge_s le;
2132 ST_splines sp;
2133 for (le = e; N(sp = ED_spl(le)) && ED_edge_type(le) != 0;
2134 le = ED_to_orig(le));
2135 if (sp == null)
2136 UNSUPPORTED("8oq6gemxrb07hmmw0gtux7os5"); // agerr (AGERR, "getsplinepoints: no spline points available for edge (%s,%s)\n",
2137 // UNSUPPORTED("bw49w8tpkv5eblsevof4kelef"); // agnameof(agtail(e)), agnameof(aghead(e)));
2138 return sp;
2139 } finally {
2140 LEAVING("2tbz9tbkzx8os72qiyhgnby67","getsplinepoints");
2141 }
2142 }
2143
2144
2145 }