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.

679 lines
17 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/quilt.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 Buffer;
  37. struct Buffer {
  38. struct Buffer *next__6Buffer ;
  39. };
  40. struct Pool;
  41. enum __Q2_4Pool5Magic { is_allocated__Q2_4Pool5Magic = 62369, is_free__Q2_4Pool5Magic = 61858} ;
  42. struct Pool {
  43. struct Buffer *freelist__4Pool ;
  44. char *blocklist__4Pool [32];
  45. int nextblock__4Pool ;
  46. char *curblock__4Pool ;
  47. int buffersize__4Pool ;
  48. int nextsize__4Pool ;
  49. int nextfree__4Pool ;
  50. int initsize__4Pool ;
  51. char *name__4Pool ;
  52. int magic__4Pool ;
  53. };
  54. void __glgrow__4PoolFv (struct Pool *);
  55. struct PooledObj;
  56. struct PooledObj {
  57. char __W3__9PooledObj ;
  58. };
  59. typedef float REAL ;
  60. typedef void (*Pfvv )(void );
  61. typedef void (*Pfvf )(float *);
  62. typedef int (*cmpfunc )(void *, void *);
  63. typedef REAL Knot ;
  64. typedef REAL *Knot_ptr ;
  65. struct Backend;
  66. struct Mapdesc;
  67. struct Flist;
  68. struct Knotvector;
  69. struct Quiltspec;
  70. struct Quiltspec {
  71. int stride__9Quiltspec ;
  72. int width__9Quiltspec ;
  73. int offset__9Quiltspec ;
  74. int order__9Quiltspec ;
  75. int index__9Quiltspec ;
  76. int bdry__9Quiltspec [2];
  77. REAL step_size__9Quiltspec ;
  78. Knot *breakpoints__9Quiltspec ;
  79. };
  80. typedef struct Quiltspec *Quiltspec_ptr ;
  81. struct Quilt;
  82. struct Quilt {
  83. char __W3__9PooledObj ;
  84. struct Mapdesc *mapdesc__5Quilt ;
  85. REAL *cpts__5Quilt ;
  86. struct Quiltspec qspec__5Quilt [2];
  87. Quiltspec_ptr eqspec__5Quilt ;
  88. struct Quilt *next__5Quilt ;
  89. };
  90. typedef struct Quilt *Quilt_ptr ;
  91. struct TrimVertex;
  92. struct TrimVertex {
  93. REAL param__10TrimVertex [2];
  94. long nuid__10TrimVertex ;
  95. };
  96. typedef struct TrimVertex *TrimVertex_p ;
  97. struct GridVertex;
  98. struct GridVertex {
  99. long gparam__10GridVertex [2];
  100. };
  101. struct GridTrimVertex;
  102. struct GridTrimVertex {
  103. char __W3__9PooledObj ;
  104. struct TrimVertex dummyt__14GridTrimVertex ;
  105. struct GridVertex dummyg__14GridTrimVertex ;
  106. struct TrimVertex *t__14GridTrimVertex ;
  107. struct GridVertex *g__14GridTrimVertex ;
  108. };
  109. typedef struct GridTrimVertex *GridTrimVertex_p ;
  110. struct BasicCurveEvaluator;
  111. struct BasicSurfaceEvaluator;
  112. struct Backend;
  113. struct Backend {
  114. struct BasicCurveEvaluator *curveEvaluator__7Backend ;
  115. struct BasicSurfaceEvaluator *surfaceEvaluator__7Backend ;
  116. int wireframetris__7Backend ;
  117. int wireframequads__7Backend ;
  118. int npts__7Backend ;
  119. REAL mesh__7Backend [3][4];
  120. int meshindex__7Backend ;
  121. };
  122. typedef REAL Maxmatrix [5][5];
  123. struct Mapdesc;
  124. struct Mapdesc {
  125. char __W3__9PooledObj ;
  126. REAL pixel_tolerance__7Mapdesc ;
  127. REAL clampfactor__7Mapdesc ;
  128. REAL minsavings__7Mapdesc ;
  129. REAL maxrate__7Mapdesc ;
  130. REAL maxsrate__7Mapdesc ;
  131. REAL maxtrate__7Mapdesc ;
  132. REAL bboxsize__7Mapdesc [5];
  133. long type__7Mapdesc ;
  134. int isrational__7Mapdesc ;
  135. int ncoords__7Mapdesc ;
  136. int hcoords__7Mapdesc ;
  137. int inhcoords__7Mapdesc ;
  138. int mask__7Mapdesc ;
  139. Maxmatrix bmat__7Mapdesc ;
  140. Maxmatrix cmat__7Mapdesc ;
  141. Maxmatrix smat__7Mapdesc ;
  142. REAL s_steps__7Mapdesc ;
  143. REAL t_steps__7Mapdesc ;
  144. REAL sampling_method__7Mapdesc ;
  145. REAL culling_method__7Mapdesc ;
  146. REAL bbox_subdividing__7Mapdesc ;
  147. struct Mapdesc *next__7Mapdesc ;
  148. struct Backend *backend__7Mapdesc ;
  149. };
  150. void __glcopy__7MapdescSFPA5_flPfN20 (REAL (*)[5], long , float *, long , long );
  151. void __glxformRational__7MapdescFPA0 (struct Mapdesc *, REAL (*)[5], REAL *, REAL *);
  152. void __glxformNonrational__7Mapdesc0 (struct Mapdesc *, REAL (*)[5], REAL *, REAL *);
  153. struct Sorter;
  154. struct Sorter {
  155. int es__6Sorter ;
  156. struct __mptr *__vptr__6Sorter ;
  157. };
  158. struct FlistSorter;
  159. struct FlistSorter {
  160. int es__6Sorter ;
  161. struct __mptr *__vptr__6Sorter ;
  162. };
  163. struct Flist;
  164. struct Flist {
  165. REAL *pts__5Flist ;
  166. int npts__5Flist ;
  167. int start__5Flist ;
  168. int end__5Flist ;
  169. struct FlistSorter sorter__5Flist ;
  170. };
  171. struct Knotvector;
  172. struct Knotvector {
  173. long order__10Knotvector ;
  174. long knotcount__10Knotvector ;
  175. long stride__10Knotvector ;
  176. Knot *knotlist__10Knotvector ;
  177. };
  178. struct Pspec;
  179. struct Pspec {
  180. REAL range__5Pspec [3];
  181. REAL sidestep__5Pspec [2];
  182. REAL stepsize__5Pspec ;
  183. REAL minstepsize__5Pspec ;
  184. int needsSubdivision__5Pspec ;
  185. };
  186. struct Patchspec;
  187. struct Patchspec {
  188. REAL range__5Pspec [3];
  189. REAL sidestep__5Pspec [2];
  190. REAL stepsize__5Pspec ;
  191. REAL minstepsize__5Pspec ;
  192. int needsSubdivision__5Pspec ;
  193. int order__9Patchspec ;
  194. int stride__9Patchspec ;
  195. };
  196. struct Patch;
  197. struct Patch {
  198. struct Mapdesc *mapdesc__5Patch ;
  199. struct Patch *next__5Patch ;
  200. int cullval__5Patch ;
  201. int notInBbox__5Patch ;
  202. int needsSampling__5Patch ;
  203. REAL cpts__5Patch [2880];
  204. REAL spts__5Patch [2880];
  205. REAL bpts__5Patch [2880];
  206. struct Patchspec pspec__5Patch [2];
  207. REAL bb__5Patch [2][5];
  208. };
  209. struct Patchlist;
  210. struct Patchlist {
  211. struct Patch *patch__9Patchlist ;
  212. int notInBbox__9Patchlist ;
  213. int needsSampling__9Patchlist ;
  214. struct Pspec pspec__9Patchlist [2];
  215. };
  216. extern struct __mptr* __ptbl_vec_____core_quilt_c_____ct_[];
  217. struct Quilt *__gl__ct__5QuiltFP7Mapdesc (struct Quilt *__0this , struct Mapdesc *__1_mapdesc )
  218. {
  219. __0this -> mapdesc__5Quilt = __1_mapdesc ;
  220. return __0this ;
  221. }
  222. void __gldeleteMe__5QuiltFR4Pool (struct Quilt *, struct Pool *);
  223. void __gldeleteMe__5QuiltFR4Pool (struct Quilt *__0this , struct Pool *__1p )
  224. {
  225. { { struct Quiltspec *__1q ;
  226. void *__1__X9 ;
  227. __1q = __0this -> qspec__5Quilt ;
  228. for(;__1q != __0this -> eqspec__5Quilt ;__1q ++ ) {
  229. void *__1__X8 ;
  230. if (__1q -> breakpoints__9Quiltspec )( (__1__X8 = (void *)__1q -> breakpoints__9Quiltspec ), ( (__1__X8 ?( free ( __1__X8 ) , 0 ) :(
  231. 0 ) )) ) ;
  232. __1q -> breakpoints__9Quiltspec = 0 ;
  233. }
  234. if (__0this -> cpts__5Quilt )( (__1__X9 = (void *)__0this -> cpts__5Quilt ), ( (__1__X9 ?( free ( __1__X9 ) , 0 ) :(
  235. 0 ) )) ) ;
  236. __0this -> cpts__5Quilt = 0 ;
  237. ( ( (((void )0 )), ( ((((struct Buffer *)(((struct Buffer *)(((void *)((struct PooledObj *)__0this )))))))-> next__6Buffer = ((struct Pool *)__1p )-> freelist__4Pool ),
  238. (((struct Pool *)__1p )-> freelist__4Pool = (((struct Buffer *)(((struct Buffer *)(((void *)((struct PooledObj *)__0this ))))))))) ) ) ;
  239. }
  240. }
  241. }
  242. void __glshow__5QuiltFv (struct Quilt *__0this )
  243. {
  244. }
  245. void __glselect__5QuiltFPfT1 (struct Quilt *__0this , REAL *__1pta , REAL *__1ptb )
  246. {
  247. int __1dim ;
  248. __1dim = (__0this -> eqspec__5Quilt - __0this -> qspec__5Quilt );
  249. { { int __1i ;
  250. __1i = 0 ;
  251. for(;__1i < __1dim ;__1i ++ ) {
  252. { { int __2j ;
  253. __2j = ((__0this -> qspec__5Quilt [__1i ]). width__9Quiltspec - 1 );
  254. for(;__2j >= 0 ;__2j -- )
  255. if ((((__0this -> qspec__5Quilt [__1i ]). breakpoints__9Quiltspec [__2j ])<= (__1pta [__1i ]))&& ((__1ptb [__1i ])<= ((__0this -> qspec__5Quilt [__1i ]). breakpoints__9Quiltspec [(__2j + 1 )])))
  256. break ;
  257. ((void )0 );
  258. (__0this -> qspec__5Quilt [__1i ]). index__9Quiltspec = __2j ;
  259. }
  260. }
  261. }
  262. }
  263. }
  264. }
  265. void __glsurfpts__7BackendFlPfN21iT0 (struct Backend *, long , REAL *, long , long , int , int ,
  266. REAL , REAL , REAL , REAL );
  267. void __glcurvpts__7BackendFlPfT1ifT0 (struct Backend *, long , REAL *, long , int , REAL , REAL );
  268. void __gldownload__5QuiltFR7Backend (struct Quilt *__0this , struct Backend *__1backend )
  269. {
  270. if (( (__0this -> eqspec__5Quilt - __0this -> qspec__5Quilt )) == 2 ){
  271. REAL *__2ps ;
  272. __2ps = __0this -> cpts__5Quilt ;
  273. __2ps += (__0this -> qspec__5Quilt [0 ]). offset__9Quiltspec ;
  274. __2ps += (__0this -> qspec__5Quilt [1 ]). offset__9Quiltspec ;
  275. __2ps += (((__0this -> qspec__5Quilt [0 ]). index__9Quiltspec * (__0this -> qspec__5Quilt [0 ]). order__9Quiltspec )* (__0this -> qspec__5Quilt [0 ]). stride__9Quiltspec );
  276. __2ps += (((__0this -> qspec__5Quilt [1 ]). index__9Quiltspec * (__0this -> qspec__5Quilt [1 ]). order__9Quiltspec )* (__0this -> qspec__5Quilt [1 ]). stride__9Quiltspec );
  277. __glsurfpts__7BackendFlPfN21iT0 ( (struct Backend *)__1backend , ( ((struct Mapdesc *)__0this -> mapdesc__5Quilt )-> type__7Mapdesc ) , __2ps , (long )(__0this -> qspec__5Quilt [0 ]). stride__9Quiltspec ,
  278. (long )(__0this -> qspec__5Quilt [1 ]). stride__9Quiltspec , (__0this -> qspec__5Quilt [0 ]). order__9Quiltspec , (__0this -> qspec__5Quilt [1 ]). order__9Quiltspec , (__0this -> qspec__5Quilt [0 ]). breakpoints__9Quiltspec [(__0this -> qspec__5Quilt [0 ]).
  279. index__9Quiltspec ], (__0this -> qspec__5Quilt [0 ]). breakpoints__9Quiltspec [((__0this -> qspec__5Quilt [0 ]). index__9Quiltspec + 1 )], (__0this -> qspec__5Quilt [1 ]). breakpoints__9Quiltspec [(__0this -> qspec__5Quilt [1 ]). index__9Quiltspec ], (__0this -> qspec__5Quilt [1 ]).
  280. breakpoints__9Quiltspec [((__0this -> qspec__5Quilt [1 ]). index__9Quiltspec + 1 )]) ;
  281. }
  282. else
  283. {
  284. REAL *__2ps ;
  285. __2ps = __0this -> cpts__5Quilt ;
  286. __2ps += (__0this -> qspec__5Quilt [0 ]). offset__9Quiltspec ;
  287. __2ps += (((__0this -> qspec__5Quilt [0 ]). index__9Quiltspec * (__0this -> qspec__5Quilt [0 ]). order__9Quiltspec )* (__0this -> qspec__5Quilt [0 ]). stride__9Quiltspec );
  288. __glcurvpts__7BackendFlPfT1ifT0 ( (struct Backend *)__1backend , ( ((struct Mapdesc *)__0this -> mapdesc__5Quilt )-> type__7Mapdesc ) , __2ps , (long )(__0this -> qspec__5Quilt [0 ]). stride__9Quiltspec ,
  289. (__0this -> qspec__5Quilt [0 ]). order__9Quiltspec , (__0this -> qspec__5Quilt [0 ]). breakpoints__9Quiltspec [(__0this -> qspec__5Quilt [0 ]). index__9Quiltspec ], (__0this -> qspec__5Quilt [0 ]). breakpoints__9Quiltspec [((__0this -> qspec__5Quilt [0 ]). index__9Quiltspec + 1 )])
  290. ;
  291. }
  292. }
  293. void __gldownloadAll__5QuiltFPfT1R70 (struct Quilt *__0this , REAL *__1pta , REAL *__1ptb , struct Backend *__1backend )
  294. {
  295. { { struct Quilt *__1m ;
  296. __1m = (struct Quilt *)__0this ;
  297. for(;__1m ;__1m = __1m -> next__5Quilt ) {
  298. __glselect__5QuiltFPfT1 ( (struct Quilt *)__1m , __1pta , __1ptb ) ;
  299. __gldownload__5QuiltFR7Backend ( (struct Quilt *)__1m , __1backend ) ;
  300. }
  301. }
  302. }
  303. }
  304. int __glxformAndCullCheck__7Mapdes0 (struct Mapdesc *, REAL *, int , int , int , int );
  305. int __glisCulled__5QuiltFv (struct Quilt *__0this )
  306. {
  307. if (( ((((struct Mapdesc *)__0this -> mapdesc__5Quilt )-> culling_method__7Mapdesc != 0.0 )?1 :0 )) )
  308. return __glxformAndCullCheck__7Mapdes0 ( (struct Mapdesc *)__0this ->
  309. mapdesc__5Quilt , (__0this -> cpts__5Quilt + (__0this -> qspec__5Quilt [0 ]). offset__9Quiltspec )+ (__0this -> qspec__5Quilt [1 ]). offset__9Quiltspec , (__0this -> qspec__5Quilt [0 ]). order__9Quiltspec * (__0this -> qspec__5Quilt [0 ]).
  310. width__9Quiltspec , (__0this -> qspec__5Quilt [0 ]). stride__9Quiltspec , (__0this -> qspec__5Quilt [1 ]). order__9Quiltspec * (__0this -> qspec__5Quilt [1 ]). width__9Quiltspec , (__0this -> qspec__5Quilt [1 ]). stride__9Quiltspec ) ;
  311. else
  312. return 2 ;
  313. }
  314. void __glgetRange__5QuiltFPfT1iR5Fl0 (struct Quilt *, REAL *, REAL *, int , struct Flist *);
  315. void __glgetRange__5QuiltFPfT1R5Fli0 (struct Quilt *__0this , REAL *__1from , REAL *__1to , struct Flist *__1slist , struct Flist *__1tlist )
  316. {
  317. __glgetRange__5QuiltFPfT1iR5Fl0 ( __0this , __1from , __1to , 0 ,
  318. __1slist ) ;
  319. __glgetRange__5QuiltFPfT1iR5Fl0 ( __0this , __1from , __1to , 1 , __1tlist ) ;
  320. }
  321. void __glgrow__5FlistFi (struct Flist *, int );
  322. void __gladd__5FlistFf (struct Flist *, REAL );
  323. void __glfilter__5FlistFv (struct Flist *);
  324. void __gltaper__5FlistFfT1 (struct Flist *, REAL , REAL );
  325. void __glgetRange__5QuiltFPfT1iR5Fl0 (struct Quilt *__0this , REAL *__1from , REAL *__1to , int __1i , struct Flist *__1list )
  326. {
  327. struct Quilt *__1maps ;
  328. __1maps = (struct Quilt *)__0this ;
  329. (__1from [__1i ])= ((__1maps -> qspec__5Quilt [__1i ]). breakpoints__9Quiltspec [0 ]);
  330. (__1to [__1i ])= ((__1maps -> qspec__5Quilt [__1i ]). breakpoints__9Quiltspec [(__1maps -> qspec__5Quilt [__1i ]). width__9Quiltspec ]);
  331. { int __1maxpts ;
  332. __1maxpts = 0 ;
  333. { { Quilt_ptr __1m ;
  334. __1m = __1maps ;
  335. for(;__1m ;__1m = __1m -> next__5Quilt ) {
  336. if (((__1m -> qspec__5Quilt [__1i ]). breakpoints__9Quiltspec [0 ])> (__1from [__1i ]))
  337. (__1from [__1i ])= ((__1m -> qspec__5Quilt [__1i ]). breakpoints__9Quiltspec [0 ]);
  338. if (((__1m -> qspec__5Quilt [__1i ]). breakpoints__9Quiltspec [(__1m -> qspec__5Quilt [__1i ]). width__9Quiltspec ])< (__1to [__1i ]))
  339. (__1to [__1i ])= ((__1m -> qspec__5Quilt [__1i ]). breakpoints__9Quiltspec [(__1m -> qspec__5Quilt [__1i ]). width__9Quiltspec ]);
  340. __1maxpts += ((__1m -> qspec__5Quilt [__1i ]). width__9Quiltspec + 1 );
  341. }
  342. __glgrow__5FlistFi ( (struct Flist *)__1list , __1maxpts ) ;
  343. for(__1m = __1maps ;__1m ;__1m = __1m -> next__5Quilt )
  344. { { int __1j ;
  345. __1j = 0 ;
  346. for(;__1j <= (__1m -> qspec__5Quilt [__1i ]). width__9Quiltspec ;__1j ++ ) {
  347. __gladd__5FlistFf ( (struct Flist *)__1list , (__1m -> qspec__5Quilt [__1i ]). breakpoints__9Quiltspec [__1j ]) ;
  348. }
  349. }
  350. }
  351. __glfilter__5FlistFv ( (struct Flist *)__1list ) ;
  352. __gltaper__5FlistFfT1 ( (struct Flist *)__1list , __1from [__1i ], __1to [__1i ]) ;
  353. }
  354. }
  355. }
  356. }
  357. void __glgetRange__5QuiltFPfT1R5Fli1 (struct Quilt *__0this , REAL *__1from , REAL *__1to , struct Flist *__1slist )
  358. {
  359. __glgetRange__5QuiltFPfT1iR5Fl0 ( __0this , __1from , __1to , 0 , __1slist ) ;
  360. }
  361. void __glfindSampleRates__5QuiltFR50 (struct Quilt *, struct Flist *, struct Flist *);
  362. void __glfindRates__5QuiltFR5FlistT0 (struct Quilt *__0this , struct Flist *__1slist , struct Flist *__1tlist , REAL *__1rate )
  363. {
  364. __glfindSampleRates__5QuiltFR50 ( __0this , __1slist , __1tlist ) ;
  365. (__1rate [0 ])= (__0this -> qspec__5Quilt [0 ]). step_size__9Quiltspec ;
  366. (__1rate [1 ])= (__0this -> qspec__5Quilt [1 ]). step_size__9Quiltspec ;
  367. { { struct Quilt *__1q ;
  368. __1q = __0this -> next__5Quilt ;
  369. for(;__1q ;__1q = __1q -> next__5Quilt ) {
  370. __glfindSampleRates__5QuiltFR50 ( (struct Quilt *)__1q , __1slist , __1tlist ) ;
  371. if ((__1q -> qspec__5Quilt [0 ]). step_size__9Quiltspec < (__1rate [0 ]))
  372. (__1rate [0 ])= (__1q -> qspec__5Quilt [0 ]). step_size__9Quiltspec ;
  373. if ((__1q -> qspec__5Quilt [1 ]). step_size__9Quiltspec < (__1rate [1 ]))
  374. (__1rate [1 ])= (__1q -> qspec__5Quilt [1 ]). step_size__9Quiltspec ;
  375. }
  376. }
  377. }
  378. }
  379. struct Patchlist *__gl__ct__9PatchlistFP5QuiltPf0 (struct Patchlist *, struct Quilt *, REAL *, REAL *);
  380. void __glgetstepsize__9PatchlistFv (struct Patchlist *);
  381. void __gl__dt__9PatchlistFv (struct Patchlist *, int );
  382. void __glfindSampleRates__5QuiltFR50 (struct Quilt *__0this , struct Flist *__1slist , struct Flist *__1tlist )
  383. {
  384. (__0this -> qspec__5Quilt [0 ]). step_size__9Quiltspec = (.2 * (((__0this -> qspec__5Quilt [0 ]). breakpoints__9Quiltspec [(__0this ->
  385. qspec__5Quilt [0 ]). width__9Quiltspec ])- ((__0this -> qspec__5Quilt [0 ]). breakpoints__9Quiltspec [0 ])));
  386. (__0this -> qspec__5Quilt [1 ]). step_size__9Quiltspec = (.2 * (((__0this -> qspec__5Quilt [1 ]). breakpoints__9Quiltspec [(__0this -> qspec__5Quilt [1 ]). width__9Quiltspec ])- ((__0this -> qspec__5Quilt [1 ]). breakpoints__9Quiltspec [0 ])));
  387. { { int __1i ;
  388. __1i = ((*__1slist )). start__5Flist ;
  389. for(;__1i < (((*__1slist )). end__5Flist - 1 );__1i ++ ) {
  390. { { int __2j ;
  391. __2j = ((*__1tlist )). start__5Flist ;
  392. for(;__2j < (((*__1tlist )). end__5Flist - 1 );__2j ++ ) {
  393. REAL __3pta [2];
  394. REAL __3ptb [2];
  395. (__3pta [0 ])= (((*__1slist )). pts__5Flist [__1i ]);
  396. (__3ptb [0 ])= (((*__1slist )). pts__5Flist [(__1i + 1 )]);
  397. (__3pta [1 ])= (((*__1tlist )). pts__5Flist [__2j ]);
  398. (__3ptb [1 ])= (((*__1tlist )). pts__5Flist [(__2j + 1 )]);
  399. { struct Patchlist __3patchlist ;
  400. __gl__ct__9PatchlistFP5QuiltPf0 ( (struct Patchlist *)(& __3patchlist ), (struct Quilt *)__0this , (float *)__3pta , (float *)__3ptb ) ;
  401. __glgetstepsize__9PatchlistFv ( (struct Patchlist *)(& __3patchlist )) ;
  402. if (( (((struct Patchlist *)(& __3patchlist ))-> pspec__9Patchlist [0 ]). stepsize__5Pspec ) < (__0this -> qspec__5Quilt [0 ]). step_size__9Quiltspec )
  403. (__0this -> qspec__5Quilt [0 ]). step_size__9Quiltspec = (
  404. (((struct Patchlist *)(& __3patchlist ))-> pspec__9Patchlist [0 ]). stepsize__5Pspec ) ;
  405. if (( (((struct Patchlist *)(& __3patchlist ))-> pspec__9Patchlist [1 ]). stepsize__5Pspec ) < (__0this -> qspec__5Quilt [1 ]). step_size__9Quiltspec )
  406. (__0this -> qspec__5Quilt [1 ]). step_size__9Quiltspec = (
  407. (((struct Patchlist *)(& __3patchlist ))-> pspec__9Patchlist [1 ]). stepsize__5Pspec ) ;
  408. __gl__dt__9PatchlistFv ( (struct Patchlist *)(& __3patchlist ), 2) ;
  409. }
  410. }
  411. }
  412. }
  413. }
  414. }
  415. }
  416. }
  417. /* the end */