| 1 |
– |
/* Copyright (c) 1986 Regents of the University of California */ |
| 2 |
– |
|
| 1 |
|
#ifndef lint |
| 2 |
< |
static char SCCSid[] = "$SunId$ LBL"; |
| 2 |
> |
static const char RCSid[] = "$Id$"; |
| 3 |
|
#endif |
| 6 |
– |
|
| 4 |
|
/* |
| 5 |
|
* o_face.c - routines for creating octrees for polygonal faces. |
| 6 |
|
* |
| 54 |
|
return(O_MISS); |
| 55 |
|
/* compute cube boundaries */ |
| 56 |
|
for (j = 0; j < 3; j++) |
| 57 |
< |
cumax[j] = (cumin[j] = cu->cuorg[j]) + cu->cusize; |
| 57 |
> |
cumax[j] = (cumin[j] = cu->cuorg[j]-FTINY) |
| 58 |
> |
+ cu->cusize + 2.0*FTINY; |
| 59 |
|
|
| 60 |
|
vloc = ABOVE | BELOW; /* check vertices */ |
| 61 |
|
for (i = 0; i < f->nv; i++) |
| 62 |
< |
if (j = plocate(VERTEX(f,i), cumin, cumax)) |
| 62 |
> |
if ( (j = plocate(VERTEX(f,i), cumin, cumax)) ) |
| 63 |
|
vloc &= j; |
| 64 |
|
else |
| 65 |
|
return(O_HIT); /* vertex inside */ |