Revision: 73154
          http://sourceforge.net/p/brlcad/code/73154
Author:   starseeker
Date:     2019-05-23 13:26:55 +0000 (Thu, 23 May 2019)
Log Message:
-----------
Explain why we're calling ShrinkSurfaces

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

Modified: brlcad/trunk/src/libbrep/cdt.cpp
===================================================================
--- brlcad/trunk/src/libbrep/cdt.cpp    2019-05-23 13:23:09 UTC (rev 73153)
+++ brlcad/trunk/src/libbrep/cdt.cpp    2019-05-23 13:26:55 UTC (rev 73154)
@@ -360,8 +360,6 @@
     }
     ON_Brep* brep = s_cdt->brep;
 
-    brep->ShrinkSurfaces();
-
     // Check for any conditions that are show-stoppers
     ON_wString wonstr;
     ON_TextLog vout(wonstr);
@@ -379,6 +377,13 @@
         }
     }
 
+    // Have observed at least one case where a small face on a large surface
+    // resulted in a valid 2D triangulation that produced a self-intersecting
+    // 3D mesh.  Attempt to minimize situations where 2D and 3D distances get
+    // out of sync by shrinking the surfaces down to the active area
+    brep->ShrinkSurfaces();
+
+
     // Reparameterize the face's surface and transform the "u" and "v"
     // coordinates of all the face's parameter space trimming curves to
     // minimize distortion in the map from parameter space to 3d..

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