2020-06-05 09:17:17 +11:00
|
|
|
/*
|
|
|
|
tentatives de lecture des OBJ
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
2023-03-30 14:39:36 +11:00
|
|
|
#include <libgen.h> // for basename(3)
|
|
|
|
|
2020-06-05 09:17:17 +11:00
|
|
|
#include "../bubulles.h"
|
|
|
|
|
2023-03-30 14:39:36 +11:00
|
|
|
int try_to_read_an_OBJ_file(char *fname,
|
|
|
|
char *outfname, char *file_edges,
|
|
|
|
int notused);
|
|
|
|
|
|
|
|
|
|
|
|
int verbosity = 0;
|
2020-06-05 10:05:01 +11:00
|
|
|
|
2020-06-05 09:17:17 +11:00
|
|
|
int main(int argc, char *argv[])
|
|
|
|
{
|
|
|
|
int foo;
|
2023-03-30 14:39:36 +11:00
|
|
|
char *fname; /* see manpage basename(3) */
|
2020-06-05 09:17:17 +11:00
|
|
|
|
|
|
|
if (2 != argc) {
|
|
|
|
bubulles_version(1);
|
|
|
|
exit(0);
|
|
|
|
}
|
|
|
|
|
2023-03-30 14:39:36 +11:00
|
|
|
verbosity = 0;
|
|
|
|
|
|
|
|
fname = basename(argv[1]);
|
|
|
|
fprintf (stderr, "input fname is '%s'\n", fname);
|
2020-06-05 09:17:17 +11:00
|
|
|
|
2023-03-30 14:39:36 +11:00
|
|
|
foo = try_to_read_an_OBJ_file(argv[1], "bulles.vertices", "bulles.edges", 0);
|
2023-03-25 01:34:23 +11:00
|
|
|
fprintf(stderr, "try to read '%s' -> %d\n", argv [1], foo);
|
2020-06-05 09:17:17 +11:00
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|