1 |
< |
/* Copyright (c) 1986 Regents of the University of California */ |
1 |
> |
/* Copyright (c) 1991 Regents of the University of California */ |
2 |
|
|
3 |
|
#ifndef lint |
4 |
|
static char SCCSid[] = "$SunId$ LBL"; |
84 |
|
badvert += fabs(d1 - f->offset/i) > VERTEPS; |
85 |
|
f->offset += d1; |
86 |
|
} |
87 |
< |
f->offset /= f->nv; |
87 |
> |
f->offset /= (double)f->nv; |
88 |
|
if (badvert) |
89 |
|
objerror(o, WARNING, "non-planar vertex"); |
90 |
|
/* find axis */ |
113 |
|
int ncross, n; |
114 |
|
double x, y; |
115 |
|
register int xi, yi; |
116 |
< |
register double *p0, *p1; |
116 |
> |
register FLOAT *p0, *p1; |
117 |
|
|
118 |
|
xi = (f->ax+1)%3; |
119 |
|
yi = (f->ax+2)%3; |