diff --git a/cameo/stl.c b/cameo/stl.c index d89fa01..ef56445 100644 --- a/cameo/stl.c +++ b/cameo/stl.c @@ -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); }