Skip to content

Commit

Permalink
perf: removed unnecessary call for non-round edges and .OBJ output
Browse files Browse the repository at this point in the history
  • Loading branch information
Gregungory committed Apr 9, 2021
1 parent 3ee864c commit 9560167
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/gen/genbox.c
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 9560167

Please sign in to comment.