refactoring, first step

This commit is contained in:
tTh
2023-04-20 22:33:46 +02:00
parent a1056ee836
commit 87c2ffd88d
6 changed files with 141 additions and 42 deletions

View File

@@ -8,9 +8,7 @@
#include "../bubulles.h"
int try_to_read_an_OBJ_file(char *fname,
char *outfname, char *file_edges,
int notused);
int try_to_read_an_OBJ_file(char *fname, int outstyle);
int verbosity = 0;
@@ -20,19 +18,21 @@ int main(int argc, char *argv[])
int foo;
char *fname; /* see manpage basename(3) */
fprintf(stderr, "\n### READ_OBJ %s %s\n\n", __DATE__, __TIME__);
fprintf(stderr, "\n### READ_OBJ compiled %s at %s\n", __DATE__, __TIME__);
if (2 != argc) {
bubulles_version(1);
exit(0);
}
verbosity = 1;
verbosity = 0;
/*
fname = basename(argv[1]);
fprintf (stderr, "input file name is '%s'\n", fname);
*/
foo = try_to_read_an_OBJ_file(argv[1], "bulles.vertices", "bulles.edges", 0);
foo = try_to_read_an_OBJ_file(argv[1], 0);
fprintf(stderr, "try to read '%s' -> %d\n", argv [1], foo);
return 0;