11 |
|
* |
12 |
|
*/ |
13 |
|
|
14 |
+ |
#define _USE_MATH_DEFINES |
15 |
|
#include "rtio.h" |
16 |
|
#include <stdlib.h> |
17 |
|
#include <math.h> |
87 |
|
return (a <= 1e-6) & (a >= -1e-6); |
88 |
|
} |
89 |
|
|
89 |
– |
/* Returns the name of the given tag */ |
90 |
– |
#ifdef ezxml_name |
91 |
– |
#undef ezxml_name |
92 |
– |
static char * |
93 |
– |
ezxml_name(ezxml_t xml) |
94 |
– |
{ |
95 |
– |
if (xml == NULL) |
96 |
– |
return NULL; |
97 |
– |
return xml->name; |
98 |
– |
} |
99 |
– |
#endif |
100 |
– |
|
90 |
|
/* Returns the given tag's character content or empty string if none */ |
91 |
|
#ifdef ezxml_txt |
92 |
|
#undef ezxml_txt |
178 |
|
{ |
179 |
|
ANGLE_BASIS *ab = (ANGLE_BASIS *)p; |
180 |
|
int li, ndx; |
181 |
< |
double pol, azi, d; |
181 |
> |
double pol, azi; |
182 |
|
|
183 |
|
if (v == NULL) |
184 |
|
return -1; |
517 |
|
if (*sdnext == ',') sdnext++; |
518 |
|
if (rowinc) { |
519 |
|
int r = i/dp->nout; |
520 |
< |
int c = i - c*dp->nout; |
520 |
> |
int c = i - r*dp->nout; |
521 |
|
mBSDF_value(dp,r,c) = atof(sdata); |
522 |
|
} else |
523 |
|
dp->bsdf[i] = atof(sdata); |