more work done on .OBJ import
This commit is contained in:
@@ -4,23 +4,33 @@
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <libgen.h> // for basename(3)
|
||||
|
||||
#include "../bubulles.h"
|
||||
|
||||
int try_to_read_an_OBJ_file(char *fname, char *outfname, int notused);
|
||||
int verbosity;
|
||||
int try_to_read_an_OBJ_file(char *fname,
|
||||
char *outfname, char *file_edges,
|
||||
int notused);
|
||||
|
||||
|
||||
int verbosity = 0;
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
int foo;
|
||||
char *fname; /* see manpage basename(3) */
|
||||
|
||||
if (2 != argc) {
|
||||
bubulles_version(1);
|
||||
exit(0);
|
||||
}
|
||||
|
||||
verbosity = 2;
|
||||
verbosity = 0;
|
||||
|
||||
foo = try_to_read_an_OBJ_file(argv[1], "bubulles.asc", 0);
|
||||
fname = basename(argv[1]);
|
||||
fprintf (stderr, "input fname is '%s'\n", fname);
|
||||
|
||||
foo = try_to_read_an_OBJ_file(argv[1], "bulles.vertices", "bulles.edges", 0);
|
||||
fprintf(stderr, "try to read '%s' -> %d\n", argv [1], foo);
|
||||
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user