94 |
|
ms->next = mlist; |
95 |
|
mlist = ms; |
96 |
|
} |
97 |
< |
if ((pathname = getpath(mname, getlibpath(), R_OK)) == NULL) { |
97 |
> |
if ((pathname = getpath(mname, getrlibpath(), R_OK)) == NULL) { |
98 |
|
sprintf(errmsg, "cannot find mesh file \"%s\"", mname); |
99 |
|
error(USER, errmsg); |
100 |
|
} |
197 |
|
|
198 |
|
int |
199 |
|
getmeshvert(vp, mp, vid, what) /* get triangle vertex from ID */ |
200 |
< |
MESHVERT*vp; |
201 |
< |
MESH *mp; |
202 |
< |
int4 vid; |
203 |
< |
int what; |
200 |
> |
MESHVERT *vp; |
201 |
> |
MESH *mp; |
202 |
> |
int4 vid; |
203 |
> |
int what; |
204 |
|
{ |
205 |
|
int pn = vid >> 8; |
206 |
|
MESHPATCH *pp; |
504 |
|
if (mp->ldflags & IO_BOUNDS) { |
505 |
|
if (mp->mcube.cusize <= FTINY) |
506 |
|
return("illegal octree bounds in mesh"); |
507 |
< |
nouvbounds = (mp->uvlim[0][1] - mp->uvlim[0][0] <= FTINY || |
508 |
< |
mp->uvlim[1][1] - mp->uvlim[1][0] <= FTINY); |
507 |
> |
nouvbounds = (mp->uvlim[1][0] - mp->uvlim[0][0] <= FTINY || |
508 |
> |
mp->uvlim[1][1] - mp->uvlim[0][1] <= FTINY); |
509 |
|
} |
510 |
|
/* check octree */ |
511 |
|
if (mp->ldflags & IO_TREE) { |