Revision: 55176
          http://brlcad.svn.sourceforge.net/brlcad/?rev=55176&view=rev
Author:   carlmoore
Date:     2013-04-17 19:25:02 +0000 (Wed, 17 Apr 2013)
Log Message:
-----------
add DEFAULT_FILENAME to warn user that the file is indeed to be output, and 
also add 'arguments ignored' if any arguments are detected

Modified Paths:
--------------
    brlcad/trunk/src/proc-db/csgbrep.cpp

Modified: brlcad/trunk/src/proc-db/csgbrep.cpp
===================================================================
--- brlcad/trunk/src/proc-db/csgbrep.cpp        2013-04-17 19:14:49 UTC (rev 
55175)
+++ brlcad/trunk/src/proc-db/csgbrep.cpp        2013-04-17 19:25:02 UTC (rev 
55176)
@@ -24,6 +24,7 @@
 #include "rtgeom.h"
 #include "wdb.h"
 
+#define DEFAULT_FILENAME "csgbrep.g"
 
 /* without OBJ_BREP, this entire procedural example is disabled */
 #ifdef OBJ_BREP
@@ -95,11 +96,14 @@
     tol.para = 1.0 - tol.perp;
 
     if (argc > 1)
+       bu_log("Usage: %s (arguments ignored)\n", argv[0]);
+    else
        bu_log("Usage: %s\n", argv[0]);
+    bu_log("       Program continues running (is to write 
%s):\n",DEFAULT_FILENAME);
 
     ON::Begin();
 
-    outfp = wdb_fopen("csgbrep.g");
+    outfp = wdb_fopen(DEFAULT_FILENAME);
     const char* id_name = "CSG B-Rep Examples";
     mk_id(outfp, id_name);
 

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