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.

1833 lines
56 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/nurbsinterfac.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 Renderhints;
  272. struct Renderhints {
  273. REAL display_method__11Renderhints ;
  274. REAL errorchecking__11Renderhints ;
  275. REAL subdivisions__11Renderhints ;
  276. REAL tmp1__11Renderhints ;
  277. int displaydomain__11Renderhints ;
  278. int maxsubdivisions__11Renderhints ;
  279. int wiretris__11Renderhints ;
  280. int wirequads__11Renderhints ;
  281. };
  282. struct GridVertex;
  283. struct GridVertex {
  284. long gparam__10GridVertex [2];
  285. };
  286. struct GridTrimVertex;
  287. struct GridTrimVertex {
  288. char __W3__9PooledObj ;
  289. struct TrimVertex dummyt__14GridTrimVertex ;
  290. struct GridVertex dummyg__14GridTrimVertex ;
  291. struct TrimVertex *t__14GridTrimVertex ;
  292. struct GridVertex *g__14GridTrimVertex ;
  293. };
  294. typedef struct GridTrimVertex *GridTrimVertex_p ;
  295. struct BasicCurveEvaluator;
  296. struct BasicSurfaceEvaluator;
  297. struct Backend;
  298. struct Backend {
  299. struct BasicCurveEvaluator *curveEvaluator__7Backend ;
  300. struct BasicSurfaceEvaluator *surfaceEvaluator__7Backend ;
  301. int wireframetris__7Backend ;
  302. int wireframequads__7Backend ;
  303. int npts__7Backend ;
  304. REAL mesh__7Backend [3][4];
  305. int meshindex__7Backend ;
  306. };
  307. struct Mapdesc;
  308. struct Maplist;
  309. void __gl__dt__4PoolFv (struct Pool *, int );
  310. struct Maplist {
  311. struct Pool mapdescPool__7Maplist ;
  312. struct Mapdesc *maps__7Maplist ;
  313. struct Mapdesc **lastmap__7Maplist ;
  314. struct Backend *backend__7Maplist ;
  315. };
  316. struct Mapdesc *__gllocate__7MaplistFl (struct Maplist *, long );
  317. void __glremove__7MaplistFP7Mapdesc (struct Maplist *, struct Mapdesc *);
  318. enum Curvetype { ct_nurbscurve = 0, ct_pwlcurve = 1, ct_none = 2} ;
  319. struct Property;
  320. struct O_surface;
  321. struct O_nurbssurface;
  322. struct O_trim;
  323. struct O_pwlcurve;
  324. struct O_nurbscurve;
  325. struct O_curve;
  326. struct Quilt;
  327. union __Q2_7O_curve4__C1;
  328. union __Q2_7O_curve4__C1 {
  329. struct O_nurbscurve *o_nurbscurve ;
  330. struct O_pwlcurve *o_pwlcurve ;
  331. };
  332. struct O_curve;
  333. struct O_curve {
  334. char __W3__9PooledObj ;
  335. union __Q2_7O_curve4__C1 curve__7O_curve ;
  336. int curvetype__7O_curve ;
  337. struct O_curve *next__7O_curve ;
  338. struct O_surface *owner__7O_curve ;
  339. int used__7O_curve ;
  340. int save__7O_curve ;
  341. long nuid__7O_curve ;
  342. };
  343. struct O_nurbscurve;
  344. struct O_nurbscurve {
  345. char __W3__9PooledObj ;
  346. struct Quilt *bezier_curves__12O_nurbscurve ;
  347. long type__12O_nurbscurve ;
  348. REAL tesselation__12O_nurbscurve ;
  349. int method__12O_nurbscurve ;
  350. struct O_nurbscurve *next__12O_nurbscurve ;
  351. int used__12O_nurbscurve ;
  352. int save__12O_nurbscurve ;
  353. struct O_curve *owner__12O_nurbscurve ;
  354. };
  355. struct O_pwlcurve;
  356. struct O_pwlcurve {
  357. char __W3__9PooledObj ;
  358. struct TrimVertex *pts__10O_pwlcurve ;
  359. int npts__10O_pwlcurve ;
  360. struct O_pwlcurve *next__10O_pwlcurve ;
  361. int used__10O_pwlcurve ;
  362. int save__10O_pwlcurve ;
  363. struct O_curve *owner__10O_pwlcurve ;
  364. };
  365. struct O_trim;
  366. struct O_trim {
  367. char __W3__9PooledObj ;
  368. struct O_curve *o_curve__6O_trim ;
  369. struct O_trim *next__6O_trim ;
  370. int save__6O_trim ;
  371. };
  372. struct O_nurbssurface;
  373. struct O_nurbssurface {
  374. char __W3__9PooledObj ;
  375. struct Quilt *bezier_patches__14O_nurbssurface ;
  376. long type__14O_nurbssurface ;
  377. struct O_surface *owner__14O_nurbssurface ;
  378. struct O_nurbssurface *next__14O_nurbssurface ;
  379. int save__14O_nurbssurface ;
  380. int used__14O_nurbssurface ;
  381. };
  382. struct O_surface;
  383. struct O_surface {
  384. char __W3__9PooledObj ;
  385. struct O_nurbssurface *o_nurbssurface__9O_surface ;
  386. struct O_trim *o_trim__9O_surface ;
  387. int save__9O_surface ;
  388. long nuid__9O_surface ;
  389. };
  390. struct Property;
  391. struct Property {
  392. char __W3__9PooledObj ;
  393. long type__8Property ;
  394. long tag__8Property ;
  395. REAL value__8Property ;
  396. int save__8Property ;
  397. };
  398. struct NurbsTessellator;
  399. struct Knotvector;
  400. struct Quilt;
  401. struct DisplayList;
  402. struct BasicCurveEvaluator;
  403. struct BasicSurfaceEvaluator;
  404. struct NurbsTessellator;
  405. struct NurbsTessellator {
  406. struct Renderhints renderhints__16NurbsTessellator ;
  407. struct Maplist maplist__16NurbsTessellator ;
  408. struct Backend backend__16NurbsTessellator ;
  409. struct Subdivider subdivider__16NurbsTessellator ;
  410. struct JumpBuffer *jumpbuffer__16NurbsTessellator ;
  411. struct Pool o_pwlcurvePool__16NurbsTessellator ;
  412. struct Pool o_nurbscurvePool__16NurbsTessellator ;
  413. struct Pool o_curvePool__16NurbsTessellator ;
  414. struct Pool o_trimPool__16NurbsTessellator ;
  415. struct Pool o_surfacePool__16NurbsTessellator ;
  416. struct Pool o_nurbssurfacePool__16NurbsTessellator ;
  417. struct Pool propertyPool__16NurbsTessellator ;
  418. struct Pool quiltPool__16NurbsTessellator ;
  419. struct TrimVertexPool extTrimVertexPool__16NurbsTessellator ;
  420. int inSurface__16NurbsTessellator ;
  421. int inCurve__16NurbsTessellator ;
  422. int inTrim__16NurbsTessellator ;
  423. int isCurveModified__16NurbsTessellator ;
  424. int isTrimModified__16NurbsTessellator ;
  425. int isSurfaceModified__16NurbsTessellator ;
  426. int isDataValid__16NurbsTessellator ;
  427. int numTrims__16NurbsTessellator ;
  428. int playBack__16NurbsTessellator ;
  429. struct O_trim **nextTrim__16NurbsTessellator ;
  430. struct O_curve **nextCurve__16NurbsTessellator ;
  431. struct O_nurbscurve **nextNurbscurve__16NurbsTessellator ;
  432. struct O_pwlcurve **nextPwlcurve__16NurbsTessellator ;
  433. struct O_nurbssurface **nextNurbssurface__16NurbsTessellator ;
  434. struct O_surface *currentSurface__16NurbsTessellator ;
  435. struct O_trim *currentTrim__16NurbsTessellator ;
  436. struct O_curve *currentCurve__16NurbsTessellator ;
  437. struct DisplayList *dl__16NurbsTessellator ;
  438. struct __mptr *__vptr__16NurbsTessellator ;
  439. };
  440. extern char *__glNurbsErrors [];
  441. struct Mapdesc;
  442. struct Knotvector;
  443. struct Quiltspec;
  444. struct Quiltspec {
  445. int stride__9Quiltspec ;
  446. int width__9Quiltspec ;
  447. int offset__9Quiltspec ;
  448. int order__9Quiltspec ;
  449. int index__9Quiltspec ;
  450. int bdry__9Quiltspec [2];
  451. REAL step_size__9Quiltspec ;
  452. Knot *breakpoints__9Quiltspec ;
  453. };
  454. typedef struct Quiltspec *Quiltspec_ptr ;
  455. struct Quilt;
  456. struct Quilt {
  457. char __W3__9PooledObj ;
  458. struct Mapdesc *mapdesc__5Quilt ;
  459. REAL *cpts__5Quilt ;
  460. struct Quiltspec qspec__5Quilt [2];
  461. Quiltspec_ptr eqspec__5Quilt ;
  462. struct Quilt *next__5Quilt ;
  463. };
  464. typedef struct Quilt *Quilt_ptr ;
  465. typedef struct __mptr PFVS ;
  466. struct Dlnode;
  467. struct Dlnode {
  468. char __W3__9PooledObj ;
  469. PFVS work__6Dlnode ;
  470. void *arg__6Dlnode ;
  471. PFVS cleanup__6Dlnode ;
  472. struct Dlnode *next__6Dlnode ;
  473. };
  474. struct DisplayList;
  475. struct DisplayList {
  476. struct Dlnode *nodes__11DisplayList ;
  477. struct Pool dlnodePool__11DisplayList ;
  478. struct Dlnode **lastNode__11DisplayList ;
  479. struct NurbsTessellator *nt__11DisplayList ;
  480. };
  481. struct Knotvector;
  482. struct Knotvector {
  483. long order__10Knotvector ;
  484. long knotcount__10Knotvector ;
  485. long stride__10Knotvector ;
  486. Knot *knotlist__10Knotvector ;
  487. };
  488. typedef REAL Maxmatrix [5][5];
  489. struct Mapdesc;
  490. struct Mapdesc {
  491. char __W3__9PooledObj ;
  492. REAL pixel_tolerance__7Mapdesc ;
  493. REAL clampfactor__7Mapdesc ;
  494. REAL minsavings__7Mapdesc ;
  495. REAL maxrate__7Mapdesc ;
  496. REAL maxsrate__7Mapdesc ;
  497. REAL maxtrate__7Mapdesc ;
  498. REAL bboxsize__7Mapdesc [5];
  499. long type__7Mapdesc ;
  500. int isrational__7Mapdesc ;
  501. int ncoords__7Mapdesc ;
  502. int hcoords__7Mapdesc ;
  503. int inhcoords__7Mapdesc ;
  504. int mask__7Mapdesc ;
  505. Maxmatrix bmat__7Mapdesc ;
  506. Maxmatrix cmat__7Mapdesc ;
  507. Maxmatrix smat__7Mapdesc ;
  508. REAL s_steps__7Mapdesc ;
  509. REAL t_steps__7Mapdesc ;
  510. REAL sampling_method__7Mapdesc ;
  511. REAL culling_method__7Mapdesc ;
  512. REAL bbox_subdividing__7Mapdesc ;
  513. struct Mapdesc *next__7Mapdesc ;
  514. struct Backend *backend__7Mapdesc ;
  515. };
  516. void __glcopy__7MapdescSFPA5_flPfN20 (REAL (*)[5], long , float *, long , long );
  517. void __glxformRational__7MapdescFPA0 (struct Mapdesc *, REAL (*)[5], REAL *, REAL *);
  518. void __glxformNonrational__7Mapdesc0 (struct Mapdesc *, REAL (*)[5], REAL *, REAL *);
  519. struct Pool *__gl__ct__4PoolFiT1Pc (struct Pool *, int , int , char *);
  520. struct Maplist *__gl__ct__7MaplistFR7Backend (struct Maplist *, struct Backend *);
  521. struct Subdivider *__gl__ct__10SubdividerFR11Rend0 (struct Subdivider *, struct Renderhints *, struct Backend *);
  522. extern struct JumpBuffer *__glnewJumpBuffer (void );
  523. void __glsetJumpbuffer__10Subdivide0 (struct Subdivider *, struct JumpBuffer *);
  524. extern struct __mptr* __gl__ptbl_vec_____core_nurbsi0[];
  525. struct Renderhints *__gl__ct__11RenderhintsFv (struct Renderhints *);
  526. struct TrimVertexPool *__gl__ct__14TrimVertexPoolFv (struct TrimVertexPool *);
  527. struct NurbsTessellator *__gl__ct__16NurbsTessellatorFR0 (struct NurbsTessellator *__0this , struct BasicCurveEvaluator *__1c , struct BasicSurfaceEvaluator *__1e )
  528. {
  529. void *__1__Xp00uzigaiaa ;
  530. if (__0this || (__0this = (struct NurbsTessellator *)( (__1__Xp00uzigaiaa = malloc ( (sizeof (struct NurbsTessellator))) ), (__1__Xp00uzigaiaa ?(((void *)__1__Xp00uzigaiaa )):(((void *)__1__Xp00uzigaiaa )))) )){
  531. ( ( ( ( ( ( ( ( ( ( ( ( ( (__0this ->
  532. __vptr__16NurbsTessellator = (struct __mptr *) __gl__ptbl_vec_____core_nurbsi0[0]), __gl__ct__11RenderhintsFv ( (struct Renderhints *)(& __0this -> renderhints__16NurbsTessellator )) ) , __gl__ct__7MaplistFR7Backend ( (struct Maplist *)(& __0this ->
  533. maplist__16NurbsTessellator ), (struct Backend *)(& __0this -> backend__16NurbsTessellator )) ) , ( (( ( (((struct Backend *)(& __0this -> backend__16NurbsTessellator ))->
  534. curveEvaluator__7Backend = __1c ), (((struct Backend *)(& __0this -> backend__16NurbsTessellator ))-> surfaceEvaluator__7Backend = __1e )) , 0 ) ), ((((struct Backend *)(& __0this ->
  535. backend__16NurbsTessellator ))))) ) , __gl__ct__10SubdividerFR11Rend0 ( (struct Subdivider *)(& __0this -> subdivider__16NurbsTessellator ), (struct Renderhints *)(& __0this -> renderhints__16NurbsTessellator ), (struct Backend *)(&
  536. __0this -> backend__16NurbsTessellator )) ) , __gl__ct__4PoolFiT1Pc ( (struct Pool *)(& __0this -> o_pwlcurvePool__16NurbsTessellator ), (int )(sizeof (struct O_pwlcurve )), 32 ,
  537. (char *)"o_pwlcurvePool") ) , __gl__ct__4PoolFiT1Pc ( (struct Pool *)(& __0this -> o_nurbscurvePool__16NurbsTessellator ), (int
  538. )(sizeof (struct O_nurbscurve )), 32 , (char *)"o_nurbscurvePool") ) , __gl__ct__4PoolFiT1Pc ( (struct
  539. Pool *)(& __0this -> o_curvePool__16NurbsTessellator ), (int )(sizeof (struct O_curve )), 32 , (char *)"o_curvePool")
  540. ) , __gl__ct__4PoolFiT1Pc ( (struct Pool *)(& __0this -> o_trimPool__16NurbsTessellator ), (int )(sizeof (struct O_trim )), 32 , (char *)"o_trimPool")
  541. ) , __gl__ct__4PoolFiT1Pc ( (struct Pool *)(& __0this -> o_surfacePool__16NurbsTessellator ), (int )(sizeof (struct O_surface )), 1 , (char *)"o_surfacePool")
  542. ) , __gl__ct__4PoolFiT1Pc ( (struct Pool *)(& __0this -> o_nurbssurfacePool__16NurbsTessellator ), (int )(sizeof (struct O_nurbssurface )), 4 , (char *)"o_nurbssurfacePool")
  543. ) , __gl__ct__4PoolFiT1Pc ( (struct Pool *)(& __0this -> propertyPool__16NurbsTessellator ), (int )(sizeof (struct Property )), 32 , (char *)"propertyPool")
  544. ) , __gl__ct__4PoolFiT1Pc ( (struct Pool *)(& __0this -> quiltPool__16NurbsTessellator ), (int )(sizeof (struct Quilt )), 32 , (char *)"quiltPool")
  545. ) , __gl__ct__14TrimVertexPoolFv ( (struct TrimVertexPool *)(& __0this -> extTrimVertexPool__16NurbsTessellator )) ) ;
  546. __0this -> dl__16NurbsTessellator = 0 ;
  547. __0this -> inSurface__16NurbsTessellator = 0 ;
  548. __0this -> inCurve__16NurbsTessellator = 0 ;
  549. __0this -> inTrim__16NurbsTessellator = 0 ;
  550. __0this -> playBack__16NurbsTessellator = 0 ;
  551. __0this -> jumpbuffer__16NurbsTessellator = __glnewJumpBuffer ( ) ;
  552. __glsetJumpbuffer__10Subdivide0 ( (struct Subdivider *)(& __0this -> subdivider__16NurbsTessellator ), __0this -> jumpbuffer__16NurbsTessellator ) ;
  553. } return __0this ;
  554. }
  555. void __gldo_nurbserror__16NurbsTess0 (struct NurbsTessellator *, int );
  556. void __glendtrim__16NurbsTessellato0 (struct NurbsTessellator *);
  557. void __gldo_freeall__16NurbsTessell0 (struct NurbsTessellator *);
  558. void __gl__dt__10SubdividerFv (struct Subdivider *, int );
  559. void __gl__dt__14TrimVertexPoolFv (struct TrimVertexPool *, int );
  560. void __gl__dt__16NurbsTessellatorFv (struct NurbsTessellator *__0this ,
  561. int __0__free )
  562. { if (__0this ){
  563. __0this -> __vptr__16NurbsTessellator = (struct __mptr *) __gl__ptbl_vec_____core_nurbsi0[0];
  564. if (__0this -> inTrim__16NurbsTessellator ){
  565. __gldo_nurbserror__16NurbsTess0 ( __0this , 12 ) ;
  566. __glendtrim__16NurbsTessellato0 ( __0this ) ;
  567. }
  568. if (__0this -> inSurface__16NurbsTessellator ){
  569. ((*__0this -> nextNurbssurface__16NurbsTessellator ))= 0 ;
  570. __gldo_freeall__16NurbsTessell0 ( __0this ) ;
  571. }
  572. if (__0this ){ __gl__dt__14TrimVertexPoolFv ( (struct TrimVertexPool *)(& __0this -> extTrimVertexPool__16NurbsTessellator ), 2) ;
  573. __gl__dt__4PoolFv ( (struct Pool *)(& __0this -> quiltPool__16NurbsTessellator ), 2) ;
  574. __gl__dt__4PoolFv ( (struct Pool *)(& __0this -> propertyPool__16NurbsTessellator ), 2) ;
  575. __gl__dt__4PoolFv ( (struct Pool *)(& __0this -> o_nurbssurfacePool__16NurbsTessellator ), 2) ;
  576. __gl__dt__4PoolFv ( (struct Pool *)(& __0this -> o_surfacePool__16NurbsTessellator ), 2) ;
  577. __gl__dt__4PoolFv ( (struct Pool *)(& __0this -> o_trimPool__16NurbsTessellator ), 2) ;
  578. __gl__dt__4PoolFv ( (struct Pool *)(& __0this -> o_curvePool__16NurbsTessellator ), 2) ;
  579. __gl__dt__4PoolFv ( (struct Pool *)(& __0this -> o_nurbscurvePool__16NurbsTessellator ), 2) ;
  580. __gl__dt__4PoolFv ( (struct Pool *)(& __0this -> o_pwlcurvePool__16NurbsTessellator ), 2) ;
  581. __gl__dt__10SubdividerFv ( (struct Subdivider *)(& __0this -> subdivider__16NurbsTessellator ), 2) ;
  582. ((void )( (( (( ( __gl__dt__4PoolFv ( (struct Pool *)(& ((struct Maplist *)(& __0this -> maplist__16NurbsTessellator ))-> mapdescPool__7Maplist ), 2)
  583. , (( 0 ) )) , 0 ) ), 0 ) )) );
  584. if (__0__free & 1)( (((void *)__0this )?( free ( ((void *)__0this )) , 0 ) :( 0 ) )) ;
  585. } } }
  586. void __glappend__11DisplayListFM16N0 (struct DisplayList *, PFVS , void *, PFVS );
  587. void __gldo_bgnsurface__16NurbsTess0 (struct NurbsTessellator *, struct O_surface *);
  588. void __gldo_freebgnsurface__16Nurbs0 (struct NurbsTessellator *, struct O_surface *);
  589. void __glbgnsurface__16NurbsTessell0 (struct NurbsTessellator *__0this , long __1nuid )
  590. {
  591. struct O_surface *__1o_surface ;
  592. struct O_surface *__0__X16 ;
  593. void *__1__Xbuffer00eohgaiaa ;
  594. __1o_surface = ((__0__X16 = (struct O_surface *)( (((void *)( (((void )0 )), ( (((struct Pool *)((struct Pool *)(& __0this -> o_surfacePool__16NurbsTessellator )))->
  595. freelist__4Pool ?( ( (__1__Xbuffer00eohgaiaa = (((void *)((struct Pool *)((struct Pool *)(& __0this -> o_surfacePool__16NurbsTessellator )))-> freelist__4Pool ))), (((struct Pool *)((struct Pool *)(& __0this ->
  596. o_surfacePool__16NurbsTessellator )))-> freelist__4Pool = ((struct Pool *)((struct Pool *)(& __0this -> o_surfacePool__16NurbsTessellator )))-> freelist__4Pool -> next__6Buffer )) , 0 ) :( ( ((!
  597. ((struct Pool *)((struct Pool *)(& __0this -> o_surfacePool__16NurbsTessellator )))-> nextfree__4Pool )?( __glgrow__4PoolFv ( ((struct Pool *)((struct Pool *)(& __0this -> o_surfacePool__16NurbsTessellator )))) , 0 )
  598. :( 0 ) ), ( (((struct Pool *)((struct Pool *)(& __0this -> o_surfacePool__16NurbsTessellator )))-> nextfree__4Pool -= ((struct Pool *)((struct Pool *)(& __0this ->
  599. o_surfacePool__16NurbsTessellator )))-> buffersize__4Pool ), ( (__1__Xbuffer00eohgaiaa = (((void *)(((struct Pool *)((struct Pool *)(& __0this -> o_surfacePool__16NurbsTessellator )))-> curblock__4Pool + ((struct Pool *)((struct Pool *)(&
  600. __0this -> o_surfacePool__16NurbsTessellator )))-> nextfree__4Pool ))))) ) ) , 0 ) ), (((void *)__1__Xbuffer00eohgaiaa ))) ) ))) )?( (((struct
  601. O_surface *)__0__X16 )-> o_trim__9O_surface = 0 ), ( (((struct O_surface *)__0__X16 )-> o_nurbssurface__9O_surface = 0 ), ((((struct O_surface *)__0__X16 )))) ) :0 );
  602. __1o_surface -> nuid__9O_surface = __1nuid ;
  603. if (__0this -> dl__16NurbsTessellator ){ __1o_surface -> save__9O_surface = 1 ;
  604. {
  605. struct __mptr __0__A14 ;
  606. struct __mptr __0__A15 ;
  607. __glappend__11DisplayListFM16N0 ( (struct DisplayList *)__0this -> dl__16NurbsTessellator , ( ( (__0__A14 .d= 0 ), ( (__0__A14 .i= -1), (__0__A14 .f= (((int (*)(void
  608. ))__gldo_bgnsurface__16NurbsTess0 )))) ) , __0__A14 ) , ((void *)__1o_surface ), ( ( (__0__A15 .d= 0 ), ( (__0__A15 .i= -1),
  609. (__0__A15 .f= (((int (*)(void ))__gldo_freebgnsurface__16Nurbs0 )))) ) , __0__A15 ) ) ;
  610. }
  611. }
  612. else
  613. { __1o_surface -> save__9O_surface = 0 ;
  614. __gldo_bgnsurface__16NurbsTess0 ( __0this , __1o_surface ) ;
  615. }
  616. ;
  617. }
  618. void __gldo_bgncurve__16NurbsTessel0 (struct NurbsTessellator *, struct O_curve *);
  619. void __gldo_freebgncurve__16NurbsTe0 (struct NurbsTessellator *, struct O_curve *);
  620. void __glbgncurve__16NurbsTessellat0 (struct NurbsTessellator *__0this , long __1nuid )
  621. {
  622. struct O_curve *__1o_curve ;
  623. struct O_curve *__0__X19 ;
  624. void *__1__Xbuffer00eohgaiaa ;
  625. __1o_curve = ((__0__X19 = (struct O_curve *)( (((void *)( (((void )0 )), ( (((struct Pool *)((struct Pool *)(& __0this -> o_curvePool__16NurbsTessellator )))->
  626. freelist__4Pool ?( ( (__1__Xbuffer00eohgaiaa = (((void *)((struct Pool *)((struct Pool *)(& __0this -> o_curvePool__16NurbsTessellator )))-> freelist__4Pool ))), (((struct Pool *)((struct Pool *)(& __0this ->
  627. o_curvePool__16NurbsTessellator )))-> freelist__4Pool = ((struct Pool *)((struct Pool *)(& __0this -> o_curvePool__16NurbsTessellator )))-> freelist__4Pool -> next__6Buffer )) , 0 ) :( ( ((!
  628. ((struct Pool *)((struct Pool *)(& __0this -> o_curvePool__16NurbsTessellator )))-> nextfree__4Pool )?( __glgrow__4PoolFv ( ((struct Pool *)((struct Pool *)(& __0this -> o_curvePool__16NurbsTessellator )))) , 0 )
  629. :( 0 ) ), ( (((struct Pool *)((struct Pool *)(& __0this -> o_curvePool__16NurbsTessellator )))-> nextfree__4Pool -= ((struct Pool *)((struct Pool *)(& __0this ->
  630. o_curvePool__16NurbsTessellator )))-> buffersize__4Pool ), ( (__1__Xbuffer00eohgaiaa = (((void *)(((struct Pool *)((struct Pool *)(& __0this -> o_curvePool__16NurbsTessellator )))-> curblock__4Pool + ((struct Pool *)((struct Pool *)(&
  631. __0this -> o_curvePool__16NurbsTessellator )))-> nextfree__4Pool ))))) ) ) , 0 ) ), (((void *)__1__Xbuffer00eohgaiaa ))) ) ))) )?( (((struct
  632. O_curve *)__0__X19 )-> next__7O_curve = 0 ), ( (((struct O_curve *)__0__X19 )-> used__7O_curve = 0 ), ( (((struct O_curve *)__0__X19 )-> owner__7O_curve = 0 ), (
  633. (((struct O_curve *)__0__X19 )-> curve__7O_curve . o_pwlcurve = 0 ), ((((struct O_curve *)__0__X19 )))) ) ) ) :0 );
  634. __1o_curve -> nuid__7O_curve = __1nuid ;
  635. if (__0this -> dl__16NurbsTessellator ){ __1o_curve -> save__7O_curve = 1 ;
  636. {
  637. struct __mptr __0__A17 ;
  638. struct __mptr __0__A18 ;
  639. __glappend__11DisplayListFM16N0 ( (struct DisplayList *)__0this -> dl__16NurbsTessellator , ( ( (__0__A17 .d= 0 ), ( (__0__A17 .i= -1), (__0__A17 .f= (((int (*)(void
  640. ))__gldo_bgncurve__16NurbsTessel0 )))) ) , __0__A17 ) , ((void *)__1o_curve ), ( ( (__0__A18 .d= 0 ), ( (__0__A18 .i= -1),
  641. (__0__A18 .f= (((int (*)(void ))__gldo_freebgncurve__16NurbsTe0 )))) ) , __0__A18 ) ) ;
  642. }
  643. }
  644. else
  645. { __1o_curve -> save__7O_curve = 0 ;
  646. __gldo_bgncurve__16NurbsTessel0 ( __0this , __1o_curve ) ;
  647. }
  648. ;
  649. }
  650. void __gldo_endcurve__16NurbsTessel0 (struct NurbsTessellator *);
  651. void __glendcurve__16NurbsTessellat0 (struct NurbsTessellator *__0this )
  652. {
  653. if (__0this -> dl__16NurbsTessellator ){ {
  654. struct __mptr __0__A20 ;
  655. struct __mptr __0__A21 ;
  656. __glappend__11DisplayListFM16N0 ( (struct DisplayList *)__0this -> dl__16NurbsTessellator , ( ( (__0__A20 .d= 0 ), ( (__0__A20 .i= -1), (__0__A20 .f= (((int (*)(void
  657. ))__gldo_endcurve__16NurbsTessel0 )))) ) , __0__A20 ) , (void *)0 , ( ( (__0__A21 .d= 0 ), ( (__0__A21 .i= 0 ),
  658. (__0__A21 .f= 0 )) ) , __0__A21 ) ) ;
  659. }
  660. }
  661. else
  662. { __gldo_endcurve__16NurbsTessel0 ( __0this ) ;
  663. }
  664. ;
  665. }
  666. void __gldo_endsurface__16NurbsTess0 (struct NurbsTessellator *);
  667. void __glendsurface__16NurbsTessell0 (struct NurbsTessellator *__0this )
  668. {
  669. if (__0this -> dl__16NurbsTessellator ){ {
  670. struct __mptr __0__A22 ;
  671. struct __mptr __0__A23 ;
  672. __glappend__11DisplayListFM16N0 ( (struct DisplayList *)__0this -> dl__16NurbsTessellator , ( ( (__0__A22 .d= 0 ), ( (__0__A22 .i= -1), (__0__A22 .f= (((int (*)(void
  673. ))__gldo_endsurface__16NurbsTess0 )))) ) , __0__A22 ) , (void *)0 , ( ( (__0__A23 .d= 0 ), ( (__0__A23 .i= 0 ),
  674. (__0__A23 .f= 0 )) ) , __0__A23 ) ) ;
  675. }
  676. }
  677. else
  678. { __gldo_endsurface__16NurbsTess0 ( __0this ) ;
  679. }
  680. ;
  681. }
  682. void __gldo_bgntrim__16NurbsTessell0 (struct NurbsTessellator *, struct O_trim *);
  683. void __gldo_freebgntrim__16NurbsTes0 (struct NurbsTessellator *, struct O_trim *);
  684. void __glbgntrim__16NurbsTessellato0 (struct NurbsTessellator *__0this )
  685. {
  686. struct O_trim *__1o_trim ;
  687. struct O_trim *__0__X26 ;
  688. void *__1__Xbuffer00eohgaiaa ;
  689. __1o_trim = ((__0__X26 = (struct O_trim *)( (((void *)( (((void )0 )), ( (((struct Pool *)((struct Pool *)(& __0this -> o_trimPool__16NurbsTessellator )))->
  690. freelist__4Pool ?( ( (__1__Xbuffer00eohgaiaa = (((void *)((struct Pool *)((struct Pool *)(& __0this -> o_trimPool__16NurbsTessellator )))-> freelist__4Pool ))), (((struct Pool *)((struct Pool *)(& __0this ->
  691. o_trimPool__16NurbsTessellator )))-> freelist__4Pool = ((struct Pool *)((struct Pool *)(& __0this -> o_trimPool__16NurbsTessellator )))-> freelist__4Pool -> next__6Buffer )) , 0 ) :( ( ((!
  692. ((struct Pool *)((struct Pool *)(& __0this -> o_trimPool__16NurbsTessellator )))-> nextfree__4Pool )?( __glgrow__4PoolFv ( ((struct Pool *)((struct Pool *)(& __0this -> o_trimPool__16NurbsTessellator )))) , 0 )
  693. :( 0 ) ), ( (((struct Pool *)((struct Pool *)(& __0this -> o_trimPool__16NurbsTessellator )))-> nextfree__4Pool -= ((struct Pool *)((struct Pool *)(& __0this ->
  694. o_trimPool__16NurbsTessellator )))-> buffersize__4Pool ), ( (__1__Xbuffer00eohgaiaa = (((void *)(((struct Pool *)((struct Pool *)(& __0this -> o_trimPool__16NurbsTessellator )))-> curblock__4Pool + ((struct Pool *)((struct Pool *)(&
  695. __0this -> o_trimPool__16NurbsTessellator )))-> nextfree__4Pool ))))) ) ) , 0 ) ), (((void *)__1__Xbuffer00eohgaiaa ))) ) ))) )?( (((struct
  696. O_trim *)__0__X26 )-> next__6O_trim = 0 ), ( (((struct O_trim *)__0__X26 )-> o_curve__6O_trim = 0 ), ((((struct O_trim *)__0__X26 )))) ) :0 );
  697. if (__0this -> dl__16NurbsTessellator ){ __1o_trim -> save__6O_trim = 1 ;
  698. {
  699. struct __mptr __0__A24 ;
  700. struct __mptr __0__A25 ;
  701. __glappend__11DisplayListFM16N0 ( (struct DisplayList *)__0this -> dl__16NurbsTessellator , ( ( (__0__A24 .d= 0 ), ( (__0__A24 .i= -1), (__0__A24 .f= (((int (*)(void
  702. ))__gldo_bgntrim__16NurbsTessell0 )))) ) , __0__A24 ) , ((void *)__1o_trim ), ( ( (__0__A25 .d= 0 ), ( (__0__A25 .i= -1),
  703. (__0__A25 .f= (((int (*)(void ))__gldo_freebgntrim__16NurbsTes0 )))) ) , __0__A25 ) ) ;
  704. }
  705. }
  706. else
  707. { __1o_trim -> save__6O_trim = 0 ;
  708. __gldo_bgntrim__16NurbsTessell0 ( __0this , __1o_trim ) ;
  709. }
  710. ;
  711. }
  712. void __gldo_endtrim__16NurbsTessell0 (struct NurbsTessellator *);
  713. void __glendtrim__16NurbsTessellato0 (struct NurbsTessellator *__0this )
  714. {
  715. if (__0this -> dl__16NurbsTessellator ){ {
  716. struct __mptr __0__A27 ;
  717. struct __mptr __0__A28 ;
  718. __glappend__11DisplayListFM16N0 ( (struct DisplayList *)__0this -> dl__16NurbsTessellator , ( ( (__0__A27 .d= 0 ), ( (__0__A27 .i= -1), (__0__A27 .f= (((int (*)(void
  719. ))__gldo_endtrim__16NurbsTessell0 )))) ) , __0__A27 ) , (void *)0 , ( ( (__0__A28 .d= 0 ), ( (__0__A28 .i= 0 ),
  720. (__0__A28 .f= 0 )) ) , __0__A28 ) ) ;
  721. }
  722. }
  723. else
  724. { __gldo_endtrim__16NurbsTessell0 ( __0this ) ;
  725. }
  726. ;
  727. }
  728. struct TrimVertex *__glget__14TrimVertexPoolFi (struct TrimVertexPool *, int );
  729. struct O_pwlcurve *__gl__ct__10O_pwlcurveFlT1PfT10 (struct O_pwlcurve *, long , long , float *, long , struct TrimVertex *);
  730. void __gldo_pwlcurve__16NurbsTessel0 (struct NurbsTessellator *, struct O_pwlcurve *);
  731. void __gldo_freepwlcurve__16NurbsTe0 (struct NurbsTessellator *, struct O_pwlcurve *);
  732. void __glpwlcurve__16NurbsTessellat0 (struct NurbsTessellator *__0this , long __1count , float *__1array , long __1byte_stride , long __1type )
  733. {
  734. struct Mapdesc *__1mapdesc ;
  735. __1mapdesc = __gllocate__7MaplistFl ( (struct Maplist *)(& __0this -> maplist__16NurbsTessellator ), __1type ) ;
  736. if (__1mapdesc == 0 ){
  737. __gldo_nurbserror__16NurbsTess0 ( __0this , 35 ) ;
  738. __0this -> isDataValid__16NurbsTessellator = 0 ;
  739. return ;
  740. }
  741. if ((__1type != 0x8 )&& (__1type != 0xd )){
  742. __gldo_nurbserror__16NurbsTess0 ( __0this , 22 ) ;
  743. __0this -> isDataValid__16NurbsTessellator = 0 ;
  744. return ;
  745. }
  746. if (__1count < 0 ){
  747. __gldo_nurbserror__16NurbsTess0 ( __0this , 33 ) ;
  748. __0this -> isDataValid__16NurbsTessellator = 0 ;
  749. return ;
  750. }
  751. if (__1byte_stride < 0 ){
  752. __gldo_nurbserror__16NurbsTess0 ( __0this , 34 ) ;
  753. __0this -> isDataValid__16NurbsTessellator = 0 ;
  754. return ;
  755. }
  756. { struct O_pwlcurve *__1o_pwlcurve ;
  757. struct O_pwlcurve *__0__X31 ;
  758. void *__1__Xbuffer00eohgaiaa ;
  759. __1o_pwlcurve = ((__0__X31 = (struct O_pwlcurve *)( (((void *)( (((void )0 )), ( (((struct Pool *)((struct Pool *)(& __0this -> o_pwlcurvePool__16NurbsTessellator )))->
  760. freelist__4Pool ?( ( (__1__Xbuffer00eohgaiaa = (((void *)((struct Pool *)((struct Pool *)(& __0this -> o_pwlcurvePool__16NurbsTessellator )))-> freelist__4Pool ))), (((struct Pool *)((struct Pool *)(& __0this ->
  761. o_pwlcurvePool__16NurbsTessellator )))-> freelist__4Pool = ((struct Pool *)((struct Pool *)(& __0this -> o_pwlcurvePool__16NurbsTessellator )))-> freelist__4Pool -> next__6Buffer )) , 0 ) :( ( ((!
  762. ((struct Pool *)((struct Pool *)(& __0this -> o_pwlcurvePool__16NurbsTessellator )))-> nextfree__4Pool )?( __glgrow__4PoolFv ( ((struct Pool *)((struct Pool *)(& __0this -> o_pwlcurvePool__16NurbsTessellator )))) , 0 )
  763. :( 0 ) ), ( (((struct Pool *)((struct Pool *)(& __0this -> o_pwlcurvePool__16NurbsTessellator )))-> nextfree__4Pool -= ((struct Pool *)((struct Pool *)(& __0this ->
  764. o_pwlcurvePool__16NurbsTessellator )))-> buffersize__4Pool ), ( (__1__Xbuffer00eohgaiaa = (((void *)(((struct Pool *)((struct Pool *)(& __0this -> o_pwlcurvePool__16NurbsTessellator )))-> curblock__4Pool + ((struct Pool *)((struct Pool *)(&
  765. __0this -> o_pwlcurvePool__16NurbsTessellator )))-> nextfree__4Pool ))))) ) ) , 0 ) ), (((void *)__1__Xbuffer00eohgaiaa ))) ) ))) )?__gl__ct__10O_pwlcurveFlT1PfT10 ( (struct
  766. O_pwlcurve *)__0__X31 , __1type , __1count , __1array , __1byte_stride , __glget__14TrimVertexPoolFi ( (struct TrimVertexPool *)(& __0this -> extTrimVertexPool__16NurbsTessellator ), ((int )__1count )) ) :0 );
  767. if (__0this -> dl__16NurbsTessellator ){ __1o_pwlcurve -> save__10O_pwlcurve = 1 ;
  768. {
  769. struct __mptr __0__A29 ;
  770. struct __mptr __0__A30 ;
  771. __glappend__11DisplayListFM16N0 ( (struct DisplayList *)__0this -> dl__16NurbsTessellator , ( ( (__0__A29 .d= 0 ), ( (__0__A29 .i= -1), (__0__A29 .f= (((int (*)(void
  772. ))__gldo_pwlcurve__16NurbsTessel0 )))) ) , __0__A29 ) , ((void *)__1o_pwlcurve ), ( ( (__0__A30 .d= 0 ), ( (__0__A30 .i= -1),
  773. (__0__A30 .f= (((int (*)(void ))__gldo_freepwlcurve__16NurbsTe0 )))) ) , __0__A30 ) ) ;
  774. }
  775. }
  776. else
  777. { __1o_pwlcurve -> save__10O_pwlcurve = 0 ;
  778. __gldo_pwlcurve__16NurbsTessel0 ( __0this , __1o_pwlcurve ) ;
  779. }
  780. ;
  781. }
  782. }
  783. struct Knotvector *__gl__ct__10KnotvectorFv (struct Knotvector *);
  784. void __glinit__10KnotvectorFlN21Pf (struct Knotvector *, long , long , long , float *);
  785. int __gldo_check_knots__16NurbsTes0 (struct NurbsTessellator *, struct Knotvector *, char *);
  786. struct Quilt *__gl__ct__5QuiltFP7Mapdesc (struct Quilt *, struct Mapdesc *);
  787. void __gltoBezier__5QuiltFR10Knotve0 (struct Quilt *, struct Knotvector *, float *, long );
  788. void __gldo_nurbscurve__16NurbsTess0 (struct NurbsTessellator *, struct O_nurbscurve *);
  789. void __gldo_freenurbscurve__16Nurbs0 (struct NurbsTessellator *, struct O_nurbscurve *);
  790. void __gl__dt__10KnotvectorFv (struct Knotvector *, int );
  791. void __glnurbscurve__16NurbsTessell0 (struct NurbsTessellator *__0this ,
  792. long __1nknots ,
  793. float *__1knot ,
  794. long __1byte_stride ,
  795. float *__1ctlarray ,
  796. long __1order ,
  797. long
  798. __1type )
  799. {
  800. struct Mapdesc *__1mapdesc ;
  801. __1mapdesc = __gllocate__7MaplistFl ( (struct Maplist *)(& __0this -> maplist__16NurbsTessellator ), __1type ) ;
  802. if (__1mapdesc == 0 ){
  803. __gldo_nurbserror__16NurbsTess0 ( __0this , 35 ) ;
  804. __0this -> isDataValid__16NurbsTessellator = 0 ;
  805. return ;
  806. }
  807. if (__1ctlarray == 0 ){
  808. __gldo_nurbserror__16NurbsTess0 ( __0this , 36 ) ;
  809. __0this -> isDataValid__16NurbsTessellator = 0 ;
  810. return ;
  811. }
  812. if (__1byte_stride < 0 ){
  813. __gldo_nurbserror__16NurbsTess0 ( __0this , 34 ) ;
  814. __0this -> isDataValid__16NurbsTessellator = 0 ;
  815. return ;
  816. }
  817. { struct Knotvector __1knots ;
  818. __gl__ct__10KnotvectorFv ( (struct Knotvector *)(& __1knots )) ;
  819. __glinit__10KnotvectorFlN21Pf ( (struct Knotvector *)(& __1knots ), __1nknots , __1byte_stride , __1order , __1knot ) ;
  820. if (__gldo_check_knots__16NurbsTes0 ( __0this , & __1knots , (char *)"curve") ){
  821. __gl__dt__10KnotvectorFv ( (struct
  822. Knotvector *)(& __1knots ), 2) ;
  823. return ;
  824. }
  825. { struct O_nurbscurve *__1o_nurbscurve ;
  826. struct Quilt *__0__X34 ;
  827. void *__1__Xbuffer00eohgaiaa ;
  828. struct O_nurbscurve *__0__X35 ;
  829. __1o_nurbscurve = ((__0__X35 = (struct O_nurbscurve *)( (((void *)( (((void )0 )), ( (((struct Pool *)((struct Pool *)(& __0this -> o_nurbscurvePool__16NurbsTessellator )))->
  830. freelist__4Pool ?( ( (__1__Xbuffer00eohgaiaa = (((void *)((struct Pool *)((struct Pool *)(& __0this -> o_nurbscurvePool__16NurbsTessellator )))-> freelist__4Pool ))), (((struct Pool *)((struct Pool *)(& __0this ->
  831. o_nurbscurvePool__16NurbsTessellator )))-> freelist__4Pool = ((struct Pool *)((struct Pool *)(& __0this -> o_nurbscurvePool__16NurbsTessellator )))-> freelist__4Pool -> next__6Buffer )) , 0 ) :( ( ((!
  832. ((struct Pool *)((struct Pool *)(& __0this -> o_nurbscurvePool__16NurbsTessellator )))-> nextfree__4Pool )?( __glgrow__4PoolFv ( ((struct Pool *)((struct Pool *)(& __0this -> o_nurbscurvePool__16NurbsTessellator )))) , 0 )
  833. :( 0 ) ), ( (((struct Pool *)((struct Pool *)(& __0this -> o_nurbscurvePool__16NurbsTessellator )))-> nextfree__4Pool -= ((struct Pool *)((struct Pool *)(& __0this ->
  834. o_nurbscurvePool__16NurbsTessellator )))-> buffersize__4Pool ), ( (__1__Xbuffer00eohgaiaa = (((void *)(((struct Pool *)((struct Pool *)(& __0this -> o_nurbscurvePool__16NurbsTessellator )))-> curblock__4Pool + ((struct Pool *)((struct Pool *)(&
  835. __0this -> o_nurbscurvePool__16NurbsTessellator )))-> nextfree__4Pool ))))) ) ) , 0 ) ), (((void *)__1__Xbuffer00eohgaiaa ))) ) ))) )?( (((struct
  836. O_nurbscurve *)__0__X35 )-> type__12O_nurbscurve = __1type ), ( (((struct O_nurbscurve *)__0__X35 )-> owner__12O_nurbscurve = 0 ), ( (((struct O_nurbscurve *)__0__X35 )-> next__12O_nurbscurve = 0 ), (
  837. (((struct O_nurbscurve *)__0__X35 )-> used__12O_nurbscurve = 0 ), ((((struct O_nurbscurve *)__0__X35 )))) ) ) ) :0 );
  838. __1o_nurbscurve -> bezier_curves__12O_nurbscurve = ((__0__X34 = (struct Quilt *)( (((void *)( (((void )0 )), ( (((struct Pool *)((struct Pool *)(& __0this ->
  839. quiltPool__16NurbsTessellator )))-> freelist__4Pool ?( ( (__1__Xbuffer00eohgaiaa = (((void *)((struct Pool *)((struct Pool *)(& __0this -> quiltPool__16NurbsTessellator )))-> freelist__4Pool ))), (((struct Pool *)((struct Pool *)(&
  840. __0this -> quiltPool__16NurbsTessellator )))-> freelist__4Pool = ((struct Pool *)((struct Pool *)(& __0this -> quiltPool__16NurbsTessellator )))-> freelist__4Pool -> next__6Buffer )) , 0 ) :( (
  841. ((! ((struct Pool *)((struct Pool *)(& __0this -> quiltPool__16NurbsTessellator )))-> nextfree__4Pool )?( __glgrow__4PoolFv ( ((struct Pool *)((struct Pool *)(& __0this -> quiltPool__16NurbsTessellator )))) ,
  842. 0 ) :( 0 ) ), ( (((struct Pool *)((struct Pool *)(& __0this -> quiltPool__16NurbsTessellator )))-> nextfree__4Pool -= ((struct Pool *)((struct Pool *)(&
  843. __0this -> quiltPool__16NurbsTessellator )))-> buffersize__4Pool ), ( (__1__Xbuffer00eohgaiaa = (((void *)(((struct Pool *)((struct Pool *)(& __0this -> quiltPool__16NurbsTessellator )))-> curblock__4Pool + ((struct Pool *)((struct
  844. Pool *)(& __0this -> quiltPool__16NurbsTessellator )))-> nextfree__4Pool ))))) ) ) , 0 ) ), (((void *)__1__Xbuffer00eohgaiaa ))) ) ))) )?__gl__ct__5QuiltFP7Mapdesc (
  845. (struct Quilt *)__0__X34 , __1mapdesc ) :0 );
  846. __gltoBezier__5QuiltFR10Knotve0 ( (struct Quilt *)__1o_nurbscurve -> bezier_curves__12O_nurbscurve , (struct Knotvector *)(& __1knots ), __1ctlarray , (long )( ((struct Mapdesc *)__1mapdesc )-> ncoords__7Mapdesc ) )
  847. ;
  848. if (__0this -> dl__16NurbsTessellator ){ __1o_nurbscurve -> save__12O_nurbscurve = 1 ;
  849. {
  850. struct __mptr __0__A32 ;
  851. struct __mptr __0__A33 ;
  852. __glappend__11DisplayListFM16N0 ( (struct DisplayList *)__0this -> dl__16NurbsTessellator , ( ( (__0__A32 .d= 0 ), ( (__0__A32 .i= -1), (__0__A32 .f= (((int (*)(void
  853. ))__gldo_nurbscurve__16NurbsTess0 )))) ) , __0__A32 ) , ((void *)__1o_nurbscurve ), ( ( (__0__A33 .d= 0 ), ( (__0__A33 .i= -1),
  854. (__0__A33 .f= (((int (*)(void ))__gldo_freenurbscurve__16Nurbs0 )))) ) , __0__A33 ) ) ;
  855. }
  856. }
  857. else
  858. { __1o_nurbscurve -> save__12O_nurbscurve = 0 ;
  859. __gldo_nurbscurve__16NurbsTess0 ( __0this , __1o_nurbscurve ) ;
  860. }
  861. ;
  862. }
  863. __gl__dt__10KnotvectorFv ( (struct Knotvector *)(& __1knots ), 2) ;
  864. }
  865. }
  866. void __gltoBezier__5QuiltFR10Knotve1 (struct Quilt *, struct Knotvector *, struct Knotvector *, float *, long );
  867. void __gldo_nurbssurface__16NurbsTe0 (struct NurbsTessellator *, struct O_nurbssurface *);
  868. void __gldo_freenurbssurface__16Nur0 (struct NurbsTessellator *, struct O_nurbssurface *);
  869. void __glnurbssurface__16NurbsTesse0 (struct NurbsTessellator *__0this ,
  870. long __1sknot_count ,
  871. float *__1sknot ,
  872. long __1tknot_count ,
  873. float *__1tknot ,
  874. long __1s_byte_stride ,
  875. long
  876. __1t_byte_stride ,
  877. float *__1ctlarray ,
  878. long __1sorder ,
  879. long __1torder ,
  880. long __1type )
  881. {
  882. struct Mapdesc *__1mapdesc ;
  883. __1mapdesc = __gllocate__7MaplistFl ( (struct Maplist *)(& __0this -> maplist__16NurbsTessellator ), __1type ) ;
  884. if (__1mapdesc == 0 ){
  885. __gldo_nurbserror__16NurbsTess0 ( __0this , 35 ) ;
  886. __0this -> isDataValid__16NurbsTessellator = 0 ;
  887. return ;
  888. }
  889. if (__1s_byte_stride < 0 ){
  890. __gldo_nurbserror__16NurbsTess0 ( __0this , 34 ) ;
  891. __0this -> isDataValid__16NurbsTessellator = 0 ;
  892. return ;
  893. }
  894. if (__1t_byte_stride < 0 ){
  895. __gldo_nurbserror__16NurbsTess0 ( __0this , 34 ) ;
  896. __0this -> isDataValid__16NurbsTessellator = 0 ;
  897. return ;
  898. }
  899. { struct Knotvector __1sknotvector ;
  900. struct Knotvector __1tknotvector ;
  901. __gl__ct__10KnotvectorFv ( (struct Knotvector *)(& __1sknotvector )) ;
  902. __gl__ct__10KnotvectorFv ( (struct Knotvector *)(& __1tknotvector )) ;
  903. __glinit__10KnotvectorFlN21Pf ( (struct Knotvector *)(& __1sknotvector ), __1sknot_count , __1s_byte_stride , __1sorder , __1sknot ) ;
  904. if (__gldo_check_knots__16NurbsTes0 ( __0this , & __1sknotvector , (char *)"surface") ){
  905. __gl__dt__10KnotvectorFv ( (struct
  906. Knotvector *)(& __1tknotvector ), 2) ;
  907. __gl__dt__10KnotvectorFv ( (struct Knotvector *)(& __1sknotvector ), 2) ;
  908. return ;
  909. }
  910. __glinit__10KnotvectorFlN21Pf ( (struct Knotvector *)(& __1tknotvector ), __1tknot_count , __1t_byte_stride , __1torder , __1tknot ) ;
  911. if (__gldo_check_knots__16NurbsTes0 ( __0this , & __1tknotvector , (char *)"surface") ){
  912. __gl__dt__10KnotvectorFv ( (struct
  913. Knotvector *)(& __1tknotvector ), 2) ;
  914. __gl__dt__10KnotvectorFv ( (struct Knotvector *)(& __1sknotvector ), 2) ;
  915. return ;
  916. }
  917. { struct O_nurbssurface *__1o_nurbssurface ;
  918. struct Quilt *__0__X38 ;
  919. void *__1__Xbuffer00eohgaiaa ;
  920. struct O_nurbssurface *__0__X39 ;
  921. __1o_nurbssurface = ((__0__X39 = (struct O_nurbssurface *)( (((void *)( (((void )0 )), ( (((struct Pool *)((struct Pool *)(& __0this -> o_nurbssurfacePool__16NurbsTessellator )))->
  922. freelist__4Pool ?( ( (__1__Xbuffer00eohgaiaa = (((void *)((struct Pool *)((struct Pool *)(& __0this -> o_nurbssurfacePool__16NurbsTessellator )))-> freelist__4Pool ))), (((struct Pool *)((struct Pool *)(& __0this ->
  923. o_nurbssurfacePool__16NurbsTessellator )))-> freelist__4Pool = ((struct Pool *)((struct Pool *)(& __0this -> o_nurbssurfacePool__16NurbsTessellator )))-> freelist__4Pool -> next__6Buffer )) , 0 ) :( ( ((!
  924. ((struct Pool *)((struct Pool *)(& __0this -> o_nurbssurfacePool__16NurbsTessellator )))-> nextfree__4Pool )?( __glgrow__4PoolFv ( ((struct Pool *)((struct Pool *)(& __0this -> o_nurbssurfacePool__16NurbsTessellator )))) , 0 )
  925. :( 0 ) ), ( (((struct Pool *)((struct Pool *)(& __0this -> o_nurbssurfacePool__16NurbsTessellator )))-> nextfree__4Pool -= ((struct Pool *)((struct Pool *)(& __0this ->
  926. o_nurbssurfacePool__16NurbsTessellator )))-> buffersize__4Pool ), ( (__1__Xbuffer00eohgaiaa = (((void *)(((struct Pool *)((struct Pool *)(& __0this -> o_nurbssurfacePool__16NurbsTessellator )))-> curblock__4Pool + ((struct Pool *)((struct Pool *)(&
  927. __0this -> o_nurbssurfacePool__16NurbsTessellator )))-> nextfree__4Pool ))))) ) ) , 0 ) ), (((void *)__1__Xbuffer00eohgaiaa ))) ) ))) )?( (((struct
  928. O_nurbssurface *)__0__X39 )-> type__14O_nurbssurface = __1type ), ( (((struct O_nurbssurface *)__0__X39 )-> owner__14O_nurbssurface = 0 ), ( (((struct O_nurbssurface *)__0__X39 )-> next__14O_nurbssurface = 0 ), (
  929. (((struct O_nurbssurface *)__0__X39 )-> used__14O_nurbssurface = 0 ), ((((struct O_nurbssurface *)__0__X39 )))) ) ) ) :0 );
  930. __1o_nurbssurface -> bezier_patches__14O_nurbssurface = ((__0__X38 = (struct Quilt *)( (((void *)( (((void )0 )), ( (((struct Pool *)((struct Pool *)(& __0this ->
  931. quiltPool__16NurbsTessellator )))-> freelist__4Pool ?( ( (__1__Xbuffer00eohgaiaa = (((void *)((struct Pool *)((struct Pool *)(& __0this -> quiltPool__16NurbsTessellator )))-> freelist__4Pool ))), (((struct Pool *)((struct Pool *)(&
  932. __0this -> quiltPool__16NurbsTessellator )))-> freelist__4Pool = ((struct Pool *)((struct Pool *)(& __0this -> quiltPool__16NurbsTessellator )))-> freelist__4Pool -> next__6Buffer )) , 0 ) :( (
  933. ((! ((struct Pool *)((struct Pool *)(& __0this -> quiltPool__16NurbsTessellator )))-> nextfree__4Pool )?( __glgrow__4PoolFv ( ((struct Pool *)((struct Pool *)(& __0this -> quiltPool__16NurbsTessellator )))) ,
  934. 0 ) :( 0 ) ), ( (((struct Pool *)((struct Pool *)(& __0this -> quiltPool__16NurbsTessellator )))-> nextfree__4Pool -= ((struct Pool *)((struct Pool *)(&
  935. __0this -> quiltPool__16NurbsTessellator )))-> buffersize__4Pool ), ( (__1__Xbuffer00eohgaiaa = (((void *)(((struct Pool *)((struct Pool *)(& __0this -> quiltPool__16NurbsTessellator )))-> curblock__4Pool + ((struct Pool *)((struct
  936. Pool *)(& __0this -> quiltPool__16NurbsTessellator )))-> nextfree__4Pool ))))) ) ) , 0 ) ), (((void *)__1__Xbuffer00eohgaiaa ))) ) ))) )?__gl__ct__5QuiltFP7Mapdesc (
  937. (struct Quilt *)__0__X38 , __1mapdesc ) :0 );
  938. __gltoBezier__5QuiltFR10Knotve1 ( (struct Quilt *)__1o_nurbssurface -> bezier_patches__14O_nurbssurface , (struct Knotvector *)(& __1sknotvector ), (struct Knotvector *)(& __1tknotvector ), __1ctlarray , (long )( ((struct
  939. Mapdesc *)__1mapdesc )-> ncoords__7Mapdesc ) ) ;
  940. if (__0this -> dl__16NurbsTessellator ){ __1o_nurbssurface -> save__14O_nurbssurface = 1 ;
  941. {
  942. struct __mptr __0__A36 ;
  943. struct __mptr __0__A37 ;
  944. __glappend__11DisplayListFM16N0 ( (struct DisplayList *)__0this -> dl__16NurbsTessellator , ( ( (__0__A36 .d= 0 ), ( (__0__A36 .i= -1), (__0__A36 .f= (((int (*)(void
  945. ))__gldo_nurbssurface__16NurbsTe0 )))) ) , __0__A36 ) , ((void *)__1o_nurbssurface ), ( ( (__0__A37 .d= 0 ), ( (__0__A37 .i= -1),
  946. (__0__A37 .f= (((int (*)(void ))__gldo_freenurbssurface__16Nur0 )))) ) , __0__A37 ) ) ;
  947. }
  948. }
  949. else
  950. { __1o_nurbssurface -> save__14O_nurbssurface = 0 ;
  951. __gldo_nurbssurface__16NurbsTe0 ( __0this , __1o_nurbssurface ) ;
  952. }
  953. ;
  954. }
  955. __gl__dt__10KnotvectorFv ( (struct Knotvector *)(& __1tknotvector ), 2) ;
  956. __gl__dt__10KnotvectorFv ( (struct Knotvector *)(& __1sknotvector ), 2) ;
  957. }
  958. }
  959. int __glisProperty__11RenderhintsF0 (struct Renderhints *, long );
  960. void __gldo_setnurbsproperty__16Nur0 (struct NurbsTessellator *, struct Property *);
  961. void __gldo_freenurbsproperty__16Nu0 (struct NurbsTessellator *, struct Property *);
  962. void __glsetnurbsproperty__16NurbsT0 (struct NurbsTessellator *__0this , long __1tag , float __1value )
  963. {
  964. if (! __glisProperty__11RenderhintsF0 ( (struct Renderhints *)(& __0this -> renderhints__16NurbsTessellator ),
  965. __1tag ) ){
  966. __gldo_nurbserror__16NurbsTess0 ( __0this , 26 ) ;
  967. }
  968. else
  969. {
  970. struct Property *__2prop ;
  971. struct Property *__0__X42 ;
  972. void *__1__Xbuffer00eohgaiaa ;
  973. __2prop = ((__0__X42 = (struct Property *)( (((void *)( (((void )0 )), ( (((struct Pool *)((struct Pool *)(& __0this -> propertyPool__16NurbsTessellator )))->
  974. freelist__4Pool ?( ( (__1__Xbuffer00eohgaiaa = (((void *)((struct Pool *)((struct Pool *)(& __0this -> propertyPool__16NurbsTessellator )))-> freelist__4Pool ))), (((struct Pool *)((struct Pool *)(& __0this ->
  975. propertyPool__16NurbsTessellator )))-> freelist__4Pool = ((struct Pool *)((struct Pool *)(& __0this -> propertyPool__16NurbsTessellator )))-> freelist__4Pool -> next__6Buffer )) , 0 ) :( ( ((!
  976. ((struct Pool *)((struct Pool *)(& __0this -> propertyPool__16NurbsTessellator )))-> nextfree__4Pool )?( __glgrow__4PoolFv ( ((struct Pool *)((struct Pool *)(& __0this -> propertyPool__16NurbsTessellator )))) , 0 )
  977. :( 0 ) ), ( (((struct Pool *)((struct Pool *)(& __0this -> propertyPool__16NurbsTessellator )))-> nextfree__4Pool -= ((struct Pool *)((struct Pool *)(& __0this ->
  978. propertyPool__16NurbsTessellator )))-> buffersize__4Pool ), ( (__1__Xbuffer00eohgaiaa = (((void *)(((struct Pool *)((struct Pool *)(& __0this -> propertyPool__16NurbsTessellator )))-> curblock__4Pool + ((struct Pool *)((struct Pool *)(&
  979. __0this -> propertyPool__16NurbsTessellator )))-> nextfree__4Pool ))))) ) ) , 0 ) ), (((void *)__1__Xbuffer00eohgaiaa ))) ) ))) )?( (((struct
  980. Property *)__0__X42 )-> type__8Property = 0 ), ( (((struct Property *)__0__X42 )-> tag__8Property = __1tag ), ( (((struct Property *)__0__X42 )-> value__8Property = (((float )__1value ))),
  981. ((((struct Property *)__0__X42 )))) ) ) :0 );
  982. if (__0this -> dl__16NurbsTessellator ){ __2prop -> save__8Property = 1 ;
  983. {
  984. struct __mptr __0__A40 ;
  985. struct __mptr __0__A41 ;
  986. __glappend__11DisplayListFM16N0 ( (struct DisplayList *)__0this -> dl__16NurbsTessellator , ( ( (__0__A40 .d= 0 ), ( (__0__A40 .i= -1), (__0__A40 .f= (((int (*)(void
  987. ))__gldo_setnurbsproperty__16Nur0 )))) ) , __0__A40 ) , ((void *)__2prop ), ( ( (__0__A41 .d= 0 ), ( (__0__A41 .i= -1),
  988. (__0__A41 .f= (((int (*)(void ))__gldo_freenurbsproperty__16Nu0 )))) ) , __0__A41 ) ) ;
  989. }
  990. }
  991. else
  992. { __2prop -> save__8Property = 0 ;
  993. __gldo_setnurbsproperty__16Nur0 ( __0this , __2prop ) ;
  994. }
  995. ;
  996. }
  997. }
  998. int __glisProperty__7MapdescFl (struct Mapdesc *, long );
  999. void __gldo_setnurbsproperty2__16Nu0 (struct NurbsTessellator *, struct Property *);
  1000. void __glsetnurbsproperty__16NurbsT1 (struct NurbsTessellator *__0this , long __1type , long __1tag , float __1value )
  1001. {
  1002. struct Mapdesc *__1mapdesc ;
  1003. __1mapdesc = __gllocate__7MaplistFl ( (struct Maplist *)(& __0this -> maplist__16NurbsTessellator ), __1type ) ;
  1004. if (__1mapdesc == 0 ){
  1005. __gldo_nurbserror__16NurbsTess0 ( __0this , 35 ) ;
  1006. return ;
  1007. }
  1008. if (! __glisProperty__7MapdescFl ( (struct Mapdesc *)__1mapdesc , __1tag ) ){
  1009. __gldo_nurbserror__16NurbsTess0 ( __0this , 26 ) ;
  1010. return ;
  1011. }
  1012. { struct Property *__1prop ;
  1013. struct Property *__0__X45 ;
  1014. void *__1__Xbuffer00eohgaiaa ;
  1015. __1prop = ((__0__X45 = (struct Property *)( (((void *)( (((void )0 )), ( (((struct Pool *)((struct Pool *)(& __0this -> propertyPool__16NurbsTessellator )))->
  1016. freelist__4Pool ?( ( (__1__Xbuffer00eohgaiaa = (((void *)((struct Pool *)((struct Pool *)(& __0this -> propertyPool__16NurbsTessellator )))-> freelist__4Pool ))), (((struct Pool *)((struct Pool *)(& __0this ->
  1017. propertyPool__16NurbsTessellator )))-> freelist__4Pool = ((struct Pool *)((struct Pool *)(& __0this -> propertyPool__16NurbsTessellator )))-> freelist__4Pool -> next__6Buffer )) , 0 ) :( ( ((!
  1018. ((struct Pool *)((struct Pool *)(& __0this -> propertyPool__16NurbsTessellator )))-> nextfree__4Pool )?( __glgrow__4PoolFv ( ((struct Pool *)((struct Pool *)(& __0this -> propertyPool__16NurbsTessellator )))) , 0 )
  1019. :( 0 ) ), ( (((struct Pool *)((struct Pool *)(& __0this -> propertyPool__16NurbsTessellator )))-> nextfree__4Pool -= ((struct Pool *)((struct Pool *)(& __0this ->
  1020. propertyPool__16NurbsTessellator )))-> buffersize__4Pool ), ( (__1__Xbuffer00eohgaiaa = (((void *)(((struct Pool *)((struct Pool *)(& __0this -> propertyPool__16NurbsTessellator )))-> curblock__4Pool + ((struct Pool *)((struct Pool *)(&
  1021. __0this -> propertyPool__16NurbsTessellator )))-> nextfree__4Pool ))))) ) ) , 0 ) ), (((void *)__1__Xbuffer00eohgaiaa ))) ) ))) )?( (((struct
  1022. Property *)__0__X45 )-> type__8Property = __1type ), ( (((struct Property *)__0__X45 )-> tag__8Property = __1tag ), ( (((struct Property *)__0__X45 )-> value__8Property = (((float )__1value ))),
  1023. ((((struct Property *)__0__X45 )))) ) ) :0 );
  1024. if (__0this -> dl__16NurbsTessellator ){ __1prop -> save__8Property = 1 ;
  1025. {
  1026. struct __mptr __0__A43 ;
  1027. struct __mptr __0__A44 ;
  1028. __glappend__11DisplayListFM16N0 ( (struct DisplayList *)__0this -> dl__16NurbsTessellator , ( ( (__0__A43 .d= 0 ), ( (__0__A43 .i= -1), (__0__A43 .f= (((int (*)(void
  1029. ))__gldo_setnurbsproperty2__16Nu0 )))) ) , __0__A43 ) , ((void *)__1prop ), ( ( (__0__A44 .d= 0 ), ( (__0__A44 .i= -1),
  1030. (__0__A44 .f= (((int (*)(void ))__gldo_freenurbsproperty__16Nu0 )))) ) , __0__A44 ) ) ;
  1031. }
  1032. }
  1033. else
  1034. { __1prop -> save__8Property = 0 ;
  1035. __gldo_setnurbsproperty2__16Nu0 ( __0this , __1prop ) ;
  1036. }
  1037. ;
  1038. }
  1039. }
  1040. REAL __glgetProperty__11Renderhints0 (struct Renderhints *, long );
  1041. void __glgetnurbsproperty__16NurbsT0 (struct NurbsTessellator *__0this , long __1tag , float *__1value )
  1042. {
  1043. if (__glisProperty__11RenderhintsF0 ( (struct Renderhints *)(& __0this -> renderhints__16NurbsTessellator ), __1tag )
  1044. ){
  1045. ((*__1value ))= __glgetProperty__11Renderhints0 ( (struct Renderhints *)(& __0this -> renderhints__16NurbsTessellator ), __1tag ) ;
  1046. }
  1047. else
  1048. {
  1049. __gldo_nurbserror__16NurbsTess0 ( __0this , 26 ) ;
  1050. }
  1051. }
  1052. REAL __glgetProperty__7MapdescFl (struct Mapdesc *, long );
  1053. void __glgetnurbsproperty__16NurbsT1 (struct NurbsTessellator *__0this , long __1type , long __1tag , float *__1value )
  1054. {
  1055. struct Mapdesc *__1mapdesc ;
  1056. __1mapdesc = __gllocate__7MaplistFl ( (struct Maplist *)(& __0this -> maplist__16NurbsTessellator ), __1type ) ;
  1057. if (__1mapdesc == 0 )
  1058. __gldo_nurbserror__16NurbsTess0 ( __0this , 35 ) ;
  1059. if (__glisProperty__7MapdescFl ( (struct Mapdesc *)__1mapdesc , __1tag ) ){
  1060. ((*__1value ))= __glgetProperty__7MapdescFl ( (struct Mapdesc *)__1mapdesc , __1tag ) ;
  1061. }
  1062. else
  1063. {
  1064. __gldo_nurbserror__16NurbsTess0 ( __0this , 26 ) ;
  1065. }
  1066. }
  1067. void __glsetBboxsize__7MapdescFPf (struct Mapdesc *, float *);
  1068. void __glsetnurbsproperty__16NurbsT2 (struct NurbsTessellator *__0this , long __1type , long __1purpose , float *__1mat )
  1069. {
  1070. struct Mapdesc *__1mapdesc ;
  1071. __1mapdesc = __gllocate__7MaplistFl ( (struct Maplist *)(& __0this -> maplist__16NurbsTessellator ), __1type ) ;
  1072. if (__1mapdesc == 0 ){
  1073. __gldo_nurbserror__16NurbsTess0 ( __0this , 35 ) ;
  1074. __0this -> isDataValid__16NurbsTessellator = 0 ;
  1075. }
  1076. else
  1077. if (__1purpose == 4 ){
  1078. __glsetBboxsize__7MapdescFPf ( (struct Mapdesc *)__1mapdesc , __1mat ) ;
  1079. }
  1080. else
  1081. {
  1082. }
  1083. }
  1084. void __glsetnurbsproperty__16NurbsT3 (struct NurbsTessellator *__0this , long __1type , long __1purpose , float *__1mat ,
  1085. long __1rstride , long
  1086. __1cstride )
  1087. {
  1088. struct Mapdesc *__1mapdesc ;
  1089. __1mapdesc = __gllocate__7MaplistFl ( (struct Maplist *)(& __0this -> maplist__16NurbsTessellator ), __1type ) ;
  1090. if (__1mapdesc == 0 ){
  1091. __gldo_nurbserror__16NurbsTess0 ( __0this , 35 ) ;
  1092. __0this -> isDataValid__16NurbsTessellator = 0 ;
  1093. }
  1094. else
  1095. if (__1purpose == 1 ){
  1096. ( __glcopy__7MapdescSFPA5_flPfN20 ( (float (*)[5])((struct Mapdesc *)__1mapdesc )-> cmat__7Mapdesc , (long )((struct Mapdesc *)__1mapdesc )-> hcoords__7Mapdesc ,
  1097. __1mat , __1rstride , __1cstride ) ) ;
  1098. }
  1099. else
  1100. if (__1purpose == 2 ){
  1101. ( __glcopy__7MapdescSFPA5_flPfN20 ( (float (*)[5])((struct Mapdesc *)__1mapdesc )-> smat__7Mapdesc , (long )((struct Mapdesc *)__1mapdesc )-> hcoords__7Mapdesc ,
  1102. __1mat , __1rstride , __1cstride ) ) ;
  1103. }
  1104. else
  1105. if (__1purpose == 3 ){
  1106. ( __glcopy__7MapdescSFPA5_flPfN20 ( (float (*)[5])((struct Mapdesc *)__1mapdesc )-> bmat__7Mapdesc , (long )((struct Mapdesc *)__1mapdesc )-> hcoords__7Mapdesc ,
  1107. __1mat , __1rstride , __1cstride ) ) ;
  1108. }
  1109. else
  1110. {
  1111. }
  1112. }
  1113. void __glinitialize__7MaplistFv (struct Maplist *);
  1114. void __glredefineMaps__16NurbsTesse0 (struct NurbsTessellator *__0this )
  1115. {
  1116. __glinitialize__7MaplistFv ( (struct Maplist *)(& __0this -> maplist__16NurbsTessellator )) ;
  1117. }
  1118. void __gldefine__7MaplistFliT2 (struct Maplist *, long , int , int );
  1119. void __gldefineMap__16NurbsTessella0 (struct NurbsTessellator *__0this , long __1type , long __1rational , long __1ncoords )
  1120. {
  1121. __gldefine__7MaplistFliT2 ( (struct Maplist *)(& __0this -> maplist__16NurbsTessellator ),
  1122. __1type , ((int )__1rational ), ((int )__1ncoords )) ;
  1123. }
  1124. void __gl__dt__11DisplayListFv (struct DisplayList *, int );
  1125. void __gldiscardRecording__16NurbsT0 (struct NurbsTessellator *__0this , void *__1_dl )
  1126. {
  1127. __gl__dt__11DisplayListFv ( (struct DisplayList *)(((struct DisplayList *)(((struct DisplayList *)__1_dl )))), 3) ;
  1128. }
  1129. struct DisplayList *__gl__ct__11DisplayListFP16Nur0 (struct DisplayList *, struct NurbsTessellator *);
  1130. void *__glbeginRecording__16NurbsTes0 (struct NurbsTessellator *__0this )
  1131. {
  1132. struct DisplayList *__0__X46 ;
  1133. __0this -> dl__16NurbsTessellator = __gl__ct__11DisplayListFP16Nur0 ( (struct DisplayList *)0 , (struct NurbsTessellator *)__0this ) ;
  1134. return (((void *)__0this -> dl__16NurbsTessellator ));
  1135. }
  1136. void __glendList__11DisplayListFv (struct DisplayList *);
  1137. void __glendRecording__16NurbsTesse0 (struct NurbsTessellator *__0this )
  1138. {
  1139. __glendList__11DisplayListFv ( (struct DisplayList *)__0this -> dl__16NurbsTessellator ) ;
  1140. __0this -> dl__16NurbsTessellator = 0 ;
  1141. }
  1142. void __glbgnrender__16NurbsTessella0 (struct NurbsTessellator *);
  1143. void __glplay__11DisplayListFv (struct DisplayList *);
  1144. void __glendrender__16NurbsTessella0 (struct NurbsTessellator *);
  1145. void __glplayRecording__16NurbsTess0 (struct NurbsTessellator *__0this , void *__1_dl )
  1146. {
  1147. __0this -> playBack__16NurbsTessellator = 1 ;
  1148. ((*(((void (*)(struct NurbsTessellator *))(__0this -> __vptr__16NurbsTessellator [1]).f))))( ((struct NurbsTessellator *)((((char *)__0this ))+ (__0this -> __vptr__16NurbsTessellator [1]).d))) ;
  1149. __glplay__11DisplayListFv ( (struct DisplayList *)(((struct DisplayList *)(((struct DisplayList *)__1_dl ))))) ;
  1150. ((*(((void (*)(struct NurbsTessellator *))(__0this -> __vptr__16NurbsTessellator [2]).f))))( ((struct NurbsTessellator *)((((char *)__0this ))+ (__0this -> __vptr__16NurbsTessellator [2]).d))) ;
  1151. __0this -> playBack__16NurbsTessellator = 0 ;
  1152. }
  1153. extern struct __mptr __gl__vtbl__16NurbsTessellator[];
  1154. struct __mptr* __gl__ptbl_vec_____core_nurbsi0[] = {
  1155. __gl__vtbl__16NurbsTessellator,
  1156. };
  1157. /* the end */