279 |
|
char **av |
280 |
|
) |
281 |
|
{ |
282 |
< |
Vert2_list *poly = polyAlloc(ac); |
282 |
> |
Vert2_list *poly; |
283 |
|
int i, ax, ay; |
284 |
|
|
285 |
– |
if (poly == NULL) |
286 |
– |
return(0); |
287 |
– |
poly->p = (void *)av; |
285 |
|
for (i = ac-3; i >= 0; i--) /* identify dominant axis */ |
286 |
|
if ((ax = dominant_axis(av[i], av[i+1], av[i+2])) >= 0) |
287 |
|
break; |
288 |
|
if (ax < 0) |
289 |
|
return(1); /* ignore degenerate face */ |
290 |
+ |
poly = polyAlloc(ac); |
291 |
+ |
if (poly == NULL) |
292 |
+ |
return(0); |
293 |
+ |
poly->p = (void *)av; |
294 |
|
if (++ax >= 3) ax = 0; |
295 |
|
ay = ax; |
296 |
|
if (++ay >= 3) ay = 0; |