next milestone : normal vectors
This commit is contained in:
parent
233c1d5b9e
commit
407818cb34
@ -57,16 +57,15 @@ while(cptr=fgets(line, LINE_SZ, fpin)) {
|
|||||||
foo = sscanf(cptr, "%f", &z);
|
foo = sscanf(cptr, "%f", &z);
|
||||||
|
|
||||||
memset(&bubulle, 0, sizeof(Bubulle));
|
memset(&bubulle, 0, sizeof(Bubulle));
|
||||||
niceprint_bubulle(&bubulle, 0);
|
|
||||||
|
|
||||||
bubulle.p.x = x;
|
bubulle.p.x = x;
|
||||||
bubulle.p.y = y;
|
bubulle.p.y = y;
|
||||||
bubulle.p.z = z;
|
bubulle.p.z = z;
|
||||||
niceprint_bubulle(&bubulle, 0);
|
if (verbosity > 1) niceprint_bubulle(&bubulle, 0);
|
||||||
|
|
||||||
foo = push_bubulle(bublist, &bubulle);
|
foo = push_bubulle(bublist, &bubulle);
|
||||||
if (foo) {
|
if (foo) {
|
||||||
fprintf(stderr, "err %d on push\n", foo);
|
fprintf(stderr, "%s: err %d on push\n", __func__, foo);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
nbre++;
|
nbre++;
|
||||||
@ -77,6 +76,8 @@ if(verbosity) {
|
|||||||
fprintf(stderr, "%s : %d vertices loaded\n", __func__, nbre);
|
fprintf(stderr, "%s : %d vertices loaded\n", __func__, nbre);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bubulles_to_data("xyz", NULL, bublist, 0);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user