linux fixes for old openscad

This commit is contained in:
Trammell Hudson 2015-02-15 12:48:25 -05:00
parent cb945a18e0
commit 1af2394b8e

View File

@ -79,7 +79,7 @@ main(void)
"points=[\n" "points=[\n"
"[%f,%f,%f],[%f,%f,%f],[%f,%f,%f],\n" "[%f,%f,%f],[%f,%f,%f],[%f,%f,%f],\n"
"[%f,%f,%f],[%f,%f,%f],[%f,%f,%f],\n" "[%f,%f,%f],[%f,%f,%f],[%f,%f,%f],\n"
"], faces = [" "], %s = ["
" [0,1,2], [3,5,4]," " [0,1,2], [3,5,4],"
" [0,2,3], [2,5,3]," " [0,2,3], [2,5,3],"
" [0,3,4], [0,4,1]," " [0,3,4], [0,4,1],"
@ -90,14 +90,19 @@ main(void)
v2.p[0], v2.p[1], v2.p[2], v2.p[0], v2.p[1], v2.p[2],
v3.p[0], v3.p[1], v3.p[2], v3.p[0], v3.p[1], v3.p[2],
v4.p[0], v4.p[1], v4.p[2], v4.p[0], v4.p[1], v4.p[2],
v5.p[0], v5.p[1], v5.p[2] v5.p[0], v5.p[1], v5.p[2],
#ifdef __linux__
"triangles"
#else
"faces"
#endif
); );
//break; // only do one right now //break; // only do one right now
} }
printf("}\n"); printf("}\n");
//if (i == 0) break; // only do one right now if (i == 1) break; // only do one right now
} }
return 0; return 0;