Revision: 73817
          http://sourceforge.net/p/brlcad/code/73817
Author:   starseeker
Date:     2019-09-03 16:55:53 +0000 (Tue, 03 Sep 2019)
Log Message:
-----------
Be a bit more aggressive in local searching, and consider newly created 
segments for splitting as well.

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

Modified: brlcad/trunk/src/libbrep/cdt2.cpp
===================================================================
--- brlcad/trunk/src/libbrep/cdt2.cpp   2019-09-03 16:44:06 UTC (rev 73816)
+++ brlcad/trunk/src/libbrep/cdt2.cpp   2019-09-03 16:55:53 UTC (rev 73817)
@@ -1250,8 +1250,8 @@
                ON_BoundingBox tbb(p2d1, p2d2);
                double tMin[2];
                double tMax[2];
-               double xbump = (fabs(tbb.Max().x - tbb.Min().x)) < 0.8*slen ? 
0.4*slen : ON_ZERO_TOLERANCE;
-               double ybump = (fabs(tbb.Max().y - tbb.Min().y)) < 0.8*slen ? 
0.4*slen : ON_ZERO_TOLERANCE;
+               double xbump = (fabs(tbb.Max().x - tbb.Min().x)) < slen ? 
0.8*slen : ON_ZERO_TOLERANCE;
+               double ybump = (fabs(tbb.Max().y - tbb.Min().y)) < slen ? 
0.8*slen : ON_ZERO_TOLERANCE;
                tMin[0] = tbb.Min().x - xbump;
                tMin[1] = tbb.Min().y - ybump;
                tMax[0] = tbb.Max().x + xbump;
@@ -1275,7 +1275,7 @@
                // If we need to split, do so
                std::set<cdt_mesh::bedge_seg_t *> esegs_split = 
split_edge_seg(s_cdt, b, 1);
                if (esegs_split.size()) {
-                   ns->insert(esegs_split.begin(), esegs_split.end());
+                   ws->insert(esegs_split.begin(), esegs_split.end());
                } else {
                    new_segs.insert(b);
                }

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