Revision: 56844
          http://sourceforge.net/p/brlcad/code/56844
Author:   tbrowder2
Date:     2013-08-14 20:25:46 +0000 (Wed, 14 Aug 2013)
Log Message:
-----------
moved vars out of global scope; added comments for testing auto-man-page process

Modified Paths:
--------------
    brlcad/trunk/src/util/fix_polysolids.c

Modified: brlcad/trunk/src/util/fix_polysolids.c
===================================================================
--- brlcad/trunk/src/util/fix_polysolids.c      2013-08-14 19:53:29 UTC (rev 
56843)
+++ brlcad/trunk/src/util/fix_polysolids.c      2013-08-14 20:25:46 UTC (rev 
56844)
@@ -23,6 +23,26 @@
  *
  */
 
+/* === for auto-man-page use: === */
+/* purpose: fix polysolids with bad normals
+ *
+ * description:
+ *
+ * Manually edited or auto-generated polysolids can have bad normals.
+ * This program attempts to correct those.
+ *
+ *
+ * opt: -v turn on verbose mode
+ *
+ * opt: -x [librt debug flag] turn on librt debugging
+ *          (option may used more than once)
+ *
+ * opt: -X [nmg debug flag] turn on nmg debugging
+ *         (option may used more than once)
+ *
+ *
+ */
+
 #include "common.h"
 
 #include <bio.h>
@@ -37,27 +57,26 @@
 #include "bn.h"
 #include "bu.h"
 
-static const char usage[] =
-  "Usage: %s [-v] [-xX DEBUG_FLAG] < brlcad_db.g > new_db.g\n"
-  "\n"
-  "Options:\n"
-  "  v - verbose\n"
-  "  x - librt debug flag\n"
-  "  X - nmg debug flag\n"
-  ;
-
-static char optstring[] = "vx:X:h?";
-
 /*
  * M A I N
  */
 int
 main(int argc, char *argv[])
 {
+
+    const char usage[] =
+      "Usage: %s [-v] [-x LDEBUG_FLAG] [-X NDEBUG_FLAG] < old_db.g > 
new_db.g\n"
+      "\n"
+      "Options:\n"
+      "  v - verbose\n"
+      "  x - librt debug flag\n"
+      "  X - nmg debug flag\n"
+      ;
+    const char optstring[] = "vx:X:h?";
+
     static int verbose;
     static struct bn_tol tol;
 
-
     union record rec;
     int c;
     struct model *m;
@@ -73,7 +92,7 @@
     tol.perp = 1e-6;
     tol.para = 1 - tol.perp;
 
-    if ( argc == 1 && isatty(fileno(stdin)) && isatty(fileno(stdout)) )
+    if (argc == 1 && isatty(fileno(stdin)) && isatty(fileno(stdout)))
        bu_exit(1, usage, argv[0]);
 
     BU_LIST_INIT(&RTG.rtg_vlfree);     /* for vlist macros */

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to