Browse Source

next milestone : normal vectors

tonton th 1 month ago
parent
commit
407818cb34
1 changed files with 4 additions and 3 deletions
  1. 4
    3
      importobj.c

+ 4
- 3
importobj.c View File

@@ -57,16 +57,15 @@ while(cptr=fgets(line, LINE_SZ, fpin)) {
57 57
 	foo = sscanf(cptr, "%f", &z);
58 58
 
59 59
 	memset(&bubulle, 0, sizeof(Bubulle));
60
-	niceprint_bubulle(&bubulle, 0);
61 60
 
62 61
 	bubulle.p.x = x;
63 62
 	bubulle.p.y = y;
64 63
 	bubulle.p.z = z;
65
-	niceprint_bubulle(&bubulle, 0);
64
+	if (verbosity > 1) niceprint_bubulle(&bubulle, 0);
66 65
 
67 66
 	foo = push_bubulle(bublist, &bubulle);
68 67
 	if (foo) {
69
-		fprintf(stderr, "err %d on push\n", foo);
68
+		fprintf(stderr, "%s: err %d on push\n", __func__, foo);
70 69
 		break;
71 70
 		}
72 71
 	nbre++;
@@ -77,6 +76,8 @@ if(verbosity) {
77 76
 	fprintf(stderr, "%s : %d vertices loaded\n", __func__, nbre);
78 77
 	}
79 78
 
79
+bubulles_to_data("xyz", NULL, bublist, 0);
80
+
80 81
 return 0;
81 82
 }
82 83
 

Loading…
Cancel
Save