12 |
|
*/ |
13 |
|
|
14 |
|
#include <stdlib.h> |
15 |
– |
#include <stdio.h> |
16 |
– |
#include <string.h> |
15 |
|
#include <math.h> |
16 |
|
|
17 |
|
#include "rtio.h" |
128 |
|
scompile(stmp, NULL, 0); |
129 |
|
sprintf(stmp, "%s(t)=%s;", RNAME, argv[4]); |
130 |
|
scompile(stmp, NULL, 0); |
131 |
< |
nseg = atoi(argv[5]); |
131 |
> |
nseg = eval(argv[5]) + .5; |
132 |
|
if (nseg <= 0) |
133 |
|
goto userror; |
134 |
|
modname = smooth ? "Phong" : argv[1]; |
135 |
|
|
136 |
|
fputs("# ", stdout); |
137 |
|
printargs(argc, argv, stdout); |
138 |
< |
eclock = 0; |
138 |
> |
doptimize(1); |
139 |
> |
eclock++; |
140 |
|
|
141 |
|
lastnz = lastnr = 0.0; |
142 |
|
t = 0.0; |