| 15 |
|
* 4/16/02 Added conditional vertex output |
| 16 |
|
*/ |
| 17 |
|
|
| 18 |
< |
#include "rtmath.h" |
| 18 |
> |
#include "standard.h" |
| 19 |
> |
|
| 20 |
> |
#include "paths.h" |
| 21 |
> |
#include "resolu.h" |
| 22 |
|
#include "rterror.h" |
| 20 |
– |
#include "rtio.h" |
| 23 |
|
#include "calcomp.h" |
| 24 |
|
|
| 25 |
|
char XNAME[] = "X`SYS"; /* x function name */ |
| 71 |
|
void comprow(double s, POINT *row, int siz); |
| 72 |
|
void compnorms(POINT *r0, POINT *r1, POINT *r2, int siz); |
| 73 |
|
int norminterp(FVECT resmat[4], POINT *p0, POINT *p1, POINT *p2, POINT *p3); |
| 72 |
– |
void printhead(int ac, char **av); |
| 74 |
|
|
| 75 |
|
|
| 76 |
|
int |
| 138 |
|
} |
| 139 |
|
row0++; row1++; row2++; |
| 140 |
|
/* print header */ |
| 141 |
< |
printhead(argc, argv); |
| 141 |
> |
fputs("# ", stdout); |
| 142 |
> |
printargs(argc, argv, stdout); |
| 143 |
|
eclock = 0; |
| 144 |
|
/* initialize */ |
| 145 |
|
comprow(-1.0/m, row0, n); |
| 585 |
|
|
| 586 |
|
#undef u |
| 587 |
|
#undef v |
| 586 |
– |
} |
| 587 |
– |
|
| 588 |
– |
|
| 589 |
– |
void |
| 590 |
– |
eputs(msg) |
| 591 |
– |
char *msg; |
| 592 |
– |
{ |
| 593 |
– |
fputs(msg, stderr); |
| 594 |
– |
} |
| 595 |
– |
|
| 596 |
– |
|
| 597 |
– |
void |
| 598 |
– |
wputs(msg) |
| 599 |
– |
char *msg; |
| 600 |
– |
{ |
| 601 |
– |
eputs(msg); |
| 602 |
– |
} |
| 603 |
– |
|
| 604 |
– |
|
| 605 |
– |
void |
| 606 |
– |
quit(code) |
| 607 |
– |
int code; |
| 608 |
– |
{ |
| 609 |
– |
exit(code); |
| 610 |
– |
} |
| 611 |
– |
|
| 612 |
– |
|
| 613 |
– |
void |
| 614 |
– |
printhead( /* print command header */ |
| 615 |
– |
register int ac, |
| 616 |
– |
register char **av |
| 617 |
– |
) |
| 618 |
– |
{ |
| 619 |
– |
putchar('#'); |
| 620 |
– |
while (ac--) { |
| 621 |
– |
putchar(' '); |
| 622 |
– |
fputs(*av++, stdout); |
| 623 |
– |
} |
| 624 |
– |
putchar('\n'); |
| 588 |
|
} |
| 589 |
|
|
| 590 |
|
|