little tweak
This commit is contained in:
parent
9c336eed8c
commit
85f1867424
@ -49,7 +49,7 @@ Tokens TokenList[] = {
|
|||||||
{ "vn", T_vt }, // c'est quoi ce truc ?
|
{ "vn", T_vt }, // c'est quoi ce truc ?
|
||||||
{ "l", T_line },
|
{ "l", T_line },
|
||||||
{ "o", T_object },
|
{ "o", T_object },
|
||||||
{ "s", T_smoothing },
|
{ "s", T_smoothing }, // mmmm....
|
||||||
{ "usemtl", T_usemtl },
|
{ "usemtl", T_usemtl },
|
||||||
{ "mtllib", T_mtllib },
|
{ "mtllib", T_mtllib },
|
||||||
/* and more to come... */
|
/* and more to come... */
|
||||||
@ -149,7 +149,8 @@ if ( pts[0]==pts[1] || pts[0]==pts[2] || pts[2]==pts[1] ) {
|
|||||||
for (ix=0; ix<3; ix++) {
|
for (ix=0; ix<3; ix++) {
|
||||||
a = ix % 3;
|
a = ix % 3;
|
||||||
b = (ix+1) % 3;
|
b = (ix+1) % 3;
|
||||||
foo = push_a_missing_edge(edges, pts[a], pts[b]);
|
// foo = push_a_missing_edge(edges, pts[a], pts[b]);
|
||||||
|
foo = push_an_edge(edges, pts[a], pts[b]);
|
||||||
if (foo) {
|
if (foo) {
|
||||||
fprintf(stderr, "%s: disaster #%d line %d\n",
|
fprintf(stderr, "%s: disaster #%d line %d\n",
|
||||||
__func__, foo, linenumber);
|
__func__, foo, linenumber);
|
||||||
@ -162,7 +163,7 @@ if (dropped) {
|
|||||||
// exit(1);
|
// exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if DEBUG_LEVEL
|
#if DEBUG_LEVEL > 1
|
||||||
fprintf(stderr, "<<< %s\n", __func__);
|
fprintf(stderr, "<<< %s\n", __func__);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -198,14 +199,14 @@ if (NULL==(fpin=fopen(infname, "r"))) {
|
|||||||
}
|
}
|
||||||
linenumber = 0;
|
linenumber = 0;
|
||||||
|
|
||||||
bublist = alloc_bubulles(infname, 600000, 0);
|
bublist = alloc_bubulles(infname, 800000, 0);
|
||||||
if (NULL==bublist) {
|
if (NULL==bublist) {
|
||||||
fprintf(stderr, "in %s, no mem for bubls, aborting...\n", __func__);
|
fprintf(stderr, "in %s, no mem for bubls, aborting...\n", __func__);
|
||||||
abort();
|
abort();
|
||||||
}
|
}
|
||||||
if (verbosity > 1) print_bublist_desc(bublist, 0);
|
if (verbosity > 1) print_bublist_desc(bublist, 0);
|
||||||
|
|
||||||
edges = alloc_edgelist("krkrkr", 2200000, 0);
|
edges = alloc_edgelist("krkrkr", 3000000, 0);
|
||||||
if (NULL==edges) {
|
if (NULL==edges) {
|
||||||
fprintf(stderr, "no mem for edges in %s, aborting...\n", __func__);
|
fprintf(stderr, "no mem for edges in %s, aborting...\n", __func__);
|
||||||
abort();
|
abort();
|
||||||
@ -268,7 +269,7 @@ while(NULL!=(cptr=fgets(line, LINE_SZ, fpin))) {
|
|||||||
/* experimental code here */
|
/* experimental code here */
|
||||||
foo = parse_face(cptr);
|
foo = parse_face(cptr);
|
||||||
if (foo) {
|
if (foo) {
|
||||||
fprintf(stderr, "line %d '%s' parse face -> %d\n",
|
fprintf(stderr, "line %d '%s' parseface -> %d\n",
|
||||||
linenumber, cptr, foo);
|
linenumber, cptr, foo);
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
@ -299,7 +300,7 @@ while(NULL!=(cptr=fgets(line, LINE_SZ, fpin))) {
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
fprintf(stderr, "token %s -> %d ?\n", token, tokenid);
|
fprintf(stderr, "W: token %s -> %d ?\n", token, tokenid);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user