From db6e9c82657040a8a93ce68677f5b5767eedf325 Mon Sep 17 00:00:00 2001 From: "Gregory J. Ward" Date: Sat, 14 Nov 2020 00:29:51 +0000 Subject: [PATCH] feat(gensurf): added surface name output to OBJ --- src/gen/gensurf.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/gen/gensurf.c b/src/gen/gensurf.c index 3086ce9c6..a564f3c58 100644 --- a/src/gen/gensurf.c +++ b/src/gen/gensurf.c @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: gensurf.c,v 2.27 2020/06/14 03:54:23 greg Exp $"; +static const char RCSid[] = "$Id: gensurf.c,v 2.28 2020/11/14 00:29:51 greg Exp $"; #endif /* * gensurf.c - program to generate functional surfaces @@ -78,9 +78,7 @@ int norminterp(FVECT resmat[4], POINT *p0, POINT *p1, POINT *p2, POINT *p3); int -main(argc, argv) -int argc; -char *argv[]; +main(int argc, char *argv[]) { POINT *row0, *row1, *row2, *rp; int i, j, m, n; @@ -160,6 +158,7 @@ char *argv[]; compnorms(row0, row1, row2, n); if (objout) { printf("\nusemtl %s\n\n", modname); + printf("o %s\n\n", surfname); putobjrow(row1, n); } /* for each row */