Revision: 55123
          http://brlcad.svn.sourceforge.net/brlcad/?rev=55123&view=rev
Author:   carlmoore
Date:     2013-04-11 19:31:58 +0000 (Thu, 11 Apr 2013)
Log Message:
-----------
Provide 'Usage:'; arrange explanations in the order the options appear in Usage 
line; add comment that -h and -? are not needed ('default' takes care of them)

Modified Paths:
--------------
    brlcad/trunk/src/conv/stl/stl-g.c

Modified: brlcad/trunk/src/conv/stl/stl-g.c
===================================================================
--- brlcad/trunk/src/conv/stl/stl-g.c   2013-04-11 15:50:28 UTC (rev 55122)
+++ brlcad/trunk/src/conv/stl/stl-g.c   2013-04-11 19:31:58 UTC (rev 55123)
@@ -72,17 +72,17 @@
 static void
 usage(const char *argv0)
 {
-    bu_log("%s [-db] [-t tolerance] [-N forced_name] [-i initial_ident] [-I 
constant_ident] [-m material_code] [-c units_str] [-x rt_debug_flag] input.stl 
output.g\n", argv0);
+    bu_log("Usage: %s [-db] [-t tolerance] [-N forced_name] [-i initial_ident] 
[-I constant_ident] [-m material_code] [-c units_str] [-x rt_debug_flag] 
input.stl output.g\n", argv0);
     bu_log("   where input.stl is a STereoLithography file\n");
     bu_log("   and output.g is the name of a BRL-CAD database file to receive 
the conversion.\n");
+    bu_log("   The -d option prints additional debugging information.\n");
     bu_log("   The -b option specifies that the input file is in the binary 
STL format (default is ASCII). \n");
-    bu_log("   The -c option specifies the units used in the STL file 
(units_str may be \"in\", \"ft\", ... default is \"mm\"\n");
+    bu_log("   The -t option specifies the minimum distance between two 
distinct vertices (mm).\n");
     bu_log("   The -N option specifies a name to use for the object.\n");
-    bu_log("   The -d option prints additional debugging information.\n");
     bu_log("   The -i option sets the initial region ident number (default is 
1000).\n");
     bu_log("   The -I option sets the ident number that will be assigned to 
all regions (conflicts with -i).\n");
     bu_log("   The -m option sets the integer material code for all the parts 
(default is 1).\n");
-    bu_log("   The -t option specifies the minimum distance between two 
distinct vertices (mm).\n");
+    bu_log("   The -c option specifies the units used in the STL file 
(units_str may be \"in\", \"ft\", ... default is \"mm\"\n");
     bu_log("   The -x option specifies an RT debug flags (see raytrace.h).\n");
 }
 
@@ -584,6 +584,7 @@
     }
 
     /* Get command line arguments. */
+    /* Don't need to account for -h and -? ("default" takes care of them).  */
     while ((c = bu_getopt(argc, argv, "bt:i:I:m:dx:N:c:")) != -1) {
        double tmp;
 

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


------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to