27 |
|
} TRIDATA; |
28 |
|
|
29 |
|
#define tdsize(fl) ((fl)&MT_UV ? sizeof(TRIDATA) : \ |
30 |
< |
(fl)&MT_N ? sizeof(TRIDATA)-2*sizeof(FLOAT) : \ |
30 |
> |
(fl)&MT_N ? sizeof(TRIDATA)-6*sizeof(FLOAT) : \ |
31 |
|
sizeof(int)+sizeof(OBJECT)) |
32 |
|
|
33 |
|
#define OMARGIN (10*FTINY) /* margin around global cube */ |
285 |
|
return; |
286 |
|
/* fix coordinate bounds */ |
287 |
|
for (i = 0; i < 3; i++) { |
288 |
< |
if (meshbounds[0][i] >= meshbounds[1][i]) |
288 |
> |
if (meshbounds[0][i] > meshbounds[1][i]) |
289 |
|
error(USER, "no polygons in mesh"); |
290 |
|
meshbounds[0][i] -= OMARGIN; |
291 |
|
meshbounds[1][i] += OMARGIN; |