Revision: 56778
          http://sourceforge.net/p/brlcad/code/56778
Author:   phoenixyjll
Date:     2013-08-13 13:15:33 +0000 (Tue, 13 Aug 2013)
Log Message:
-----------
DEBUG is defined in brlcad_config.h. Use DEBUG_BREP_BOOLEAN instead.

Modified Paths:
--------------
    brlcad/trunk/src/libbrep/boolean.cpp

Modified: brlcad/trunk/src/libbrep/boolean.cpp
===================================================================
--- brlcad/trunk/src/libbrep/boolean.cpp        2013-08-13 13:10:16 UTC (rev 
56777)
+++ brlcad/trunk/src/libbrep/boolean.cpp        2013-08-13 13:15:33 UTC (rev 
56778)
@@ -37,7 +37,7 @@
 #include "brep.h"
 #include "raytrace.h"
 
-#define DEBUG 1
+#define DEBUG_BREP_BOOLEAN 1
 #define INTERSECTION_TOL 0.001
 
 
@@ -266,7 +266,7 @@
        if (tmp[i] != NULL)
            out.Append(tmp[i]);
 
-    if (DEBUG)
+    if (DEBUG_BREP_BOOLEAN)
        bu_log("link_curves(): %d curves remaining.\n", out.Count());
 }
 
@@ -527,7 +527,7 @@
     }
 
     bu_log("Split to %d faces.\n", out.Count());
-    if (DEBUG) {
+    if (DEBUG_BREP_BOOLEAN) {
        for (int i = 0; i < out.Count(); i++) {
            bu_log("Trimmed Face %d:\n", i);
            bu_log("outerloop:\n");
@@ -570,7 +570,7 @@
        ON_Curve* c3d = NULL;
        // First, try the ON_Surface::Pushup() method.
        // If Pushup() does not succeed, use sampling method.
-       c3d = face.SurfaceOf()->Pushup(*(loop[k]), 1e-3);
+       c3d = face.SurfaceOf()->Pushup(*(loop[k]), INTERSECTION_TOL);
        if (c3d) {
            brep->AddEdgeCurve(c3d);
        } else {

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