5 |
|
* Routines to do the actual calculation for mkillum |
6 |
|
*/ |
7 |
|
|
8 |
< |
#include "mkillum.h" |
8 |
> |
#include <string.h> |
9 |
|
|
10 |
+ |
#include "mkillum.h" |
11 |
|
#include "face.h" |
11 |
– |
|
12 |
|
#include "cone.h" |
13 |
– |
|
13 |
|
#include "random.h" |
14 |
|
|
15 |
|
|
299 |
|
|
300 |
|
if (rt->nrays <= 0) |
301 |
|
return; |
302 |
< |
bzero(rt->buf+6*rt->nrays, 6*sizeof(float)); |
302 |
> |
memset(rt->buf+6*rt->nrays, '\0', 6*sizeof(float)); |
303 |
|
errno = 0; |
304 |
< |
if ( process(rt->pd, (char *)rt->buf, (char *)rt->buf, |
304 |
> |
if ( process(&(rt->pd), (char *)rt->buf, (char *)rt->buf, |
305 |
|
3*sizeof(float)*(rt->nrays+1), |
306 |
|
6*sizeof(float)*(rt->nrays+1)) < |
307 |
|
3*sizeof(float)*(rt->nrays+1) ) |