130 |
|
} |
131 |
|
exit(0); |
132 |
|
userr: |
133 |
< |
fprintf(stderr, "Usage: %s [-o obj][-m mapping][-n] [file.obj]\n", |
133 |
> |
fprintf(stderr, "Usage: %s [-o obj][-m mapping][-n][-f] [file.obj]\n", |
134 |
|
argv[0]); |
135 |
|
exit(1); |
136 |
|
} |
440 |
|
if (vi[0]-- > nvs) |
441 |
|
return(0); |
442 |
|
} else if (vi[0] < 0) { |
443 |
< |
vi[0] = nvs + vi[0]; |
443 |
> |
vi[0] += nvs; |
444 |
|
if (vi[0] < 0) |
445 |
|
return(0); |
446 |
|
} else |
454 |
|
if (vi[1]-- > nvts) |
455 |
|
return(0); |
456 |
|
} else if (vi[1] < 0) { |
457 |
< |
vi[1] = nvts + vi[1]; |
457 |
> |
vi[1] += nvts; |
458 |
|
if (vi[1] < 0) |
459 |
|
return(0); |
460 |
|
} else |
468 |
|
if (vi[2]-- > nvns) |
469 |
|
return(0); |
470 |
|
} else if (vi[2] < 0) { |
471 |
< |
vi[2] = nvns + vi[2]; |
471 |
> |
vi[2] += nvns; |
472 |
|
if (vi[2] < 0) |
473 |
|
return(0); |
474 |
|
} else |
477 |
|
} |
478 |
|
|
479 |
|
|
480 |
< |
nonplanar(ac, av) /* are vertices are non-planar? */ |
480 |
> |
nonplanar(ac, av) /* are vertices non-planar? */ |
481 |
|
register int ac; |
482 |
|
register char **av; |
483 |
|
{ |