Revision: 73076
          http://sourceforge.net/p/brlcad/code/73076
Author:   starseeker
Date:     2019-05-16 20:40:25 +0000 (Thu, 16 May 2019)
Log Message:
-----------
The problem faces in NIST2 correspond to instances of normals in the opposite 
direction from the norm_mid.  This looks like it is probably due to the 
singular trims, which means we need to bookkeep this somehow...

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

Modified: brlcad/trunk/src/libbrep/cdt.cpp
===================================================================
--- brlcad/trunk/src/libbrep/cdt.cpp    2019-05-16 18:06:52 UTC (rev 73075)
+++ brlcad/trunk/src/libbrep/cdt.cpp    2019-05-16 20:40:25 UTC (rev 73076)
@@ -1021,8 +1021,12 @@
        double dist = mid.DistanceTo(line1.ClosestPointTo(mid));
        V_MAX(dist, mid.DistanceTo(line2.ClosestPointTo(mid)));
 
+       for (int i = 0; i < 4; i++) {
+           if (ON_DotProduct(norm[i], norm_mid) < 0) {
+               bu_log("norm[%d] backwards\n", i);
+           }
+       }
 
-
        if (dist < min_dist + ON_ZERO_TOLERANCE) {
            return;
        }

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