84 |
|
* the mg_handle function rather than the mg_ehand routines directly. |
85 |
|
* (The first argument to mg_handle is the entity #, or -1.) |
86 |
|
* To free any data structures and clear the parser, use mg_clear. |
87 |
< |
* If there is an error, mg_load, mg_open, mg_parse, and mg_rewind |
88 |
< |
* will return an error from the list above. In addition, mg_load |
89 |
< |
* will report the error to stderr. The mg_read routine returns 0 |
90 |
< |
* when the end of file has been reached. |
87 |
> |
* If there is an error, mg_load, mg_open, mg_parse, mg_handle and |
88 |
> |
* mg_rewind will return an error from the list above. In addition, |
89 |
> |
* mg_load will report the error to stderr. The mg_read routine |
90 |
> |
* returns 0 when the end of file has been reached. |
91 |
|
*/ |
92 |
|
|
93 |
|
#define MG_MAXLINE 512 /* maximum input line length */ |
237 |
|
11,8,3,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},\ |
238 |
|
106770L, .167, .009 } |
239 |
|
|
240 |
< |
#define c_cval(c,l) ((double)(c)->ssamp[((l)-C_MINWL)/C_CWLI] / (c)->sum) |
240 |
> |
#define c_cval(c,l) ((double)(c)->ssamp[((l)-C_MINWL)/C_CWLI] / (c)->ssum) |
241 |
|
|
242 |
|
typedef struct { |
243 |
|
int clock; /* incremented each change -- resettable */ |
330 |
|
|
331 |
|
/* regular transformation */ |
332 |
|
typedef struct { |
333 |
< |
MAT4 xfm; /* transform matrix */ |
334 |
< |
FLOAT sca; /* scalefactor */ |
333 |
> |
MAT4 xfm; /* transform matrix */ |
334 |
> |
FLOAT sca; /* scalefactor */ |
335 |
|
} XF; |
336 |
|
|
337 |
|
#define identxf(xp) (void)(setident4((xp)->xfm),(xp)->sca=1.0) |
351 |
|
long xid; /* unique transform id */ |
352 |
|
short xav0; /* zeroeth argument in xf_argv array */ |
353 |
|
short xac; /* transform argument count */ |
354 |
+ |
short rev; /* boolean true if vertices reversed */ |
355 |
|
XF xf; /* cumulative transformation */ |
356 |
|
struct xf_array *xarr; /* transformation array pointer */ |
357 |
|
struct xf_spec *prev; /* previous transformation context */ |