15 |
|
#include "color.h" |
16 |
|
#include "lookup.h" |
17 |
|
|
18 |
+ |
#define PI 3.14159265358979323846 |
19 |
+ |
|
20 |
|
int o_face(), o_cone(), o_sphere(), o_ring(), o_cylinder(); |
21 |
|
int o_instance(), o_source(), o_illum(); |
22 |
|
int o_plastic(), o_metal(), o_glass(), o_mirror(), o_trans(), o_light(); |
82 |
|
goto unkopt; |
83 |
|
} |
84 |
|
break; |
85 |
+ |
default: |
86 |
+ |
goto unkopt; |
87 |
|
} |
88 |
|
init(); |
89 |
|
if (i >= argc) |
310 |
|
} |
311 |
|
|
312 |
|
|
313 |
+ |
clrverts() /* clear vertex table */ |
314 |
+ |
{ |
315 |
+ |
register int i; |
316 |
+ |
|
317 |
+ |
lu_done(&vertab); |
318 |
+ |
for (i = 0; i < NVERTS; i++) |
319 |
+ |
vert[i].lused = 0; |
320 |
+ |
lu_init(&vertab, NVERTS); |
321 |
+ |
} |
322 |
+ |
|
323 |
+ |
|
324 |
|
add2dispatch(name, func) /* add function to dispatch table */ |
325 |
|
char *name; |
326 |
|
int (*func)(); |
526 |
|
fputs(fa->sarg[i], stdout); |
527 |
|
} |
528 |
|
putchar('\n'); |
529 |
+ |
clrverts(); /* vertex id's no longer reliable */ |
530 |
|
return(0); |
531 |
|
} |
532 |
|
|
730 |
|
puts("\tc"); |
731 |
|
if (d > FTINY) |
732 |
|
printf("\t\tcxy %.4f %.4f\n", cxyz[0]/d, cxyz[1]/d); |
733 |
< |
printf("\ted %.4g\n", cxyz[1]*WHTEFFICACY); |
733 |
> |
printf("\ted %.4g\n", cxyz[1]*(PI*WHTEFFICACY)); |
734 |
|
return(0); |
735 |
|
} |