[cgma-dev] r5098 - cgm/trunk/geom/OCC

jiangtao_ma at yahoo.com jiangtao_ma at yahoo.com
Fri Aug 12 12:25:22 CDT 2011


Author: janehu
Date: 2011-08-12 12:25:21 -0500 (Fri, 12 Aug 2011)
New Revision: 5098

Modified:
   cgm/trunk/geom/OCC/OCCQueryEngine.cpp
Log:
Fixed the tolerance problem reported from itaps/test_edge_orient using ilc_problem_surf8.stp file.

Modified: cgm/trunk/geom/OCC/OCCQueryEngine.cpp
===================================================================
--- cgm/trunk/geom/OCC/OCCQueryEngine.cpp	2011-08-12 14:11:18 UTC (rev 5097)
+++ cgm/trunk/geom/OCC/OCCQueryEngine.cpp	2011-08-12 17:25:21 UTC (rev 5098)
@@ -2341,7 +2341,9 @@
     CubitVector v1, v2;
     coedge->curve()->position_from_u(d1, v1);
     next_coedge->curve()->position_from_u(d2, v2);
-    if(v1.distance_between(v2) > get_sme_resabs_tolerance())
+    //get_sme_resabs_tolerance() = 1*10^-7, while the distance difference
+    //we consider would be 1*10^-6.
+    if(v1.distance_between(v2) > get_sme_resabs_tolerance()*10)
     {
       //Reverse all coedges' senses.
       for (int i = 0; i < coedges_new.size(); i ++)






































More information about the cgma-dev mailing list