35 lines
571 B
C
35 lines
571 B
C
/*
|
|
tentatives de lecture des OBJ
|
|
*/
|
|
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <libgen.h> // for basename(3)
|
|
|
|
#include "../bubulles.h"
|
|
#include "../edges.h"
|
|
|
|
#include "objtrucs.h"
|
|
|
|
int verbosity = 0;
|
|
|
|
int main(int argc, char *argv[])
|
|
{
|
|
int foo;
|
|
char *fname; /* see manpage basename(3) */
|
|
|
|
fprintf(stderr, "\n### READ_OBJ compiled %s at %s\n", __DATE__, __TIME__);
|
|
|
|
if (2 != argc) {
|
|
bubulles_version(1);
|
|
exit(0);
|
|
}
|
|
|
|
verbosity = 0;
|
|
|
|
foo = try_to_read_an_OBJ_file(argv[1], 0);
|
|
fprintf(stderr, "try to read '%s' -> %d\n", argv [1], foo);
|
|
|
|
return 0;
|
|
}
|