Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1857 lines
62 KiB

  1. /*
  2. ** Copyright 1992, Silicon Graphics, Inc.
  3. ** All Rights Reserved.
  4. **
  5. ** This is UNPUBLISHED PROPRIETARY SOURCE CODE of Silicon Graphics, Inc.;
  6. ** the contents of this file may not be disclosed to third parties, copied or
  7. ** duplicated in any form, in whole or in part, without the prior written
  8. ** permission of Silicon Graphics, Inc.
  9. **
  10. ** RESTRICTED RIGHTS LEGEND:
  11. ** Use, duplication or disclosure by the Government is subject to restrictions
  12. ** as set forth in subdivision (c)(1)(ii) of the Rights in Technical Data
  13. ** and Computer Software clause at DFARS 252.227-7013, and/or in similar or
  14. ** successor clauses in the FAR, DOD or NASA FAR Supplement. Unpublished -
  15. ** rights reserved under the Copyright Laws of the United States.
  16. **
  17. */
  18. #include <stdlib.h>
  19. #include <setjmp.h>
  20. struct JumpBuffer {
  21. jmp_buf buf;
  22. };
  23. #define mysetjmp(x) setjmp((x)->buf)
  24. #define mylongjmp(x,y) longjmp((x)->buf, y)
  25. /* <<AT&T USL C++ Language System <3.0.1> 02/03/92>> */
  26. /* < ../core/subdivider.c++ > */
  27. void *__vec_new (void *, int , int , void *);
  28. void __vec_ct (void *, int , int , void *);
  29. void __vec_dt (void *, int , int , void *);
  30. void __vec_delete (void *, int , int , void *, int , int );
  31. typedef int (*__vptp)(void);
  32. struct __mptr {short d; short i; __vptp f; };
  33. typedef unsigned int size_t ;
  34. // extern void *malloc (size_t );
  35. // extern void free (void *);
  36. struct JumpBuffer;
  37. struct Buffer;
  38. struct Buffer {
  39. struct Buffer *next__6Buffer ;
  40. };
  41. struct Pool;
  42. enum __Q2_4Pool5Magic { is_allocated__Q2_4Pool5Magic = 62369, is_free__Q2_4Pool5Magic = 61858} ;
  43. struct Pool {
  44. struct Buffer *freelist__4Pool ;
  45. char *blocklist__4Pool [32];
  46. int nextblock__4Pool ;
  47. char *curblock__4Pool ;
  48. int buffersize__4Pool ;
  49. int nextsize__4Pool ;
  50. int nextfree__4Pool ;
  51. int initsize__4Pool ;
  52. char *name__4Pool ;
  53. int magic__4Pool ;
  54. };
  55. void __glgrow__4PoolFv (struct Pool *);
  56. struct PooledObj;
  57. struct PooledObj {
  58. char __W3__9PooledObj ;
  59. };
  60. typedef float REAL ;
  61. typedef void (*Pfvv )(void );
  62. typedef void (*Pfvf )(float *);
  63. typedef int (*cmpfunc )(void *, void *);
  64. typedef REAL Knot ;
  65. typedef REAL *Knot_ptr ;
  66. struct TrimVertex;
  67. struct PwlArc;
  68. struct PwlArc {
  69. char __W3__9PooledObj ;
  70. struct TrimVertex *pts__6PwlArc ;
  71. int npts__6PwlArc ;
  72. long type__6PwlArc ;
  73. };
  74. struct TrimVertex;
  75. struct TrimVertex {
  76. REAL param__10TrimVertex [2];
  77. long nuid__10TrimVertex ;
  78. };
  79. typedef struct TrimVertex *TrimVertex_p ;
  80. struct Bin;
  81. struct Arc;
  82. struct BezierArc;
  83. typedef struct Arc *Arc_ptr ;
  84. enum arc_side { arc_none = 0, arc_right = 1, arc_top = 2, arc_left = 3, arc_bottom = 4} ;
  85. struct Arc;
  86. struct Arc {
  87. char __W3__9PooledObj ;
  88. Arc_ptr prev__3Arc ;
  89. Arc_ptr next__3Arc ;
  90. Arc_ptr link__3Arc ;
  91. struct BezierArc *bezierArc__3Arc ;
  92. struct PwlArc *pwlArc__3Arc ;
  93. long type__3Arc ;
  94. long nuid__3Arc ;
  95. };
  96. extern int __glbezier_tag__3Arc ;
  97. extern int __glarc_tag__3Arc ;
  98. extern int __gltail_tag__3Arc ;
  99. struct Bin;
  100. struct Bin {
  101. struct Arc *head__3Bin ;
  102. struct Arc *current__3Bin ;
  103. };
  104. struct Sorter;
  105. struct Sorter {
  106. int es__6Sorter ;
  107. struct __mptr *__vptr__6Sorter ;
  108. };
  109. struct FlistSorter;
  110. struct FlistSorter {
  111. int es__6Sorter ;
  112. struct __mptr *__vptr__6Sorter ;
  113. };
  114. struct Flist;
  115. struct Flist {
  116. REAL *pts__5Flist ;
  117. int npts__5Flist ;
  118. int start__5Flist ;
  119. int end__5Flist ;
  120. struct FlistSorter sorter__5Flist ;
  121. };
  122. struct Backend;
  123. struct Jarcloc;
  124. struct Jarcloc {
  125. struct Arc *arc__7Jarcloc ;
  126. struct TrimVertex *p__7Jarcloc ;
  127. struct TrimVertex *plast__7Jarcloc ;
  128. };
  129. struct Trimline;
  130. struct Trimline {
  131. struct TrimVertex **pts__8Trimline ;
  132. long numverts__8Trimline ;
  133. long i__8Trimline ;
  134. long size__8Trimline ;
  135. struct Jarcloc jarcl__8Trimline ;
  136. struct TrimVertex t__8Trimline ;
  137. struct TrimVertex b__8Trimline ;
  138. struct TrimVertex *tinterp__8Trimline ;
  139. struct TrimVertex *binterp__8Trimline ;
  140. };
  141. struct Gridline;
  142. struct Gridline {
  143. long v__8Gridline ;
  144. REAL vval__8Gridline ;
  145. long vindex__8Gridline ;
  146. long ustart__8Gridline ;
  147. long uend__8Gridline ;
  148. };
  149. struct Uarray;
  150. struct Uarray {
  151. long size__6Uarray ;
  152. long ulines__6Uarray ;
  153. REAL *uarray__6Uarray ;
  154. };
  155. struct Backend;
  156. struct TrimRegion;
  157. void __gl__dt__8TrimlineFv (struct Trimline *, int );
  158. void __gl__dt__6UarrayFv (struct Uarray *, int );
  159. struct TrimRegion {
  160. struct Trimline left__10TrimRegion ;
  161. struct Trimline right__10TrimRegion ;
  162. struct Gridline top__10TrimRegion ;
  163. struct Gridline bot__10TrimRegion ;
  164. struct Uarray uarray__10TrimRegion ;
  165. REAL oneOverDu__10TrimRegion ;
  166. };
  167. struct GridTrimVertex;
  168. struct __Q2_4Hull4Side;
  169. struct __Q2_4Hull4Side {
  170. struct Trimline *left__Q2_4Hull4Side ;
  171. struct Gridline *line__Q2_4Hull4Side ;
  172. struct Trimline *right__Q2_4Hull4Side ;
  173. long index__Q2_4Hull4Side ;
  174. };
  175. struct Hull;
  176. struct Hull {
  177. struct __Q2_4Hull4Side lower__4Hull ;
  178. struct __Q2_4Hull4Side upper__4Hull ;
  179. struct Trimline fakeleft__4Hull ;
  180. struct Trimline fakeright__4Hull ;
  181. struct TrimRegion *PTrimRegion;
  182. struct TrimRegion OTrimRegion;
  183. };
  184. struct Backend;
  185. struct GridTrimVertex;
  186. struct Mesher;
  187. struct Mesher {
  188. struct __Q2_4Hull4Side lower__4Hull ;
  189. struct __Q2_4Hull4Side upper__4Hull ;
  190. struct Trimline fakeleft__4Hull ;
  191. struct Trimline fakeright__4Hull ;
  192. struct TrimRegion *PTrimRegion;
  193. struct Backend *backend__6Mesher ;
  194. struct Pool p__6Mesher ;
  195. unsigned int stacksize__6Mesher ;
  196. struct GridTrimVertex **vdata__6Mesher ;
  197. struct GridTrimVertex *last__6Mesher [2];
  198. int itop__6Mesher ;
  199. int lastedge__6Mesher ;
  200. struct TrimRegion OTrimRegion;
  201. };
  202. extern float __glZERO__6Mesher ;
  203. struct Backend;
  204. struct GridVertex;
  205. struct GridTrimVertex;
  206. struct CoveAndTiler;
  207. struct CoveAndTiler {
  208. struct Backend *backend__12CoveAndTiler ;
  209. struct TrimRegion *PTrimRegion;
  210. struct TrimRegion OTrimRegion;
  211. };
  212. extern int __glMAXSTRIPSIZE__12CoveAndTil0 ;
  213. struct Backend;
  214. struct Slicer;
  215. struct Slicer {
  216. struct Backend *backend__12CoveAndTiler ;
  217. struct TrimRegion *PTrimRegion;
  218. struct Mesher OMesher;
  219. struct Backend *backend__6Slicer ;
  220. REAL oneOverDu__6Slicer ;
  221. REAL du__6Slicer ;
  222. REAL dv__6Slicer ;
  223. int isolines__6Slicer ;
  224. };
  225. struct BezierArc;
  226. struct TrimVertexPool;
  227. struct ArcTessellator;
  228. struct ArcTessellator {
  229. struct Pool *pwlarcpool__14ArcTessellator ;
  230. struct TrimVertexPool *trimvertexpool__14ArcTessellator ;
  231. };
  232. extern REAL __glgl_Bernstein__14ArcTessell0 [][24][24];
  233. struct TrimVertexPool;
  234. struct TrimVertexPool {
  235. struct Pool pool__14TrimVertexPool ;
  236. struct TrimVertex **vlist__14TrimVertexPool ;
  237. int nextvlistslot__14TrimVertexPool ;
  238. int vlistsize__14TrimVertexPool ;
  239. };
  240. struct Renderhints;
  241. struct Backend;
  242. struct Quilt;
  243. struct Patchlist;
  244. struct Curvelist;
  245. struct JumpBuffer;
  246. struct Subdivider;
  247. enum __Q2_10Subdivider3dir { down__Q2_10Subdivider3dir = 0, same__Q2_10Subdivider3dir = 1, up__Q2_10Subdivider3dir = 2, none__Q2_10Subdivider3dir = 3} ;
  248. struct Subdivider {
  249. struct Slicer slicer__10Subdivider ;
  250. struct ArcTessellator arctessellator__10Subdivider ;
  251. struct Pool arcpool__10Subdivider ;
  252. struct Pool bezierarcpool__10Subdivider ;
  253. struct Pool pwlarcpool__10Subdivider ;
  254. struct TrimVertexPool trimvertexpool__10Subdivider ;
  255. struct JumpBuffer *jumpbuffer__10Subdivider ;
  256. struct Renderhints *renderhints__10Subdivider ;
  257. struct Backend *backend__10Subdivider ;
  258. struct Bin initialbin__10Subdivider ;
  259. struct Arc *pjarc__10Subdivider ;
  260. int s_index__10Subdivider ;
  261. int t_index__10Subdivider ;
  262. struct Quilt *qlist__10Subdivider ;
  263. struct Flist spbrkpts__10Subdivider ;
  264. struct Flist tpbrkpts__10Subdivider ;
  265. struct Flist smbrkpts__10Subdivider ;
  266. struct Flist tmbrkpts__10Subdivider ;
  267. REAL stepsizes__10Subdivider [4];
  268. int showDegenerate__10Subdivider ;
  269. int isArcTypeBezier__10Subdivider ;
  270. };
  271. struct Mapdesc;
  272. struct BezierArc;
  273. struct BezierArc {
  274. char __W3__9PooledObj ;
  275. REAL *cpts__9BezierArc ;
  276. int order__9BezierArc ;
  277. int stride__9BezierArc ;
  278. long type__9BezierArc ;
  279. struct Mapdesc *mapdesc__9BezierArc ;
  280. };
  281. struct Renderhints;
  282. struct Renderhints {
  283. REAL display_method__11Renderhints ;
  284. REAL errorchecking__11Renderhints ;
  285. REAL subdivisions__11Renderhints ;
  286. REAL tmp1__11Renderhints ;
  287. int displaydomain__11Renderhints ;
  288. int maxsubdivisions__11Renderhints ;
  289. int wiretris__11Renderhints ;
  290. int wirequads__11Renderhints ;
  291. };
  292. struct GridVertex;
  293. struct GridVertex {
  294. long gparam__10GridVertex [2];
  295. };
  296. struct GridTrimVertex;
  297. struct GridTrimVertex {
  298. char __W3__9PooledObj ;
  299. struct TrimVertex dummyt__14GridTrimVertex ;
  300. struct GridVertex dummyg__14GridTrimVertex ;
  301. struct TrimVertex *t__14GridTrimVertex ;
  302. struct GridVertex *g__14GridTrimVertex ;
  303. };
  304. typedef struct GridTrimVertex *GridTrimVertex_p ;
  305. struct BasicCurveEvaluator;
  306. struct BasicSurfaceEvaluator;
  307. struct Backend;
  308. struct Backend {
  309. struct BasicCurveEvaluator *curveEvaluator__7Backend ;
  310. struct BasicSurfaceEvaluator *surfaceEvaluator__7Backend ;
  311. int wireframetris__7Backend ;
  312. int wireframequads__7Backend ;
  313. int npts__7Backend ;
  314. REAL mesh__7Backend [3][4];
  315. int meshindex__7Backend ;
  316. };
  317. typedef REAL Maxmatrix [5][5];
  318. struct Mapdesc;
  319. struct Mapdesc {
  320. char __W3__9PooledObj ;
  321. REAL pixel_tolerance__7Mapdesc ;
  322. REAL clampfactor__7Mapdesc ;
  323. REAL minsavings__7Mapdesc ;
  324. REAL maxrate__7Mapdesc ;
  325. REAL maxsrate__7Mapdesc ;
  326. REAL maxtrate__7Mapdesc ;
  327. REAL bboxsize__7Mapdesc [5];
  328. long type__7Mapdesc ;
  329. int isrational__7Mapdesc ;
  330. int ncoords__7Mapdesc ;
  331. int hcoords__7Mapdesc ;
  332. int inhcoords__7Mapdesc ;
  333. int mask__7Mapdesc ;
  334. Maxmatrix bmat__7Mapdesc ;
  335. Maxmatrix cmat__7Mapdesc ;
  336. Maxmatrix smat__7Mapdesc ;
  337. REAL s_steps__7Mapdesc ;
  338. REAL t_steps__7Mapdesc ;
  339. REAL sampling_method__7Mapdesc ;
  340. REAL culling_method__7Mapdesc ;
  341. REAL bbox_subdividing__7Mapdesc ;
  342. struct Mapdesc *next__7Mapdesc ;
  343. struct Backend *backend__7Mapdesc ;
  344. };
  345. void __glcopy__7MapdescSFPA5_flPfN20 (REAL (*)[5], long , float *, long , long );
  346. void __glxformRational__7MapdescFPA0 (struct Mapdesc *, REAL (*)[5], REAL *, REAL *);
  347. void __glxformNonrational__7Mapdesc0 (struct Mapdesc *, REAL (*)[5], REAL *, REAL *);
  348. struct Knotvector;
  349. struct Quiltspec;
  350. struct Quiltspec {
  351. int stride__9Quiltspec ;
  352. int width__9Quiltspec ;
  353. int offset__9Quiltspec ;
  354. int order__9Quiltspec ;
  355. int index__9Quiltspec ;
  356. int bdry__9Quiltspec [2];
  357. REAL step_size__9Quiltspec ;
  358. Knot *breakpoints__9Quiltspec ;
  359. };
  360. typedef struct Quiltspec *Quiltspec_ptr ;
  361. struct Quilt;
  362. struct Quilt {
  363. char __W3__9PooledObj ;
  364. struct Mapdesc *mapdesc__5Quilt ;
  365. REAL *cpts__5Quilt ;
  366. struct Quiltspec qspec__5Quilt [2];
  367. Quiltspec_ptr eqspec__5Quilt ;
  368. struct Quilt *next__5Quilt ;
  369. };
  370. typedef struct Quilt *Quilt_ptr ;
  371. struct Pspec;
  372. struct Pspec {
  373. REAL range__5Pspec [3];
  374. REAL sidestep__5Pspec [2];
  375. REAL stepsize__5Pspec ;
  376. REAL minstepsize__5Pspec ;
  377. int needsSubdivision__5Pspec ;
  378. };
  379. struct Patchspec;
  380. struct Patchspec {
  381. REAL range__5Pspec [3];
  382. REAL sidestep__5Pspec [2];
  383. REAL stepsize__5Pspec ;
  384. REAL minstepsize__5Pspec ;
  385. int needsSubdivision__5Pspec ;
  386. int order__9Patchspec ;
  387. int stride__9Patchspec ;
  388. };
  389. struct Patch;
  390. struct Patch {
  391. struct Mapdesc *mapdesc__5Patch ;
  392. struct Patch *next__5Patch ;
  393. int cullval__5Patch ;
  394. int notInBbox__5Patch ;
  395. int needsSampling__5Patch ;
  396. REAL cpts__5Patch [2880];
  397. REAL spts__5Patch [2880];
  398. REAL bpts__5Patch [2880];
  399. struct Patchspec pspec__5Patch [2];
  400. REAL bb__5Patch [2][5];
  401. };
  402. struct Patchlist;
  403. struct Patchlist {
  404. struct Patch *patch__9Patchlist ;
  405. int notInBbox__9Patchlist ;
  406. int needsSampling__9Patchlist ;
  407. struct Pspec pspec__9Patchlist [2];
  408. };
  409. struct Slicer *__gl__ct__6SlicerFR7Backend (struct Slicer *, struct TrimRegion *, struct Backend *);
  410. struct ArcTessellator *__gl__ct__14ArcTessellatorFR140 (struct ArcTessellator *, struct TrimVertexPool *, struct Pool *);
  411. struct Pool *__gl__ct__4PoolFiT1Pc (struct Pool *, int , int , char *);
  412. extern struct __mptr* __ptbl_vec_____core_subdivider_c_____ct_[];
  413. struct TrimVertexPool *__gl__ct__14TrimVertexPoolFv (struct TrimVertexPool *);
  414. struct Bin *__gl__ct__3BinFv (struct Bin *);
  415. struct Flist *__gl__ct__5FlistFv (struct Flist *);
  416. struct Subdivider *__gl__ct__10SubdividerFR11Rend0 (struct Subdivider *__0this , struct Renderhints *__1r , struct Backend *__1b )
  417. {
  418. void *__1__Xp00uzigaiaa ;
  419. if (__0this || (__0this = (struct Subdivider *)( (__1__Xp00uzigaiaa = malloc ( (sizeof (struct Subdivider))) ), (__1__Xp00uzigaiaa ?(((void *)__1__Xp00uzigaiaa )):(((void *)__1__Xp00uzigaiaa )))) ))(
  420. ( ( ( ( ( ( ( ( ( ( ( __gl__ct__6SlicerFR7Backend ( (struct Slicer *)(&
  421. __0this -> slicer__10Subdivider ), (struct TrimRegion *)0 , __1b ) , __gl__ct__14ArcTessellatorFR140 ( (struct ArcTessellator *)(& __0this -> arctessellator__10Subdivider ), (struct TrimVertexPool *)(& __0this ->
  422. trimvertexpool__10Subdivider ), (struct Pool *)(& __0this -> pwlarcpool__10Subdivider )) ) , __gl__ct__4PoolFiT1Pc ( (struct Pool *)(& __0this -> arcpool__10Subdivider ), (int )(sizeof
  423. (struct Arc )), 1 , (char *)"arcpool") ) , __gl__ct__4PoolFiT1Pc ( (struct Pool *)(&
  424. __0this -> bezierarcpool__10Subdivider ), (int )(sizeof (struct BezierArc )), 1 , (char *)"Bezarcpool") )
  425. , __gl__ct__4PoolFiT1Pc ( (struct Pool *)(& __0this -> pwlarcpool__10Subdivider ), (int )(sizeof (struct PwlArc )), 1 , (char *)"Pwlarcpool")
  426. ) , __gl__ct__14TrimVertexPoolFv ( (struct TrimVertexPool *)(& __0this -> trimvertexpool__10Subdivider )) ) , (__0this -> renderhints__10Subdivider = __1r )) , (__0this ->
  427. backend__10Subdivider = __1b )) , __gl__ct__3BinFv ( (struct Bin *)(& __0this -> initialbin__10Subdivider )) ) , __gl__ct__5FlistFv ( (struct Flist *)(& __0this ->
  428. spbrkpts__10Subdivider )) ) , __gl__ct__5FlistFv ( (struct Flist *)(& __0this -> tpbrkpts__10Subdivider )) ) , __gl__ct__5FlistFv ( (struct Flist *)(& __0this ->
  429. smbrkpts__10Subdivider )) ) , __gl__ct__5FlistFv ( (struct Flist *)(& __0this -> tmbrkpts__10Subdivider )) ) ;
  430. return __0this ;
  431. }
  432. void __glsetJumpbuffer__10Subdivide0 (struct Subdivider *__0this , struct JumpBuffer *__1j )
  433. {
  434. __0this -> jumpbuffer__10Subdivider = __1j ;
  435. }
  436. void __glclear__14TrimVertexPoolFv (struct TrimVertexPool *);
  437. void __glclear__4PoolFv (struct Pool *);
  438. void __glclear__10SubdividerFv (struct Subdivider *__0this )
  439. {
  440. __glclear__14TrimVertexPoolFv ( (struct TrimVertexPool *)(& __0this -> trimvertexpool__10Subdivider )) ;
  441. __glclear__4PoolFv ( (struct Pool *)(& __0this -> arcpool__10Subdivider )) ;
  442. __glclear__4PoolFv ( (struct Pool *)(& __0this -> pwlarcpool__10Subdivider )) ;
  443. __glclear__4PoolFv ( (struct Pool *)(& __0this -> bezierarcpool__10Subdivider )) ;
  444. }
  445. void __gl__dt__6SlicerFv (struct Slicer *, int );
  446. void __gl__dt__14ArcTessellatorFv (struct ArcTessellator *, int );
  447. void __gl__dt__4PoolFv (struct Pool *, int );
  448. void __gl__dt__14TrimVertexPoolFv (struct TrimVertexPool *, int );
  449. void __gl__dt__3BinFv (struct Bin *, int );
  450. void __gl__dt__5FlistFv (struct Flist *, int );
  451. void __gl__dt__10SubdividerFv (struct Subdivider *__0this ,
  452. int __0__free )
  453. { if (__0this )
  454. if (__0this ){ __gl__dt__5FlistFv ( (struct Flist *)(& __0this -> tmbrkpts__10Subdivider ), 2)
  455. ;
  456. __gl__dt__5FlistFv ( (struct Flist *)(& __0this -> smbrkpts__10Subdivider ), 2) ;
  457. __gl__dt__5FlistFv ( (struct Flist *)(& __0this -> tpbrkpts__10Subdivider ), 2) ;
  458. __gl__dt__5FlistFv ( (struct Flist *)(& __0this -> spbrkpts__10Subdivider ), 2) ;
  459. __gl__dt__3BinFv ( (struct Bin *)(& __0this -> initialbin__10Subdivider ), 2) ;
  460. __gl__dt__14TrimVertexPoolFv ( (struct TrimVertexPool *)(& __0this -> trimvertexpool__10Subdivider ), 2) ;
  461. __gl__dt__4PoolFv ( (struct Pool *)(& __0this -> pwlarcpool__10Subdivider ), 2) ;
  462. __gl__dt__4PoolFv ( (struct Pool *)(& __0this -> bezierarcpool__10Subdivider ), 2) ;
  463. __gl__dt__4PoolFv ( (struct Pool *)(& __0this -> arcpool__10Subdivider ), 2) ;
  464. __gl__dt__14ArcTessellatorFv ( (struct ArcTessellator *)(& __0this -> arctessellator__10Subdivider ), 2) ;
  465. __gl__dt__6SlicerFv ( (struct Slicer *)(& __0this -> slicer__10Subdivider ), 2) ;
  466. if (__0__free & 1)( (((void *)__0this )?( free ( ((void *)__0this )) , 0 ) :( 0 ) )) ;
  467. } }
  468. Arc_ptr __glappend__3ArcFP3Arc (struct Arc *, Arc_ptr );
  469. void __gladdArc__10SubdividerFPfP5Q0 (struct Subdivider *__0this , REAL *__1cpts , struct Quilt *__1quilt , long __1_nuid )
  470. {
  471. struct BezierArc *__1bezierArc ;
  472. struct Arc *__1jarc ;
  473. struct BezierArc *__0__X13 ;
  474. void *__1__Xbuffer00eohgaiaa ;
  475. struct Arc *__0__X14 ;
  476. __1bezierArc = (((struct BezierArc *)( (((void *)( (((void )0 )), ( (((struct Pool *)((struct Pool *)(& __0this -> bezierarcpool__10Subdivider )))-> freelist__4Pool ?(
  477. ( (__1__Xbuffer00eohgaiaa = (((void *)((struct Pool *)((struct Pool *)(& __0this -> bezierarcpool__10Subdivider )))-> freelist__4Pool ))), (((struct Pool *)((struct Pool *)(& __0this -> bezierarcpool__10Subdivider )))->
  478. freelist__4Pool = ((struct Pool *)((struct Pool *)(& __0this -> bezierarcpool__10Subdivider )))-> freelist__4Pool -> next__6Buffer )) , 0 ) :( ( ((! ((struct
  479. Pool *)((struct Pool *)(& __0this -> bezierarcpool__10Subdivider )))-> nextfree__4Pool )?( __glgrow__4PoolFv ( ((struct Pool *)((struct Pool *)(& __0this -> bezierarcpool__10Subdivider )))) , 0 ) :(
  480. 0 ) ), ( (((struct Pool *)((struct Pool *)(& __0this -> bezierarcpool__10Subdivider )))-> nextfree__4Pool -= ((struct Pool *)((struct Pool *)(& __0this -> bezierarcpool__10Subdivider )))->
  481. buffersize__4Pool ), ( (__1__Xbuffer00eohgaiaa = (((void *)(((struct Pool *)((struct Pool *)(& __0this -> bezierarcpool__10Subdivider )))-> curblock__4Pool + ((struct Pool *)((struct Pool *)(& __0this ->
  482. bezierarcpool__10Subdivider )))-> nextfree__4Pool ))))) ) ) , 0 ) ), (((void *)__1__Xbuffer00eohgaiaa ))) ) ))) ));
  483. __1jarc = ((__0__X14 = (struct Arc *)( (((void *)( (((void )0 )), ( (((struct Pool *)((struct Pool *)(& __0this -> arcpool__10Subdivider )))->
  484. freelist__4Pool ?( ( (__1__Xbuffer00eohgaiaa = (((void *)((struct Pool *)((struct Pool *)(& __0this -> arcpool__10Subdivider )))-> freelist__4Pool ))), (((struct Pool *)((struct Pool *)(& __0this ->
  485. arcpool__10Subdivider )))-> freelist__4Pool = ((struct Pool *)((struct Pool *)(& __0this -> arcpool__10Subdivider )))-> freelist__4Pool -> next__6Buffer )) , 0 ) :( ( ((!
  486. ((struct Pool *)((struct Pool *)(& __0this -> arcpool__10Subdivider )))-> nextfree__4Pool )?( __glgrow__4PoolFv ( ((struct Pool *)((struct Pool *)(& __0this -> arcpool__10Subdivider )))) , 0 )
  487. :( 0 ) ), ( (((struct Pool *)((struct Pool *)(& __0this -> arcpool__10Subdivider )))-> nextfree__4Pool -= ((struct Pool *)((struct Pool *)(& __0this ->
  488. arcpool__10Subdivider )))-> buffersize__4Pool ), ( (__1__Xbuffer00eohgaiaa = (((void *)(((struct Pool *)((struct Pool *)(& __0this -> arcpool__10Subdivider )))-> curblock__4Pool + ((struct Pool *)((struct Pool *)(&
  489. __0this -> arcpool__10Subdivider )))-> nextfree__4Pool ))))) ) ) , 0 ) ), (((void *)__1__Xbuffer00eohgaiaa ))) ) ))) )?( (((struct
  490. Arc *)__0__X14 )-> bezierArc__3Arc = 0 ), ( (((struct Arc *)__0__X14 )-> pwlArc__3Arc = 0 ), ( (((struct Arc *)__0__X14 )-> type__3Arc = 0 ), (
  491. ( ( (((struct Arc *)__0__X14 )-> type__3Arc &= -1793)) , (((struct Arc *)__0__X14 )-> type__3Arc |= ((((long )((int )0)))<< 8 )))
  492. , ( (((struct Arc *)__0__X14 )-> nuid__3Arc = __1_nuid ), ((((struct Arc *)__0__X14 )))) ) ) ) ) :0 );
  493. __1jarc -> pwlArc__3Arc = 0 ;
  494. __1jarc -> bezierArc__3Arc = __1bezierArc ;
  495. __1bezierArc -> order__9BezierArc = __1quilt -> qspec__5Quilt -> order__9Quiltspec ;
  496. __1bezierArc -> stride__9BezierArc = __1quilt -> qspec__5Quilt -> stride__9Quiltspec ;
  497. __1bezierArc -> mapdesc__9BezierArc = __1quilt -> mapdesc__5Quilt ;
  498. __1bezierArc -> cpts__9BezierArc = __1cpts ;
  499. ( (__1jarc -> link__3Arc = ((struct Bin *)(& __0this -> initialbin__10Subdivider ))-> head__3Bin ), (((struct Bin *)(& __0this -> initialbin__10Subdivider ))-> head__3Bin = __1jarc ))
  500. ;
  501. __0this -> pjarc__10Subdivider = __glappend__3ArcFP3Arc ( (struct Arc *)__1jarc , __0this -> pjarc__10Subdivider ) ;
  502. }
  503. void __gladdArc__10SubdividerFiP10T0 (struct Subdivider *__0this , int __1npts , struct TrimVertex *__1pts , long __1_nuid )
  504. {
  505. struct Arc *__1jarc ;
  506. struct PwlArc *__0__X15 ;
  507. void *__1__Xbuffer00eohgaiaa ;
  508. struct Arc *__0__X16 ;
  509. __1jarc = ((__0__X16 = (struct Arc *)( (((void *)( (((void )0 )), ( (((struct Pool *)((struct Pool *)(& __0this -> arcpool__10Subdivider )))->
  510. freelist__4Pool ?( ( (__1__Xbuffer00eohgaiaa = (((void *)((struct Pool *)((struct Pool *)(& __0this -> arcpool__10Subdivider )))-> freelist__4Pool ))), (((struct Pool *)((struct Pool *)(& __0this ->
  511. arcpool__10Subdivider )))-> freelist__4Pool = ((struct Pool *)((struct Pool *)(& __0this -> arcpool__10Subdivider )))-> freelist__4Pool -> next__6Buffer )) , 0 ) :( ( ((!
  512. ((struct Pool *)((struct Pool *)(& __0this -> arcpool__10Subdivider )))-> nextfree__4Pool )?( __glgrow__4PoolFv ( ((struct Pool *)((struct Pool *)(& __0this -> arcpool__10Subdivider )))) , 0 )
  513. :( 0 ) ), ( (((struct Pool *)((struct Pool *)(& __0this -> arcpool__10Subdivider )))-> nextfree__4Pool -= ((struct Pool *)((struct Pool *)(& __0this ->
  514. arcpool__10Subdivider )))-> buffersize__4Pool ), ( (__1__Xbuffer00eohgaiaa = (((void *)(((struct Pool *)((struct Pool *)(& __0this -> arcpool__10Subdivider )))-> curblock__4Pool + ((struct Pool *)((struct Pool *)(&
  515. __0this -> arcpool__10Subdivider )))-> nextfree__4Pool ))))) ) ) , 0 ) ), (((void *)__1__Xbuffer00eohgaiaa ))) ) ))) )?( (((struct
  516. Arc *)__0__X16 )-> bezierArc__3Arc = 0 ), ( (((struct Arc *)__0__X16 )-> pwlArc__3Arc = 0 ), ( (((struct Arc *)__0__X16 )-> type__3Arc = 0 ), (
  517. ( ( (((struct Arc *)__0__X16 )-> type__3Arc &= -1793)) , (((struct Arc *)__0__X16 )-> type__3Arc |= ((((long )((int )0)))<< 8 )))
  518. , ( (((struct Arc *)__0__X16 )-> nuid__3Arc = __1_nuid ), ((((struct Arc *)__0__X16 )))) ) ) ) ) :0 );
  519. __1jarc -> pwlArc__3Arc = ((__0__X15 = (struct PwlArc *)( (((void *)( (((void )0 )), ( (((struct Pool *)((struct Pool *)(& __0this ->
  520. pwlarcpool__10Subdivider )))-> freelist__4Pool ?( ( (__1__Xbuffer00eohgaiaa = (((void *)((struct Pool *)((struct Pool *)(& __0this -> pwlarcpool__10Subdivider )))-> freelist__4Pool ))), (((struct Pool *)((struct Pool *)(&
  521. __0this -> pwlarcpool__10Subdivider )))-> freelist__4Pool = ((struct Pool *)((struct Pool *)(& __0this -> pwlarcpool__10Subdivider )))-> freelist__4Pool -> next__6Buffer )) , 0 ) :( (
  522. ((! ((struct Pool *)((struct Pool *)(& __0this -> pwlarcpool__10Subdivider )))-> nextfree__4Pool )?( __glgrow__4PoolFv ( ((struct Pool *)((struct Pool *)(& __0this -> pwlarcpool__10Subdivider )))) ,
  523. 0 ) :( 0 ) ), ( (((struct Pool *)((struct Pool *)(& __0this -> pwlarcpool__10Subdivider )))-> nextfree__4Pool -= ((struct Pool *)((struct Pool *)(&
  524. __0this -> pwlarcpool__10Subdivider )))-> buffersize__4Pool ), ( (__1__Xbuffer00eohgaiaa = (((void *)(((struct Pool *)((struct Pool *)(& __0this -> pwlarcpool__10Subdivider )))-> curblock__4Pool + ((struct Pool *)((struct
  525. Pool *)(& __0this -> pwlarcpool__10Subdivider )))-> nextfree__4Pool ))))) ) ) , 0 ) ), (((void *)__1__Xbuffer00eohgaiaa ))) ) ))) )?(
  526. (((struct PwlArc *)__0__X15 )-> pts__6PwlArc = __1pts ), ( (((struct PwlArc *)__0__X15 )-> npts__6PwlArc = __1npts ), ( (((struct PwlArc *)__0__X15 )-> type__6PwlArc = 0x8 ),
  527. ((((struct PwlArc *)__0__X15 )))) ) ) :0 );
  528. ( (__1jarc -> link__3Arc = ((struct Bin *)(& __0this -> initialbin__10Subdivider ))-> head__3Bin ), (((struct Bin *)(& __0this -> initialbin__10Subdivider ))-> head__3Bin = __1jarc ))
  529. ;
  530. __0this -> pjarc__10Subdivider = __glappend__3ArcFP3Arc ( (struct Arc *)__1jarc , __0this -> pjarc__10Subdivider ) ;
  531. }
  532. void __glbeginQuilts__10SubdividerF0 (struct Subdivider *__0this )
  533. {
  534. __0this -> qlist__10Subdivider = 0 ;
  535. }
  536. void __gladdQuilt__10SubdividerFP5Q0 (struct Subdivider *__0this , struct Quilt *__1quilt )
  537. {
  538. __1quilt -> next__5Quilt = __0this -> qlist__10Subdivider ;
  539. __0this -> qlist__10Subdivider = __1quilt ;
  540. }
  541. void __glinit__11RenderhintsFv (struct Renderhints *);
  542. int __glisCulled__5QuiltFv (struct Quilt *);
  543. void __glfreejarcs__10SubdividerFR30 (struct Subdivider *, struct Bin *);
  544. void __glgetRange__5QuiltFPfT1R5Fli0 (struct Quilt *, REAL *, REAL *, struct Flist *, struct Flist *);
  545. void __glmakeBorderTrim__10Subdivid0 (struct Subdivider *, REAL *, REAL *);
  546. void __glfindRates__5QuiltFR5FlistT0 (struct Quilt *, struct Flist *, struct Flist *, REAL *);
  547. int __gldecompose__10SubdividerFR30 (struct Subdivider *, struct Bin *, REAL );
  548. void __glbgnsurf__7BackendFiT1l (struct Backend *, int , int , long );
  549. void __glsubdivideInS__10Subdivider0 (struct Subdivider *, struct Bin *);
  550. void __glendsurf__7BackendFv (struct Backend *);
  551. void __gldrawSurfaces__10Subdivider0 (struct Subdivider *__0this , long __1nuid )
  552. {
  553. __glinit__11RenderhintsFv ( (struct Renderhints *)__0this -> renderhints__10Subdivider ) ;
  554. if (__0this -> qlist__10Subdivider == 0 )return ;
  555. { { struct Quilt *__1q ;
  556. __1q = __0this -> qlist__10Subdivider ;
  557. for(;__1q ;__1q = __1q -> next__5Quilt ) {
  558. if (__glisCulled__5QuiltFv ( (struct Quilt *)__1q ) == 0 ){
  559. __glfreejarcs__10SubdividerFR30 ( __0this , (struct Bin *)(&
  560. __0this -> initialbin__10Subdivider )) ;
  561. return ;
  562. }
  563. }
  564. { REAL __1from [2];
  565. REAL __1to [2];
  566. __glgetRange__5QuiltFPfT1R5Fli0 ( (struct Quilt *)__0this -> qlist__10Subdivider , (float *)__1from , (float *)__1to , (struct Flist *)(& __0this -> spbrkpts__10Subdivider ), (struct Flist *)(&
  567. __0this -> tpbrkpts__10Subdivider )) ;
  568. if (! ( (((struct Bin *)(& __0this -> initialbin__10Subdivider ))-> head__3Bin ?1 :0 )) ){
  569. __glmakeBorderTrim__10Subdivid0 ( __0this , (float *)__1from , (float
  570. *)__1to ) ;
  571. }
  572. else
  573. {
  574. REAL __2rate [2];
  575. __glfindRates__5QuiltFR5FlistT0 ( (struct Quilt *)__0this -> qlist__10Subdivider , (struct Flist *)(& __0this -> spbrkpts__10Subdivider ), (struct Flist *)(& __0this -> tpbrkpts__10Subdivider ), (float *)__2rate )
  576. ;
  577. if (__gldecompose__10SubdividerFR30 ( __0this , (struct Bin *)(& __0this -> initialbin__10Subdivider ), ( (((__2rate [0 ])> (__2rate [1 ]))?(__2rate [1 ]):(__2rate [0 ]))) ) )
  578. mylongjmp ( __0this -> jumpbuffer__10Subdivider ,
  579. 31 ) ;
  580. }
  581. __glbgnsurf__7BackendFiT1l ( (struct Backend *)__0this -> backend__10Subdivider , ((*__0this -> renderhints__10Subdivider )). wiretris__11Renderhints , ((*__0this -> renderhints__10Subdivider )). wirequads__11Renderhints , __1nuid ) ;
  582. __glsubdivideInS__10Subdivider0 ( __0this , (struct Bin *)(& __0this -> initialbin__10Subdivider )) ;
  583. __glendsurf__7BackendFv ( (struct Backend *)__0this -> backend__10Subdivider ) ;
  584. }
  585. }
  586. }
  587. }
  588. void __gloutline__10SubdividerFR3Bi0 (struct Subdivider *, struct Bin *);
  589. void __glsplitInS__10SubdividerFR3B0 (struct Subdivider *, struct Bin *, int , int );
  590. void __glsubdivideInS__10Subdivider0 (struct Subdivider *__0this , struct Bin *__1source )
  591. {
  592. if (((*__0this -> renderhints__10Subdivider )). display_method__11Renderhints == 6.0 ){
  593. __gloutline__10SubdividerFR3Bi0 ( __0this , __1source ) ;
  594. __glfreejarcs__10SubdividerFR30 ( __0this , __1source ) ;
  595. }
  596. else
  597. {
  598. ( (__0this -> isArcTypeBezier__10Subdivider = 1 )) ;
  599. ( (__0this -> showDegenerate__10Subdivider = 0 )) ;
  600. __glsplitInS__10SubdividerFR3B0 ( __0this , __1source , __0this -> spbrkpts__10Subdivider . start__5Flist , __0this -> spbrkpts__10Subdivider . end__5Flist ) ;
  601. }
  602. }
  603. void __glsplit__10SubdividerFR3BinN0 (struct Subdivider *, struct Bin *, struct Bin *, struct Bin *, int , REAL );
  604. void __glsplitInT__10SubdividerFR3B0 (struct Subdivider *, struct Bin *, int , int );
  605. void __glsplitInS__10SubdividerFR3B0 (struct Subdivider *__0this , struct Bin *__1source , int __1start , int __1end )
  606. {
  607. if (( (((struct Bin *)__1source )-> head__3Bin ?1 :0 ))
  608. ){
  609. if (__1start != __1end ){
  610. int __3i ;
  611. struct Bin __3left ;
  612. struct Bin __3right ;
  613. __3i = (__1start + ((__1end - __1start )/ 2 ));
  614. __gl__ct__3BinFv ( (struct Bin *)(& __3left )) ;
  615. __gl__ct__3BinFv ( (struct Bin *)(& __3right )) ;
  616. __glsplit__10SubdividerFR3BinN0 ( __0this , __1source , (struct Bin *)(& __3left ), (struct Bin *)(& __3right ), 0 , __0this -> spbrkpts__10Subdivider . pts__5Flist [__3i ]) ;
  617. __glsplitInS__10SubdividerFR3B0 ( __0this , (struct Bin *)(& __3left ), __1start , __3i ) ;
  618. __glsplitInS__10SubdividerFR3B0 ( __0this , (struct Bin *)(& __3right ), __3i + 1 , __1end ) ;
  619. __gl__dt__3BinFv ( (struct Bin *)(& __3right ), 2) ;
  620. __gl__dt__3BinFv ( (struct Bin *)(& __3left ), 2) ;
  621. }
  622. else
  623. {
  624. if ((__1start == __0this -> spbrkpts__10Subdivider . start__5Flist )|| (__1start == __0this -> spbrkpts__10Subdivider . end__5Flist )){
  625. __glfreejarcs__10SubdividerFR30 ( __0this , __1source )
  626. ;
  627. }
  628. else
  629. if (((*__0this -> renderhints__10Subdivider )). display_method__11Renderhints == 7.0 ){
  630. __gloutline__10SubdividerFR3Bi0 ( __0this , __1source ) ;
  631. __glfreejarcs__10SubdividerFR30 ( __0this , __1source ) ;
  632. }
  633. else
  634. {
  635. ( (__0this -> isArcTypeBezier__10Subdivider = 1 )) ;
  636. ( (__0this -> showDegenerate__10Subdivider = 0 )) ;
  637. __0this -> s_index__10Subdivider = __1start ;
  638. __glsplitInT__10SubdividerFR3B0 ( __0this , __1source , __0this -> tpbrkpts__10Subdivider . start__5Flist , __0this -> tpbrkpts__10Subdivider . end__5Flist ) ;
  639. }
  640. }
  641. }
  642. }
  643. void __gldownloadAll__5QuiltFPfT1R70 (struct Quilt *, REAL *, REAL *, struct Backend *);
  644. struct Patchlist *__gl__ct__9PatchlistFP5QuiltPf0 (struct Patchlist *, struct Quilt *, REAL *, REAL *);
  645. void __glsamplingSplit__10Subdivide1 (struct Subdivider *, struct Bin *, struct Patchlist *, int , int );
  646. void __gl__dt__9PatchlistFv (struct Patchlist *, int );
  647. void __glsplitInT__10SubdividerFR3B0 (struct Subdivider *__0this , struct Bin *__1source , int __1start , int __1end )
  648. {
  649. if (( (((struct Bin *)__1source )-> head__3Bin ?1 :0 ))
  650. ){
  651. if (__1start != __1end ){
  652. int __3i ;
  653. struct Bin __3left ;
  654. struct Bin __3right ;
  655. __3i = (__1start + ((__1end - __1start )/ 2 ));
  656. __gl__ct__3BinFv ( (struct Bin *)(& __3left )) ;
  657. __gl__ct__3BinFv ( (struct Bin *)(& __3right )) ;
  658. __glsplit__10SubdividerFR3BinN0 ( __0this , __1source , (struct Bin *)(& __3left ), (struct Bin *)(& __3right ), 1 , __0this -> tpbrkpts__10Subdivider . pts__5Flist [__3i ]) ;
  659. __glsplitInT__10SubdividerFR3B0 ( __0this , (struct Bin *)(& __3left ), __1start , __3i ) ;
  660. __glsplitInT__10SubdividerFR3B0 ( __0this , (struct Bin *)(& __3right ), __3i + 1 , __1end ) ;
  661. __gl__dt__3BinFv ( (struct Bin *)(& __3right ), 2) ;
  662. __gl__dt__3BinFv ( (struct Bin *)(& __3left ), 2) ;
  663. }
  664. else
  665. {
  666. if ((__1start == __0this -> tpbrkpts__10Subdivider . start__5Flist )|| (__1start == __0this -> tpbrkpts__10Subdivider . end__5Flist )){
  667. __glfreejarcs__10SubdividerFR30 ( __0this , __1source )
  668. ;
  669. }
  670. else
  671. if (((*__0this -> renderhints__10Subdivider )). display_method__11Renderhints == 8.0 ){
  672. __gloutline__10SubdividerFR3Bi0 ( __0this , __1source ) ;
  673. __glfreejarcs__10SubdividerFR30 ( __0this , __1source ) ;
  674. }
  675. else
  676. {
  677. __0this -> t_index__10Subdivider = __1start ;
  678. ( (__0this -> isArcTypeBezier__10Subdivider = 1 )) ;
  679. ( (__0this -> showDegenerate__10Subdivider = 1 )) ;
  680. { REAL __4pta [2];
  681. REAL __4ptb [2];
  682. (__4pta [0 ])= (__0this -> spbrkpts__10Subdivider . pts__5Flist [(__0this -> s_index__10Subdivider - 1 )]);
  683. (__4pta [1 ])= (__0this -> tpbrkpts__10Subdivider . pts__5Flist [(__0this -> t_index__10Subdivider - 1 )]);
  684. (__4ptb [0 ])= (__0this -> spbrkpts__10Subdivider . pts__5Flist [__0this -> s_index__10Subdivider ]);
  685. (__4ptb [1 ])= (__0this -> tpbrkpts__10Subdivider . pts__5Flist [__0this -> t_index__10Subdivider ]);
  686. __gldownloadAll__5QuiltFPfT1R70 ( (struct Quilt *)__0this -> qlist__10Subdivider , (float *)__4pta , (float *)__4ptb , __0this -> backend__10Subdivider ) ;
  687. { struct Patchlist __4patchlist ;
  688. __gl__ct__9PatchlistFP5QuiltPf0 ( (struct Patchlist *)(& __4patchlist ), __0this -> qlist__10Subdivider , (float *)__4pta , (float *)__4ptb ) ;
  689. __glsamplingSplit__10Subdivide1 ( __0this , __1source , (struct Patchlist *)(& __4patchlist ), ((*__0this -> renderhints__10Subdivider )). maxsubdivisions__11Renderhints , 0 ) ;
  690. ( (__0this -> showDegenerate__10Subdivider = 0 )) ;
  691. ( (__0this -> isArcTypeBezier__10Subdivider = 1 )) ;
  692. __gl__dt__9PatchlistFv ( (struct Patchlist *)(& __4patchlist ), 2) ;
  693. }
  694. }
  695. }
  696. }
  697. }
  698. }
  699. int __glcullCheck__9PatchlistFv (struct Patchlist *);
  700. void __glgetstepsize__9PatchlistFv (struct Patchlist *);
  701. void __gltessellation__10Subdivider0 (struct Subdivider *, struct Bin *, struct Patchlist *);
  702. int __glneedsSamplingSubdivision__3 (struct Patchlist *);
  703. int __glneedsSubdivision__9Patchli0 (struct Patchlist *, int );
  704. struct Patchlist *__gl__ct__9PatchlistFR9Patchli0 (struct Patchlist *, struct Patchlist *, int , REAL );
  705. void __glnonSamplingSplit__10Subdiv0 (struct Subdivider *, struct Bin *, struct Patchlist *, int , int );
  706. void __glsamplingSplit__10Subdivide1 (struct Subdivider *__0this ,
  707. struct Bin *__1source ,
  708. struct Patchlist *__1patchlist ,
  709. int __1subdivisions ,
  710. int __1param )
  711. {
  712. if (! (
  713. (((struct Bin *)__1source )-> head__3Bin ?1 :0 )) )return ;
  714. if (__glcullCheck__9PatchlistFv ( (struct Patchlist *)__1patchlist ) == 0 ){
  715. __glfreejarcs__10SubdividerFR30 ( __0this , __1source ) ;
  716. return ;
  717. }
  718. __glgetstepsize__9PatchlistFv ( (struct Patchlist *)__1patchlist ) ;
  719. if (((*__0this -> renderhints__10Subdivider )). display_method__11Renderhints == 5.0 ){
  720. __gltessellation__10Subdivider0 ( __0this , __1source , __1patchlist ) ;
  721. __gloutline__10SubdividerFR3Bi0 ( __0this , __1source ) ;
  722. __glfreejarcs__10SubdividerFR30 ( __0this , __1source ) ;
  723. return ;
  724. }
  725. __gltessellation__10Subdivider0 ( __0this , __1source , __1patchlist ) ;
  726. if (__glneedsSamplingSubdivision__3 ( (struct Patchlist *)__1patchlist ) && (__1subdivisions > 0 )){
  727. if (! __glneedsSubdivision__9Patchli0 ( (struct Patchlist *)__1patchlist , 0 ) )
  728. __1param =
  729. 1 ;
  730. else if (! __glneedsSubdivision__9Patchli0 ( (struct Patchlist *)__1patchlist , 1 ) )
  731. __1param = 0 ;
  732. else
  733. __1param = (1 - __1param );
  734. { struct Bin __2left ;
  735. struct Bin __2right ;
  736. REAL __2mid ;
  737. __gl__ct__3BinFv ( (struct Bin *)(& __2left )) ;
  738. __gl__ct__3BinFv ( (struct Bin *)(& __2right )) ;
  739. __2mid = ((((((*__1patchlist )). pspec__9Patchlist [__1param ]). range__5Pspec [0 ])+ ((((*__1patchlist )). pspec__9Patchlist [__1param ]). range__5Pspec [1 ]))* 0.5 );
  740. __glsplit__10SubdividerFR3BinN0 ( __0this , __1source , (struct Bin *)(& __2left ), (struct Bin *)(& __2right ), __1param , __2mid ) ;
  741. { struct Patchlist __2subpatchlist ;
  742. __gl__ct__9PatchlistFR9Patchli0 ( (struct Patchlist *)(& __2subpatchlist ), __1patchlist , __1param , __2mid ) ;
  743. __glsamplingSplit__10Subdivide1 ( __0this , (struct Bin *)(& __2left ), (struct Patchlist *)(& __2subpatchlist ), __1subdivisions - 1 , __1param ) ;
  744. __glsamplingSplit__10Subdivide1 ( __0this , (struct Bin *)(& __2right ), __1patchlist , __1subdivisions - 1 , __1param ) ;
  745. __gl__dt__9PatchlistFv ( (struct Patchlist *)(& __2subpatchlist ), 2) ;
  746. }
  747. __gl__dt__3BinFv ( (struct Bin *)(& __2right ), 2) ;
  748. __gl__dt__3BinFv ( (struct Bin *)(& __2left ), 2) ;
  749. }
  750. }
  751. else
  752. {
  753. ( (__0this -> isArcTypeBezier__10Subdivider = 0 )) ;
  754. ( (__0this -> showDegenerate__10Subdivider = 1 )) ;
  755. __glnonSamplingSplit__10Subdiv0 ( __0this , __1source , __1patchlist , __1subdivisions , __1param ) ;
  756. ( (__0this -> showDegenerate__10Subdivider = 1 )) ;
  757. ( (__0this -> isArcTypeBezier__10Subdivider = 1 )) ;
  758. }
  759. }
  760. int __glneedsNonSamplingSubdivisio1 (struct Patchlist *);
  761. void __glbbox__9PatchlistFv (struct Patchlist *);
  762. void __glpatch__7BackendFfN31 (struct Backend *, REAL , REAL , REAL , REAL );
  763. void __glfindIrregularS__10Subdivid0 (struct Subdivider *, struct Bin *);
  764. void __glmonosplitInS__10Subdivider0 (struct Subdivider *, struct Bin *, int , int );
  765. void __glnonSamplingSplit__10Subdiv0 (struct Subdivider *__0this ,
  766. struct Bin *__1source ,
  767. struct Patchlist *__1patchlist ,
  768. int __1subdivisions ,
  769. int __1param )
  770. {
  771. if (__glneedsNonSamplingSubdivisio1 ( (struct
  772. Patchlist *)__1patchlist ) && (__1subdivisions > 0 )){
  773. __1param = (1 - __1param );
  774. { struct Bin __2left ;
  775. struct Bin __2right ;
  776. REAL __2mid ;
  777. __gl__ct__3BinFv ( (struct Bin *)(& __2left )) ;
  778. __gl__ct__3BinFv ( (struct Bin *)(& __2right )) ;
  779. __2mid = ((((((*__1patchlist )). pspec__9Patchlist [__1param ]). range__5Pspec [0 ])+ ((((*__1patchlist )). pspec__9Patchlist [__1param ]). range__5Pspec [1 ]))* 0.5 );
  780. __glsplit__10SubdividerFR3BinN0 ( __0this , __1source , (struct Bin *)(& __2left ), (struct Bin *)(& __2right ), __1param , __2mid ) ;
  781. { struct Patchlist __2subpatchlist ;
  782. __gl__ct__9PatchlistFR9Patchli0 ( (struct Patchlist *)(& __2subpatchlist ), __1patchlist , __1param , __2mid ) ;
  783. if (( (((struct Bin *)(& __2left ))-> head__3Bin ?1 :0 )) )
  784. if (__glcullCheck__9PatchlistFv ( (struct Patchlist *)(& __2subpatchlist )) == 0 )
  785. __glfreejarcs__10SubdividerFR30 ( __0this ,
  786. (struct Bin *)(& __2left )) ;
  787. else
  788. __glnonSamplingSplit__10Subdiv0 ( __0this , (struct Bin *)(& __2left ), (struct Patchlist *)(& __2subpatchlist ), __1subdivisions - 1 , __1param ) ;
  789. if (( (((struct Bin *)(& __2right ))-> head__3Bin ?1 :0 )) )
  790. if (__glcullCheck__9PatchlistFv ( (struct Patchlist *)__1patchlist ) == 0 )
  791. __glfreejarcs__10SubdividerFR30 ( __0this , (struct
  792. Bin *)(& __2right )) ;
  793. else
  794. __glnonSamplingSplit__10Subdiv0 ( __0this , (struct Bin *)(& __2right ), __1patchlist , __1subdivisions - 1 , __1param ) ;
  795. __gl__dt__9PatchlistFv ( (struct Patchlist *)(& __2subpatchlist ), 2) ;
  796. }
  797. __gl__dt__3BinFv ( (struct Bin *)(& __2right ), 2) ;
  798. __gl__dt__3BinFv ( (struct Bin *)(& __2left ), 2) ;
  799. }
  800. }
  801. else
  802. {
  803. __glbbox__9PatchlistFv ( (struct Patchlist *)__1patchlist ) ;
  804. __glpatch__7BackendFfN31 ( (struct Backend *)__0this -> backend__10Subdivider , (((*__1patchlist )). pspec__9Patchlist [0 ]). range__5Pspec [0 ], (((*__1patchlist )). pspec__9Patchlist [0 ]). range__5Pspec [1 ], (((*__1patchlist )). pspec__9Patchlist [1 ]). range__5Pspec [0 ], (((*__1patchlist )).
  805. pspec__9Patchlist [1 ]). range__5Pspec [1 ]) ;
  806. if (((*__0this -> renderhints__10Subdivider )). display_method__11Renderhints == 9.0 ){
  807. __gloutline__10SubdividerFR3Bi0 ( __0this , __1source ) ;
  808. __glfreejarcs__10SubdividerFR30 ( __0this , __1source ) ;
  809. }
  810. else
  811. {
  812. ( (__0this -> isArcTypeBezier__10Subdivider = 0 )) ;
  813. ( (__0this -> showDegenerate__10Subdivider = 1 )) ;
  814. __glfindIrregularS__10Subdivid0 ( __0this , __1source ) ;
  815. __glmonosplitInS__10Subdivider0 ( __0this , __1source , __0this -> smbrkpts__10Subdivider . start__5Flist , __0this -> smbrkpts__10Subdivider . end__5Flist ) ;
  816. }
  817. }
  818. }
  819. void __gltessellate__10SubdividerFR0 (struct Subdivider *, struct Bin *, REAL , REAL , REAL , REAL );
  820. void __glsetstriptessellation__6Sli0 (struct Slicer *, REAL , REAL );
  821. void __gltessellation__10Subdivider0 (struct Subdivider *__0this , struct Bin *__1bin , struct Patchlist *__1patchlist )
  822. {
  823. __gltessellate__10SubdividerFR0 ( __0this , __1bin , (((*__1patchlist )). pspec__9Patchlist [1 ]). sidestep__5Pspec [1 ], (((*__1patchlist )).
  824. pspec__9Patchlist [0 ]). sidestep__5Pspec [1 ], (((*__1patchlist )). pspec__9Patchlist [1 ]). sidestep__5Pspec [0 ], (((*__1patchlist )). pspec__9Patchlist [0 ]). sidestep__5Pspec [0 ]) ;
  825. __glsetstriptessellation__6Sli0 ( (struct Slicer *)(& __0this -> slicer__10Subdivider ), (((*__1patchlist )). pspec__9Patchlist [0 ]). stepsize__5Pspec , (((*__1patchlist )). pspec__9Patchlist [1 ]). stepsize__5Pspec ) ;
  826. (__0this -> stepsizes__10Subdivider [0 ])= (((*__1patchlist )). pspec__9Patchlist [1 ]). stepsize__5Pspec ;
  827. (__0this -> stepsizes__10Subdivider [1 ])= (((*__1patchlist )). pspec__9Patchlist [0 ]). stepsize__5Pspec ;
  828. (__0this -> stepsizes__10Subdivider [2 ])= (((*__1patchlist )). pspec__9Patchlist [1 ]). stepsize__5Pspec ;
  829. (__0this -> stepsizes__10Subdivider [3 ])= (((*__1patchlist )). pspec__9Patchlist [0 ]). stepsize__5Pspec ;
  830. }
  831. void __glfindIrregularT__10Subdivid0 (struct Subdivider *, struct Bin *);
  832. void __glmonosplitInT__10Subdivider0 (struct Subdivider *, struct Bin *, int , int );
  833. void __glmonosplitInS__10Subdivider0 (struct Subdivider *__0this , struct Bin *__1source , int __1start , int __1end )
  834. {
  835. if (( (((struct Bin *)__1source )-> head__3Bin ?1 :0 ))
  836. ){
  837. if (__1start != __1end ){
  838. int __3i ;
  839. struct Bin __3left ;
  840. struct Bin __3right ;
  841. __3i = (__1start + ((__1end - __1start )/ 2 ));
  842. __gl__ct__3BinFv ( (struct Bin *)(& __3left )) ;
  843. __gl__ct__3BinFv ( (struct Bin *)(& __3right )) ;
  844. __glsplit__10SubdividerFR3BinN0 ( __0this , __1source , (struct Bin *)(& __3left ), (struct Bin *)(& __3right ), 0 , __0this -> smbrkpts__10Subdivider . pts__5Flist [__3i ]) ;
  845. __glmonosplitInS__10Subdivider0 ( __0this , (struct Bin *)(& __3left ), __1start , __3i ) ;
  846. __glmonosplitInS__10Subdivider0 ( __0this , (struct Bin *)(& __3right ), __3i + 1 , __1end ) ;
  847. __gl__dt__3BinFv ( (struct Bin *)(& __3right ), 2) ;
  848. __gl__dt__3BinFv ( (struct Bin *)(& __3left ), 2) ;
  849. }
  850. else
  851. {
  852. if (((*__0this -> renderhints__10Subdivider )). display_method__11Renderhints == 10.0 ){
  853. __gloutline__10SubdividerFR3Bi0 ( __0this , __1source ) ;
  854. __glfreejarcs__10SubdividerFR30 ( __0this , __1source ) ;
  855. }
  856. else
  857. {
  858. ( (__0this -> isArcTypeBezier__10Subdivider = 0 )) ;
  859. ( (__0this -> showDegenerate__10Subdivider = 1 )) ;
  860. __glfindIrregularT__10Subdivid0 ( __0this , __1source ) ;
  861. __glmonosplitInT__10Subdivider0 ( __0this , __1source , __0this -> tmbrkpts__10Subdivider . start__5Flist , __0this -> tmbrkpts__10Subdivider . end__5Flist ) ;
  862. }
  863. }
  864. }
  865. }
  866. void __glrender__10SubdividerFR3Bin (struct Subdivider *, struct Bin *);
  867. void __glmonosplitInT__10Subdivider0 (struct Subdivider *__0this , struct Bin *__1source , int __1start , int __1end )
  868. {
  869. if (( (((struct Bin *)__1source )-> head__3Bin ?1 :0 ))
  870. ){
  871. if (__1start != __1end ){
  872. int __3i ;
  873. struct Bin __3left ;
  874. struct Bin __3right ;
  875. __3i = (__1start + ((__1end - __1start )/ 2 ));
  876. __gl__ct__3BinFv ( (struct Bin *)(& __3left )) ;
  877. __gl__ct__3BinFv ( (struct Bin *)(& __3right )) ;
  878. __glsplit__10SubdividerFR3BinN0 ( __0this , __1source , (struct Bin *)(& __3left ), (struct Bin *)(& __3right ), 1 , __0this -> tmbrkpts__10Subdivider . pts__5Flist [__3i ]) ;
  879. __glmonosplitInT__10Subdivider0 ( __0this , (struct Bin *)(& __3left ), __1start , __3i ) ;
  880. __glmonosplitInT__10Subdivider0 ( __0this , (struct Bin *)(& __3right ), __3i + 1 , __1end ) ;
  881. __gl__dt__3BinFv ( (struct Bin *)(& __3right ), 2) ;
  882. __gl__dt__3BinFv ( (struct Bin *)(& __3left ), 2) ;
  883. }
  884. else
  885. {
  886. if (((*__0this -> renderhints__10Subdivider )). display_method__11Renderhints == 11.0 ){
  887. __gloutline__10SubdividerFR3Bi0 ( __0this , __1source ) ;
  888. __glfreejarcs__10SubdividerFR30 ( __0this , __1source ) ;
  889. }
  890. else
  891. {
  892. __glrender__10SubdividerFR3Bin ( __0this , __1source ) ;
  893. __glfreejarcs__10SubdividerFR30 ( __0this , __1source ) ;
  894. }
  895. }
  896. }
  897. }
  898. void __glgrow__5FlistFi (struct Flist *, int );
  899. int __glnumarcs__3BinFv (struct Bin *);
  900. int __glccwTurn_tr__10SubdividerFP0 (struct Subdivider *, struct Arc *, struct Arc *);
  901. void __gladd__5FlistFf (struct Flist *, REAL );
  902. int __glccwTurn_tl__10SubdividerFP0 (struct Subdivider *, struct Arc *, struct Arc *);
  903. void __glfilter__5FlistFv (struct Flist *);
  904. void __glfindIrregularS__10Subdivid0 (struct Subdivider *__0this , struct Bin *__1bin )
  905. {
  906. ((void )0 );
  907. __glgrow__5FlistFi ( (struct Flist *)(& __0this -> smbrkpts__10Subdivider ), __glnumarcs__3BinFv ( (struct Bin *)__1bin ) ) ;
  908. { { Arc_ptr __1jarc ;
  909. struct Arc *__1__Xjarc00qbckaice ;
  910. __1jarc = ( (((struct Bin *)__1bin )-> current__3Bin = ((struct Bin *)__1bin )-> head__3Bin ), ( (__1__Xjarc00qbckaice = ((struct Bin *)__1bin )-> current__3Bin ), (
  911. (__1__Xjarc00qbckaice ?( (((struct Bin *)__1bin )-> current__3Bin = __1__Xjarc00qbckaice -> link__3Arc ), 0 ) :( 0 ) ), __1__Xjarc00qbckaice ) ) ) ;
  912. for(;__1jarc ;__1jarc = ( (__1__Xjarc00qbckaice = ((struct Bin *)__1bin )-> current__3Bin ), ( (__1__Xjarc00qbckaice ?( (((struct Bin *)__1bin )-> current__3Bin = __1__Xjarc00qbckaice -> link__3Arc ), 0 )
  913. :( 0 ) ), __1__Xjarc00qbckaice ) ) ) {
  914. REAL *__2a ;
  915. REAL *__2b ;
  916. REAL *__2c ;
  917. struct Arc *__0__X17 ;
  918. __2a = ( (__0__X17 = (struct Arc *)__1jarc -> prev__3Arc ), ( (((REAL *)(__0__X17 -> pwlArc__3Arc -> pts__6PwlArc [0 ]). param__10TrimVertex ))) ) ;
  919. __2b = ( (((REAL *)(((struct Arc *)__1jarc )-> pwlArc__3Arc -> pts__6PwlArc [0 ]). param__10TrimVertex ))) ;
  920. __2c = ( (((REAL *)(((struct Arc *)__1jarc )-> next__3Arc -> pwlArc__3Arc -> pts__6PwlArc [0 ]). param__10TrimVertex ))) ;
  921. if (((__2b [1 ])== (__2a [1 ]))&& ((__2b [1 ])== (__2c [1 ])))continue ;
  922. if (((__2b [1 ])<= (__2a [1 ]))&& ((__2b [1 ])<= (__2c [1 ]))){
  923. if (! __glccwTurn_tr__10SubdividerFP0 ( __0this , __1jarc -> prev__3Arc , __1jarc ) )
  924. __gladd__5FlistFf ( (struct
  925. Flist *)(& __0this -> smbrkpts__10Subdivider ), __2b [0 ]) ;
  926. }
  927. else
  928. if (((__2b [1 ])>= (__2a [1 ]))&& ((__2b [1 ])>= (__2c [1 ]))){
  929. if (! __glccwTurn_tl__10SubdividerFP0 ( __0this , __1jarc -> prev__3Arc , __1jarc ) )
  930. __gladd__5FlistFf (
  931. (struct Flist *)(& __0this -> smbrkpts__10Subdivider ), __2b [0 ]) ;
  932. }
  933. }
  934. __glfilter__5FlistFv ( (struct Flist *)(& __0this -> smbrkpts__10Subdivider )) ;
  935. }
  936. }
  937. }
  938. int __glccwTurn_sr__10SubdividerFP0 (struct Subdivider *, struct Arc *, struct Arc *);
  939. int __glccwTurn_sl__10SubdividerFP0 (struct Subdivider *, struct Arc *, struct Arc *);
  940. void __glfindIrregularT__10Subdivid0 (struct Subdivider *__0this , struct Bin *__1bin )
  941. {
  942. ((void )0 );
  943. __glgrow__5FlistFi ( (struct Flist *)(& __0this -> tmbrkpts__10Subdivider ), __glnumarcs__3BinFv ( (struct Bin *)__1bin ) ) ;
  944. { { Arc_ptr __1jarc ;
  945. struct Arc *__1__Xjarc00qbckaice ;
  946. __1jarc = ( (((struct Bin *)__1bin )-> current__3Bin = ((struct Bin *)__1bin )-> head__3Bin ), ( (__1__Xjarc00qbckaice = ((struct Bin *)__1bin )-> current__3Bin ), (
  947. (__1__Xjarc00qbckaice ?( (((struct Bin *)__1bin )-> current__3Bin = __1__Xjarc00qbckaice -> link__3Arc ), 0 ) :( 0 ) ), __1__Xjarc00qbckaice ) ) ) ;
  948. for(;__1jarc ;__1jarc = ( (__1__Xjarc00qbckaice = ((struct Bin *)__1bin )-> current__3Bin ), ( (__1__Xjarc00qbckaice ?( (((struct Bin *)__1bin )-> current__3Bin = __1__Xjarc00qbckaice -> link__3Arc ), 0 )
  949. :( 0 ) ), __1__Xjarc00qbckaice ) ) ) {
  950. REAL *__2a ;
  951. REAL *__2b ;
  952. REAL *__2c ;
  953. struct Arc *__0__X18 ;
  954. __2a = ( (__0__X18 = (struct Arc *)__1jarc -> prev__3Arc ), ( (((REAL *)(__0__X18 -> pwlArc__3Arc -> pts__6PwlArc [0 ]). param__10TrimVertex ))) ) ;
  955. __2b = ( (((REAL *)(((struct Arc *)__1jarc )-> pwlArc__3Arc -> pts__6PwlArc [0 ]). param__10TrimVertex ))) ;
  956. __2c = ( (((REAL *)(((struct Arc *)__1jarc )-> next__3Arc -> pwlArc__3Arc -> pts__6PwlArc [0 ]). param__10TrimVertex ))) ;
  957. if (((__2b [0 ])== (__2a [0 ]))&& ((__2b [0 ])== (__2c [0 ])))continue ;
  958. if (((__2b [0 ])<= (__2a [0 ]))&& ((__2b [0 ])<= (__2c [0 ]))){
  959. if (((__2a [1 ])!= (__2b [1 ]))&& ((__2b [1 ])!= (__2c [1 ])))continue ;
  960. if (! __glccwTurn_sr__10SubdividerFP0 ( __0this , __1jarc -> prev__3Arc , __1jarc ) )
  961. __gladd__5FlistFf ( (struct Flist *)(& __0this -> tmbrkpts__10Subdivider ), __2b [1 ]) ;
  962. }
  963. else
  964. if (((__2b [0 ])>= (__2a [0 ]))&& ((__2b [0 ])>= (__2c [0 ]))){
  965. if (((__2a [1 ])!= (__2b [1 ]))&& ((__2b [1 ])!= (__2c [1 ])))continue ;
  966. if (! __glccwTurn_sl__10SubdividerFP0 ( __0this , __1jarc -> prev__3Arc , __1jarc ) )
  967. __gladd__5FlistFf ( (struct Flist *)(& __0this -> tmbrkpts__10Subdivider ), __2b [1 ]) ;
  968. }
  969. }
  970. __glfilter__5FlistFv ( (struct Flist *)(& __0this -> tmbrkpts__10Subdivider )) ;
  971. }
  972. }
  973. }
  974. void __glbezier__14ArcTessellatorFP0 (struct ArcTessellator *, struct Arc *, REAL , REAL , REAL , REAL );
  975. void __glmakeBorderTrim__10Subdivid0 (struct Subdivider *__0this , REAL *__1from , REAL *__1to )
  976. {
  977. REAL __1smin ;
  978. REAL __1smax ;
  979. REAL __1tmin ;
  980. REAL __1tmax ;
  981. __1smin = (__1from [0 ]);
  982. __1smax = (__1to [0 ]);
  983. __1tmin = (__1from [1 ]);
  984. __1tmax = (__1to [1 ]);
  985. __0this -> pjarc__10Subdivider = 0 ;
  986. { Arc_ptr __1jarc ;
  987. struct Arc *__0__X19 ;
  988. void *__1__Xbuffer00eohgaiaa ;
  989. struct Arc *__0__X20 ;
  990. struct Arc *__0__X21 ;
  991. struct Arc *__0__X22 ;
  992. __1jarc = ((__0__X22 = (struct Arc *)( (((void *)( (((void )0 )), ( (((struct Pool *)((struct Pool *)(& __0this -> arcpool__10Subdivider )))->
  993. freelist__4Pool ?( ( (__1__Xbuffer00eohgaiaa = (((void *)((struct Pool *)((struct Pool *)(& __0this -> arcpool__10Subdivider )))-> freelist__4Pool ))), (((struct Pool *)((struct Pool *)(& __0this ->
  994. arcpool__10Subdivider )))-> freelist__4Pool = ((struct Pool *)((struct Pool *)(& __0this -> arcpool__10Subdivider )))-> freelist__4Pool -> next__6Buffer )) , 0 ) :( ( ((!
  995. ((struct Pool *)((struct Pool *)(& __0this -> arcpool__10Subdivider )))-> nextfree__4Pool )?( __glgrow__4PoolFv ( ((struct Pool *)((struct Pool *)(& __0this -> arcpool__10Subdivider )))) , 0 )
  996. :( 0 ) ), ( (((struct Pool *)((struct Pool *)(& __0this -> arcpool__10Subdivider )))-> nextfree__4Pool -= ((struct Pool *)((struct Pool *)(& __0this ->
  997. arcpool__10Subdivider )))-> buffersize__4Pool ), ( (__1__Xbuffer00eohgaiaa = (((void *)(((struct Pool *)((struct Pool *)(& __0this -> arcpool__10Subdivider )))-> curblock__4Pool + ((struct Pool *)((struct Pool *)(&
  998. __0this -> arcpool__10Subdivider )))-> nextfree__4Pool ))))) ) ) , 0 ) ), (((void *)__1__Xbuffer00eohgaiaa ))) ) ))) )?( (((struct
  999. Arc *)__0__X22 )-> bezierArc__3Arc = 0 ), ( (((struct Arc *)__0__X22 )-> pwlArc__3Arc = 0 ), ( (((struct Arc *)__0__X22 )-> type__3Arc = 0 ), (
  1000. ( ( (((struct Arc *)__0__X22 )-> type__3Arc &= -1793)) , (((struct Arc *)__0__X22 )-> type__3Arc |= ((((long )((int )4)))<< 8 )))
  1001. , ( (((struct Arc *)__0__X22 )-> nuid__3Arc = ((long )0.0 )), ((((struct Arc *)__0__X22 )))) ) ) ) ) :0 );
  1002. __glbezier__14ArcTessellatorFP0 ( (struct ArcTessellator *)(& __0this -> arctessellator__10Subdivider ), __1jarc , __1smin , __1smax , __1tmin , __1tmin ) ;
  1003. ( (__1jarc -> link__3Arc = ((struct Bin *)(& __0this -> initialbin__10Subdivider ))-> head__3Bin ), (((struct Bin *)(& __0this -> initialbin__10Subdivider ))-> head__3Bin = __1jarc ))
  1004. ;
  1005. __0this -> pjarc__10Subdivider = __glappend__3ArcFP3Arc ( (struct Arc *)__1jarc , __0this -> pjarc__10Subdivider ) ;
  1006. __1jarc = ((__0__X19 = (struct Arc *)( (((void *)( (((void )0 )), ( (((struct Pool *)((struct Pool *)(& __0this -> arcpool__10Subdivider )))->
  1007. freelist__4Pool ?( ( (__1__Xbuffer00eohgaiaa = (((void *)((struct Pool *)((struct Pool *)(& __0this -> arcpool__10Subdivider )))-> freelist__4Pool ))), (((struct Pool *)((struct Pool *)(& __0this ->
  1008. arcpool__10Subdivider )))-> freelist__4Pool = ((struct Pool *)((struct Pool *)(& __0this -> arcpool__10Subdivider )))-> freelist__4Pool -> next__6Buffer )) , 0 ) :( ( ((!
  1009. ((struct Pool *)((struct Pool *)(& __0this -> arcpool__10Subdivider )))-> nextfree__4Pool )?( __glgrow__4PoolFv ( ((struct Pool *)((struct Pool *)(& __0this -> arcpool__10Subdivider )))) , 0 )
  1010. :( 0 ) ), ( (((struct Pool *)((struct Pool *)(& __0this -> arcpool__10Subdivider )))-> nextfree__4Pool -= ((struct Pool *)((struct Pool *)(& __0this ->
  1011. arcpool__10Subdivider )))-> buffersize__4Pool ), ( (__1__Xbuffer00eohgaiaa = (((void *)(((struct Pool *)((struct Pool *)(& __0this -> arcpool__10Subdivider )))-> curblock__4Pool + ((struct Pool *)((struct Pool *)(&
  1012. __0this -> arcpool__10Subdivider )))-> nextfree__4Pool ))))) ) ) , 0 ) ), (((void *)__1__Xbuffer00eohgaiaa ))) ) ))) )?( (((struct
  1013. Arc *)__0__X19 )-> bezierArc__3Arc = 0 ), ( (((struct Arc *)__0__X19 )-> pwlArc__3Arc = 0 ), ( (((struct Arc *)__0__X19 )-> type__3Arc = 0 ), (
  1014. ( ( (((struct Arc *)__0__X19 )-> type__3Arc &= -1793)) , (((struct Arc *)__0__X19 )-> type__3Arc |= ((((long )((int )1)))<< 8 )))
  1015. , ( (((struct Arc *)__0__X19 )-> nuid__3Arc = ((long )0.0 )), ((((struct Arc *)__0__X19 )))) ) ) ) ) :0 );
  1016. __glbezier__14ArcTessellatorFP0 ( (struct ArcTessellator *)(& __0this -> arctessellator__10Subdivider ), __1jarc , __1smax , __1smax , __1tmin , __1tmax ) ;
  1017. ( (__1jarc -> link__3Arc = ((struct Bin *)(& __0this -> initialbin__10Subdivider ))-> head__3Bin ), (((struct Bin *)(& __0this -> initialbin__10Subdivider ))-> head__3Bin = __1jarc ))
  1018. ;
  1019. __0this -> pjarc__10Subdivider = __glappend__3ArcFP3Arc ( (struct Arc *)__1jarc , __0this -> pjarc__10Subdivider ) ;
  1020. __1jarc = ((__0__X20 = (struct Arc *)( (((void *)( (((void )0 )), ( (((struct Pool *)((struct Pool *)(& __0this -> arcpool__10Subdivider )))->
  1021. freelist__4Pool ?( ( (__1__Xbuffer00eohgaiaa = (((void *)((struct Pool *)((struct Pool *)(& __0this -> arcpool__10Subdivider )))-> freelist__4Pool ))), (((struct Pool *)((struct Pool *)(& __0this ->
  1022. arcpool__10Subdivider )))-> freelist__4Pool = ((struct Pool *)((struct Pool *)(& __0this -> arcpool__10Subdivider )))-> freelist__4Pool -> next__6Buffer )) , 0 ) :( ( ((!
  1023. ((struct Pool *)((struct Pool *)(& __0this -> arcpool__10Subdivider )))-> nextfree__4Pool )?( __glgrow__4PoolFv ( ((struct Pool *)((struct Pool *)(& __0this -> arcpool__10Subdivider )))) , 0 )
  1024. :( 0 ) ), ( (((struct Pool *)((struct Pool *)(& __0this -> arcpool__10Subdivider )))-> nextfree__4Pool -= ((struct Pool *)((struct Pool *)(& __0this ->
  1025. arcpool__10Subdivider )))-> buffersize__4Pool ), ( (__1__Xbuffer00eohgaiaa = (((void *)(((struct Pool *)((struct Pool *)(& __0this -> arcpool__10Subdivider )))-> curblock__4Pool + ((struct Pool *)((struct Pool *)(&
  1026. __0this -> arcpool__10Subdivider )))-> nextfree__4Pool ))))) ) ) , 0 ) ), (((void *)__1__Xbuffer00eohgaiaa ))) ) ))) )?( (((struct
  1027. Arc *)__0__X20 )-> bezierArc__3Arc = 0 ), ( (((struct Arc *)__0__X20 )-> pwlArc__3Arc = 0 ), ( (((struct Arc *)__0__X20 )-> type__3Arc = 0 ), (
  1028. ( ( (((struct Arc *)__0__X20 )-> type__3Arc &= -1793)) , (((struct Arc *)__0__X20 )-> type__3Arc |= ((((long )((int )2)))<< 8 )))
  1029. , ( (((struct Arc *)__0__X20 )-> nuid__3Arc = ((long )0.0 )), ((((struct Arc *)__0__X20 )))) ) ) ) ) :0 );
  1030. __glbezier__14ArcTessellatorFP0 ( (struct ArcTessellator *)(& __0this -> arctessellator__10Subdivider ), __1jarc , __1smax , __1smin , __1tmax , __1tmax ) ;
  1031. ( (__1jarc -> link__3Arc = ((struct Bin *)(& __0this -> initialbin__10Subdivider ))-> head__3Bin ), (((struct Bin *)(& __0this -> initialbin__10Subdivider ))-> head__3Bin = __1jarc ))
  1032. ;
  1033. __0this -> pjarc__10Subdivider = __glappend__3ArcFP3Arc ( (struct Arc *)__1jarc , __0this -> pjarc__10Subdivider ) ;
  1034. __1jarc = ((__0__X21 = (struct Arc *)( (((void *)( (((void )0 )), ( (((struct Pool *)((struct Pool *)(& __0this -> arcpool__10Subdivider )))->
  1035. freelist__4Pool ?( ( (__1__Xbuffer00eohgaiaa = (((void *)((struct Pool *)((struct Pool *)(& __0this -> arcpool__10Subdivider )))-> freelist__4Pool ))), (((struct Pool *)((struct Pool *)(& __0this ->
  1036. arcpool__10Subdivider )))-> freelist__4Pool = ((struct Pool *)((struct Pool *)(& __0this -> arcpool__10Subdivider )))-> freelist__4Pool -> next__6Buffer )) , 0 ) :( ( ((!
  1037. ((struct Pool *)((struct Pool *)(& __0this -> arcpool__10Subdivider )))-> nextfree__4Pool )?( __glgrow__4PoolFv ( ((struct Pool *)((struct Pool *)(& __0this -> arcpool__10Subdivider )))) , 0 )
  1038. :( 0 ) ), ( (((struct Pool *)((struct Pool *)(& __0this -> arcpool__10Subdivider )))-> nextfree__4Pool -= ((struct Pool *)((struct Pool *)(& __0this ->
  1039. arcpool__10Subdivider )))-> buffersize__4Pool ), ( (__1__Xbuffer00eohgaiaa = (((void *)(((struct Pool *)((struct Pool *)(& __0this -> arcpool__10Subdivider )))-> curblock__4Pool + ((struct Pool *)((struct Pool *)(&
  1040. __0this -> arcpool__10Subdivider )))-> nextfree__4Pool ))))) ) ) , 0 ) ), (((void *)__1__Xbuffer00eohgaiaa ))) ) ))) )?( (((struct
  1041. Arc *)__0__X21 )-> bezierArc__3Arc = 0 ), ( (((struct Arc *)__0__X21 )-> pwlArc__3Arc = 0 ), ( (((struct Arc *)__0__X21 )-> type__3Arc = 0 ), (
  1042. ( ( (((struct Arc *)__0__X21 )-> type__3Arc &= -1793)) , (((struct Arc *)__0__X21 )-> type__3Arc |= ((((long )((int )3)))<< 8 )))
  1043. , ( (((struct Arc *)__0__X21 )-> nuid__3Arc = ((long )0.0 )), ((((struct Arc *)__0__X21 )))) ) ) ) ) :0 );
  1044. __glbezier__14ArcTessellatorFP0 ( (struct ArcTessellator *)(& __0this -> arctessellator__10Subdivider ), __1jarc , __1smin , __1smin , __1tmax , __1tmin ) ;
  1045. ( (__1jarc -> link__3Arc = ((struct Bin *)(& __0this -> initialbin__10Subdivider ))-> head__3Bin ), (((struct Bin *)(& __0this -> initialbin__10Subdivider ))-> head__3Bin = __1jarc ))
  1046. ;
  1047. __glappend__3ArcFP3Arc ( (struct Arc *)__1jarc , __0this -> pjarc__10Subdivider ) ;
  1048. ((void )0 );
  1049. }
  1050. }
  1051. void __glmarkall__3BinFv (struct Bin *);
  1052. void __glsetisolines__6SlicerFi (struct Slicer *, int );
  1053. void __glslice__6SlicerFP3Arc (struct Slicer *, struct Arc *);
  1054. void __glrender__10SubdividerFR3Bin (struct Subdivider *__0this , struct Bin *__1bin )
  1055. {
  1056. __glmarkall__3BinFv ( (struct Bin *)__1bin ) ;
  1057. __glsetisolines__6SlicerFi ( (struct Slicer *)(& __0this -> slicer__10Subdivider ), (((*__0this -> renderhints__10Subdivider )). display_method__11Renderhints == 12.0 )?1 :0 ) ;
  1058. { { Arc_ptr __1jarc ;
  1059. struct Arc *__1__Xjarc00qbckaice ;
  1060. __1jarc = ( (((struct Bin *)__1bin )-> current__3Bin = ((struct Bin *)__1bin )-> head__3Bin ), ( (__1__Xjarc00qbckaice = ((struct Bin *)__1bin )-> current__3Bin ), (
  1061. (__1__Xjarc00qbckaice ?( (((struct Bin *)__1bin )-> current__3Bin = __1__Xjarc00qbckaice -> link__3Arc ), 0 ) :( 0 ) ), __1__Xjarc00qbckaice ) ) ) ;
  1062. for(;__1jarc ;__1jarc = ( (__1__Xjarc00qbckaice = ((struct Bin *)__1bin )-> current__3Bin ), ( (__1__Xjarc00qbckaice ?( (((struct Bin *)__1bin )-> current__3Bin = __1__Xjarc00qbckaice -> link__3Arc ), 0 )
  1063. :( 0 ) ), __1__Xjarc00qbckaice ) ) ) {
  1064. if (( (((struct Arc *)__1jarc )-> type__3Arc & __glarc_tag__3Arc )) ){
  1065. ((void )0 );
  1066. { Arc_ptr __3jarchead ;
  1067. __3jarchead = __1jarc ;
  1068. do {
  1069. ( (((struct Arc *)__1jarc )-> type__3Arc &= (~ __glarc_tag__3Arc ))) ;
  1070. __1jarc = __1jarc -> next__3Arc ;
  1071. }
  1072. while (__1jarc != __3jarchead );
  1073. __glslice__6SlicerFP3Arc ( (struct Slicer *)(& __0this -> slicer__10Subdivider ), __1jarc ) ;
  1074. }
  1075. }
  1076. }
  1077. }
  1078. }
  1079. }
  1080. void __gloutline__6SlicerFP3Arc (struct Slicer *, struct Arc *);
  1081. void __gloutline__10SubdividerFR3Bi0 (struct Subdivider *__0this , struct Bin *__1bin )
  1082. {
  1083. __glmarkall__3BinFv ( (struct Bin *)__1bin ) ;
  1084. { { Arc_ptr __1jarc ;
  1085. struct Arc *__1__Xjarc00qbckaice ;
  1086. __1jarc = ( (((struct Bin *)__1bin )-> current__3Bin = ((struct Bin *)__1bin )-> head__3Bin ), ( (__1__Xjarc00qbckaice = ((struct Bin *)__1bin )-> current__3Bin ), (
  1087. (__1__Xjarc00qbckaice ?( (((struct Bin *)__1bin )-> current__3Bin = __1__Xjarc00qbckaice -> link__3Arc ), 0 ) :( 0 ) ), __1__Xjarc00qbckaice ) ) ) ;
  1088. for(;__1jarc ;__1jarc = ( (__1__Xjarc00qbckaice = ((struct Bin *)__1bin )-> current__3Bin ), ( (__1__Xjarc00qbckaice ?( (((struct Bin *)__1bin )-> current__3Bin = __1__Xjarc00qbckaice -> link__3Arc ), 0 )
  1089. :( 0 ) ), __1__Xjarc00qbckaice ) ) ) {
  1090. if (( (((struct Arc *)__1jarc )-> type__3Arc & __glarc_tag__3Arc )) ){
  1091. ((void )0 );
  1092. { Arc_ptr __3jarchead ;
  1093. __3jarchead = __1jarc ;
  1094. do {
  1095. __gloutline__6SlicerFP3Arc ( (struct Slicer *)(& __0this -> slicer__10Subdivider ), __1jarc ) ;
  1096. ( (((struct Arc *)__1jarc )-> type__3Arc &= (~ __glarc_tag__3Arc ))) ;
  1097. __1jarc = __1jarc -> prev__3Arc ;
  1098. }
  1099. while (__1jarc != __3jarchead );
  1100. }
  1101. }
  1102. }
  1103. }
  1104. }
  1105. }
  1106. void __gladopt__3BinFv (struct Bin *);
  1107. void __glfreejarcs__10SubdividerFR30 (struct Subdivider *__0this , struct Bin *__1bin )
  1108. {
  1109. Arc_ptr __1jarc ;
  1110. struct Arc *__1__Xjarc00efckaice ;
  1111. __gladopt__3BinFv ( (struct Bin *)__1bin ) ;
  1112. ;
  1113. while (__1jarc = ( (__1__Xjarc00efckaice = ((struct Bin *)__1bin )-> head__3Bin ), ( (__1__Xjarc00efckaice ?( (((struct Bin *)__1bin )-> head__3Bin = __1__Xjarc00efckaice -> link__3Arc ),
  1114. 0 ) :( 0 ) ), __1__Xjarc00efckaice ) ) ){
  1115. struct PooledObj *__0__X23 ;
  1116. struct PooledObj *__0__X24 ;
  1117. if (__1jarc -> pwlArc__3Arc )( (__0__X23 = (struct PooledObj *)__1jarc -> pwlArc__3Arc ), ( ( (((void )0 )), ( ((((struct Buffer *)(((struct
  1118. Buffer *)(((void *)__0__X23 ))))))-> next__6Buffer = ((struct Pool *)((struct Pool *)(& __0this -> pwlarcpool__10Subdivider )))-> freelist__4Pool ), (((struct Pool *)((struct Pool *)(& __0this -> pwlarcpool__10Subdivider )))->
  1119. freelist__4Pool = (((struct Buffer *)(((struct Buffer *)(((void *)__0__X23 )))))))) ) ) ) ;
  1120. __1jarc -> pwlArc__3Arc = 0 ;
  1121. if (__1jarc -> bezierArc__3Arc )( (__0__X24 = (struct PooledObj *)__1jarc -> bezierArc__3Arc ), ( ( (((void )0 )), ( ((((struct Buffer *)(((struct
  1122. Buffer *)(((void *)__0__X24 ))))))-> next__6Buffer = ((struct Pool *)((struct Pool *)(& __0this -> bezierarcpool__10Subdivider )))-> freelist__4Pool ), (((struct Pool *)((struct Pool *)(& __0this -> bezierarcpool__10Subdivider )))->
  1123. freelist__4Pool = (((struct Buffer *)(((struct Buffer *)(((void *)__0__X24 )))))))) ) ) ) ;
  1124. __1jarc -> bezierArc__3Arc = 0 ;
  1125. ( ( (((void )0 )), ( ((((struct Buffer *)(((struct Buffer *)(((void *)((struct PooledObj *)__1jarc )))))))-> next__6Buffer = ((struct Pool *)((struct Pool *)(&
  1126. __0this -> arcpool__10Subdivider )))-> freelist__4Pool ), (((struct Pool *)((struct Pool *)(& __0this -> arcpool__10Subdivider )))-> freelist__4Pool = (((struct Buffer *)(((struct Buffer *)(((void *)((struct PooledObj *)__1jarc )))))))))
  1127. ) ) ;
  1128. }
  1129. }
  1130. void __glpwl_left__14ArcTessellator0 (struct ArcTessellator *, struct Arc *, REAL , REAL , REAL , REAL );
  1131. void __glpwl_right__14ArcTessellato0 (struct ArcTessellator *, struct Arc *, REAL , REAL , REAL , REAL );
  1132. void __glpwl_top__14ArcTessellatorF0 (struct ArcTessellator *, struct Arc *, REAL , REAL , REAL , REAL );
  1133. void __glpwl_bottom__14ArcTessellat0 (struct ArcTessellator *, struct Arc *, REAL , REAL , REAL , REAL );
  1134. // extern void abort (void );
  1135. void __gltessellate__10SubdividerFR0 (struct Subdivider *__0this , struct Bin *__1bin , REAL __1rrate , REAL __1trate , REAL __1lrate , REAL __1brate )
  1136. {
  1137. { { Arc_ptr __1jarc ;
  1138. struct Arc *__1__Xjarc00qbckaice ;
  1139. __1jarc = ( (((struct Bin *)__1bin )-> current__3Bin = ((struct Bin *)__1bin )-> head__3Bin ), ( (__1__Xjarc00qbckaice = ((struct Bin *)__1bin )-> current__3Bin ), (
  1140. (__1__Xjarc00qbckaice ?( (((struct Bin *)__1bin )-> current__3Bin = __1__Xjarc00qbckaice -> link__3Arc ), 0 ) :( 0 ) ), __1__Xjarc00qbckaice ) ) ) ;
  1141. for(;__1jarc ;__1jarc = ( (__1__Xjarc00qbckaice = ((struct Bin *)__1bin )-> current__3Bin ), ( (__1__Xjarc00qbckaice ?( (((struct Bin *)__1bin )-> current__3Bin = __1__Xjarc00qbckaice -> link__3Arc ), 0 )
  1142. :( 0 ) ), __1__Xjarc00qbckaice ) ) ) {
  1143. if (( (((struct Arc *)__1jarc )-> type__3Arc & __glbezier_tag__3Arc )) ){
  1144. ((void )0 );
  1145. { struct TrimVertex *__3pts ;
  1146. REAL __3s1 ;
  1147. REAL __3t1 ;
  1148. REAL __3s2 ;
  1149. REAL __3t2 ;
  1150. struct PooledObj *__0__X25 ;
  1151. __3pts = __1jarc -> pwlArc__3Arc -> pts__6PwlArc ;
  1152. __3s1 = ((__3pts [0 ]). param__10TrimVertex [0 ]);
  1153. __3t1 = ((__3pts [0 ]). param__10TrimVertex [1 ]);
  1154. __3s2 = ((__3pts [1 ]). param__10TrimVertex [0 ]);
  1155. __3t2 = ((__3pts [1 ]). param__10TrimVertex [1 ]);
  1156. ( (__0__X25 = (struct PooledObj *)__1jarc -> pwlArc__3Arc ), ( ( (((void )0 )), ( ((((struct Buffer *)(((struct Buffer *)(((void *)__0__X25 ))))))->
  1157. next__6Buffer = ((struct Pool *)((struct Pool *)(& __0this -> pwlarcpool__10Subdivider )))-> freelist__4Pool ), (((struct Pool *)((struct Pool *)(& __0this -> pwlarcpool__10Subdivider )))-> freelist__4Pool = (((struct
  1158. Buffer *)(((struct Buffer *)(((void *)__0__X25 )))))))) ) ) ) ;
  1159. __1jarc -> pwlArc__3Arc = 0 ;
  1160. switch (( (((int )((((struct Arc *)__1jarc )-> type__3Arc >> 8 )& 0x7 )))) ){
  1161. case 3:
  1162. ((void )0 );
  1163. __glpwl_left__14ArcTessellator0 ( (struct ArcTessellator *)(& __0this -> arctessellator__10Subdivider ), __1jarc , __3s1 , __3t1 , __3t2 , __1lrate ) ;
  1164. break ;
  1165. case 1:
  1166. ((void )0 );
  1167. __glpwl_right__14ArcTessellato0 ( (struct ArcTessellator *)(& __0this -> arctessellator__10Subdivider ), __1jarc , __3s1 , __3t1 , __3t2 , __1rrate ) ;
  1168. break ;
  1169. case 2:
  1170. ((void )0 );
  1171. __glpwl_top__14ArcTessellatorF0 ( (struct ArcTessellator *)(& __0this -> arctessellator__10Subdivider ), __1jarc , __3t1 , __3s1 , __3s2 , __1trate ) ;
  1172. break ;
  1173. case 4:
  1174. ((void )0 );
  1175. __glpwl_bottom__14ArcTessellat0 ( (struct ArcTessellator *)(& __0this -> arctessellator__10Subdivider ), __1jarc , __3t1 , __3s1 , __3s2 , __1brate ) ;
  1176. break ;
  1177. case 0:
  1178. (abort ( ) );
  1179. break ;
  1180. }
  1181. ((void )0 );
  1182. ((void )0 );
  1183. }
  1184. }
  1185. }
  1186. }
  1187. }
  1188. }
  1189. /* the end */