From ae9ad0348c20bad61b8a66dad5a042f7b4886650 Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Mon, 14 Oct 2013 11:12:32 -0300 Subject: [PATCH] cameo/stl.c (stl): update for poly2d API change --- cameo/stl.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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); }