From 9560167b20042f62f7b8a543826fd9d7d46f209b Mon Sep 17 00:00:00 2001 From: "Gregory J. Ward" Date: Fri, 9 Apr 2021 18:52:57 +0000 Subject: [PATCH] perf: removed unnecessary call for non-round edges and .OBJ output --- src/gen/genbox.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/gen/genbox.c b/src/gen/genbox.c index a90c5023..b00001c3 100644 --- a/src/gen/genbox.c +++ b/src/gen/genbox.c @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: genbox.c,v 2.11 2021/04/09 01:48:20 greg Exp $"; +static const char RCSid[] = "$Id: genbox.c,v 2.12 2021/04/09 18:52:57 greg Exp $"; #endif /* * genbox.c - generate a parallelepiped. @@ -398,7 +398,8 @@ main(int argc, char *argv[]) } if (obj != NULL) { /* need to write output? */ if (objout) { - coalesceVertices(obj, 2.*FTINY); + if (rounde) /* joins corners to edges */ + coalesceVertices(obj, 2.*FTINY); if (toOBJ(obj, stdout) <= 0) return(1); } else if (toRadiance(obj, stdout, 0, 0) <= 0)