Revision: 74290
          http://sourceforge.net/p/brlcad/code/74290
Author:   starseeker
Date:     2019-11-04 21:28:37 +0000 (Mon, 04 Nov 2019)
Log Message:
-----------
one of the tests in RTree.h at line 1546 changes its answer after a tree 
rebuild, which is consistent with observed results but doesn't really hit as to 
why...

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

Modified: brlcad/trunk/src/libbrep/cdt_ovlps.cpp
===================================================================
--- brlcad/trunk/src/libbrep/cdt_ovlps.cpp      2019-11-04 20:58:00 UTC (rev 
74289)
+++ brlcad/trunk/src/libbrep/cdt_ovlps.cpp      2019-11-04 21:28:37 UTC (rev 
74290)
@@ -323,6 +323,7 @@
        }
        if (search_verts.find(ov) == search_verts.end()) {
            std::cout << "Error: vert in tree, but search couldn't find: " << 
v_ind << "\n";
+           vert_search(ov->bb);
            return false;
        }
        ++tree_it;
@@ -559,6 +560,13 @@
     if (bb) {
        overts[f3ind]->bb = *bb;
     }
+
+    if (validate_vtree()) {
+       save_vtree("last_valid.vtree");
+    } else {
+       save_vtree("invalid.vtree");
+    }
+
 #if 1
     double fMin[3];
     fMin[0] = overts[f3ind]->bb.Min().x;
@@ -570,7 +578,11 @@
     fMax[2] = overts[f3ind]->bb.Max().z;
     vtree.Insert(fMin, fMax, f3ind);
 
-    validate_vtree();
+    if (validate_vtree()) {
+       save_vtree("last_valid.vtree");
+    } else {
+       save_vtree("invalid.vtree");
+    }
 #endif
 #if 0
     // TODO Ew.  Shouldn't (I don't think?) have to do a full recreation of the

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



_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to