| 38 |
|
free((void *)distarr); |
| 39 |
|
distarr = (COLORV *)malloc(sizeof(COLORV)*3*siz); |
| 40 |
|
if (distarr == NULL) |
| 41 |
< |
error(SYSTEM, "Out of memory in distalloc"); |
| 41 |
> |
error(SYSTEM, "Out of memory in newdist"); |
| 42 |
|
distsiz = siz; |
| 43 |
|
} |
| 44 |
|
memset(distarr, '\0', sizeof(COLORV)*3*siz); |
| 94 |
|
} |
| 95 |
|
|
| 96 |
|
|
| 97 |
< |
int /* XXX type conflict with otypes.h */ |
| 97 |
> |
int |
| 98 |
|
my_default( /* default illum action */ |
| 99 |
|
OBJREC *ob, |
| 100 |
|
struct illum_args *il, |
| 130 |
|
fa = getface(ob); |
| 131 |
|
if (fa->area == 0.0) { |
| 132 |
|
freeface(ob); |
| 133 |
< |
return(o_default(ob, il, nm)); |
| 133 |
> |
return(my_default(ob, il, nm)); |
| 134 |
|
} |
| 135 |
|
/* set up sampling */ |
| 136 |
|
if (il->sampdens <= 0) |
| 195 |
|
rayclean(); |
| 196 |
|
freeface(ob); |
| 197 |
|
free((void *)distarr); |
| 198 |
< |
return(o_default(ob, il, nm)); |
| 198 |
> |
return(my_default(ob, il, nm)); |
| 199 |
|
} |
| 200 |
|
for (j = 0; j < 3; j++) |
| 201 |
|
org[j] += .001*fa->norm[j]; |