Revision: 70704
          http://sourceforge.net/p/brlcad/code/70704
Author:   starseeker
Date:     2018-02-13 18:44:49 +0000 (Tue, 13 Feb 2018)
Log Message:
-----------
Not worth more work on debug/libdebug commands.

Modified Paths:
--------------
    brlcad/trunk/src/libanalyze/nirt.cxx
    brlcad/trunk/src/nirt/main.cxx

Modified: brlcad/trunk/src/libanalyze/nirt.cxx
===================================================================
--- brlcad/trunk/src/libanalyze/nirt.cxx        2018-02-13 15:53:00 UTC (rev 
70703)
+++ brlcad/trunk/src/libanalyze/nirt.cxx        2018-02-13 18:44:49 UTC (rev 
70704)
@@ -56,8 +56,7 @@
 #define NIRT_SILENT_YES      1
 #define NIRT_SILENT_NO       -1
 
-// TODO - I think these three debugging modes make sense only in the
-// front end application, but need to double check.
+// Used by front end applications, but library needs to store and report as 
well.
 #define NIRT_DEBUG_INTERACT  0x001
 #define NIRT_DEBUG_SCRIPTS   0x002
 #define NIRT_DEBUG_MAT       0x004

Modified: brlcad/trunk/src/nirt/main.cxx
===================================================================
--- brlcad/trunk/src/nirt/main.cxx      2018-02-13 15:53:00 UTC (rev 70703)
+++ brlcad/trunk/src/nirt/main.cxx      2018-02-13 18:44:49 UTC (rev 70704)
@@ -57,8 +57,6 @@
 #define RMAT_SAW_ORI    0x02
 #define RMAT_SAW_VR     0x02
 
-#define DEBUG_MAT        0x004
-
 size_t
 _list_formats(char ***names)
 {
@@ -452,7 +450,6 @@
     std::set<std::string>::iterator a_it;
     struct bu_vls iline = BU_VLS_INIT_ZERO;
     struct bu_vls nirt_debug = BU_VLS_INIT_ZERO;
-    unsigned int nirt_app_debug = 0;
     int overlap_claims = OVLP_RESOLVE;
     int backout = 0;
     int bot_mintie = 0;
@@ -636,23 +633,9 @@
     if (bu_vls_strlen(&nirt_debug) > 0) {
        struct bu_vls msg = BU_VLS_INIT_ZERO;
        struct bu_vls ncmd = BU_VLS_INIT_ZERO;
-
-       // Libanalyze
        bu_vls_sprintf(&ncmd, "debug %s", bu_vls_addr(&nirt_debug));
        (void)nirt_exec(ns, bu_vls_addr(&ncmd));
        bu_vls_free(&ncmd);
-
-       // App
-       long dflg = 0;
-       const char *arg = bu_vls_addr(&nirt_debug);
-       if (bu_opt_long_hex(&msg, 1, &arg, (void *)&dflg) == -1) {
-           bu_exit(EXIT_FAILURE, "Error parsing debug flags \"%s\": %s\n", 
bu_vls_addr(&nirt_debug), bu_vls_addr(&msg));
-       }
-       bu_vls_free(&msg);
-       if (dflg < 0) {
-           bu_exit(EXIT_FAILURE, "Debug flag value of \"%s\" is < 0\n", 
bu_vls_addr(&nirt_debug));
-       }
-       nirt_app_debug = (unsigned int)dflg;
     }
 
     /* Initialize the attribute list before we do the drawing, since
@@ -731,8 +714,7 @@
                }
                MAT_COPY(q, scan);
                quat_quat2mat(m, q);
-               if (nirt_app_debug & DEBUG_MAT)
-                   bn_mat_print("view matrix", m);
+               //bn_mat_print("view matrix", m);
                status |= RMAT_SAW_ORI;
            } else if (bu_strncmp(buf, "viewrot", 7) == 0) {
                if (sscanf(buf + 7,
@@ -744,8 +726,7 @@
                    bu_exit(1, "nirt: read_mat(): Failed to read viewrot\n");
                }
                MAT_COPY(m, scan);
-               if (nirt_app_debug & DEBUG_MAT)
-                   bn_mat_print("view matrix", m);
+               //bn_mat_print("view matrix", m);
                status |= RMAT_SAW_VR;
            }
        }

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


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
BRL-CAD Source Commits mailing list
brlcad-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to