2020-06-05 00:17:17 +02:00
|
|
|
/*
|
|
|
|
tentatives de lecture des OBJ
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
2023-03-30 05:39:36 +02:00
|
|
|
#include <libgen.h> // for basename(3)
|
|
|
|
|
2020-06-05 00:17:17 +02:00
|
|
|
#include "../bubulles.h"
|
2023-04-20 22:55:46 +02:00
|
|
|
#include "../edges.h"
|
2020-06-05 00:17:17 +02:00
|
|
|
|
2023-04-22 10:31:50 +02:00
|
|
|
#include "objtrucs.h"
|
2023-03-30 05:39:36 +02:00
|
|
|
|
|
|
|
int verbosity = 0;
|
2020-06-05 01:05:01 +02:00
|
|
|
|
2020-06-05 00:17:17 +02:00
|
|
|
int main(int argc, char *argv[])
|
|
|
|
{
|
|
|
|
int foo;
|
2023-03-30 05:39:36 +02:00
|
|
|
char *fname; /* see manpage basename(3) */
|
2020-06-05 00:17:17 +02:00
|
|
|
|
2023-04-20 22:33:46 +02:00
|
|
|
fprintf(stderr, "\n### READ_OBJ compiled %s at %s\n", __DATE__, __TIME__);
|
2023-04-03 00:52:09 +02:00
|
|
|
|
2020-06-05 00:17:17 +02:00
|
|
|
if (2 != argc) {
|
|
|
|
bubulles_version(1);
|
|
|
|
exit(0);
|
|
|
|
}
|
|
|
|
|
2023-04-20 22:33:46 +02:00
|
|
|
verbosity = 0;
|
2023-03-30 05:39:36 +02:00
|
|
|
|
2023-04-20 22:33:46 +02:00
|
|
|
foo = try_to_read_an_OBJ_file(argv[1], 0);
|
2023-03-24 15:34:23 +01:00
|
|
|
fprintf(stderr, "try to read '%s' -> %d\n", argv [1], foo);
|
2020-06-05 00:17:17 +02:00
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|