1
0
mirror of git://projects.qi-hardware.com/cae-tools.git synced 2024-12-23 03:36:27 +02:00

cameo/stl.c (stl): update for poly2d API change

This commit is contained in:
Werner Almesberger 2013-10-14 11:12:32 -03:00
parent 626dbe52e1
commit ae9ad0348c

View File

@ -28,11 +28,11 @@ void stl(const char *name, const struct path *paths)
polys = paths_to_polys(paths);
faces = f2d_tri(polys);
for (f = faces; f; f = f->next)
printf("%f/%f %f/%f %f/%f (%p %p %p)\n",
f->v[0]->x, f->v[0]->y,
f->v[1]->x, f->v[1]->y,
f->v[2]->x, f->v[2]->y,
f->v[0], f->v[1], f->v[2]);
printf("%f/%f %f/%f %f/%f (%d %d %d)\n",
f->x[0], f->y[0],
f->x[1], f->y[1],
f->x[2], f->y[2],
f->side[0], f->side[1], f->side[2]);
p2d_free_all(polys);
f2d_free_all(faces);
}