1 |
/* Copyright (c) 1991 Regents of the University of California */ |
2 |
|
3 |
#ifndef lint |
4 |
static char SCCSid[] = "$SunId$ LBL"; |
5 |
#endif |
6 |
|
7 |
/* |
8 |
* Routines to do the actual calcultion and output for mkillum |
9 |
*/ |
10 |
|
11 |
#include "mkillum.h" |
12 |
|
13 |
#include "face.h" |
14 |
|
15 |
#include "cone.h" |
16 |
|
17 |
|
18 |
printobj(mod, obj) /* print out an object */ |
19 |
char *mod; |
20 |
register OBJREC *obj; |
21 |
{ |
22 |
register int i; |
23 |
|
24 |
printf("\n%s %s %s", mod, ofun[obj->otype].funame, obj->oname); |
25 |
printf("\n%d", obj->oargs.nsargs); |
26 |
for (i = 0; i < obj->oargs.nsargs; i++) |
27 |
printf(" %s", obj->oargs.sarg[i]); |
28 |
#ifdef IARGS |
29 |
printf("\n%d", obj->oargs.niargs); |
30 |
for (i = 0; i < obj->oargs.niargs; i++) |
31 |
printf(" %d", obj->oargs.iarg[i]); |
32 |
#else |
33 |
printf("\n0"); |
34 |
#endif |
35 |
printf("\n%d", obj->oargs.nfargs); |
36 |
for (i = 0; i < obj->oargs.nfargs; i++) { |
37 |
if (i%3 == 0) |
38 |
putchar('\n'); |
39 |
printf(" %18.12g", obj->oargs.farg[i]); |
40 |
} |
41 |
putchar('\n'); |
42 |
} |
43 |
|
44 |
|
45 |
mkillum(ob, il, rt) /* make an illum object */ |
46 |
OBJREC *ob; |
47 |
struct illum_args *il; |
48 |
struct rtproc *rt; |
49 |
{ |
50 |
} |