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

jiangtao_ma at yahoo.com jiangtao_ma at yahoo.com
Fri Jan 21 11:41:51 CST 2011


Author: janehu
Date: 2011-01-21 11:41:51 -0600 (Fri, 21 Jan 2011)
New Revision: 4459

Modified:
   cgm/trunk/geom/OCC/OCCQueryEngine.cpp
Log:
Give out an warning regarding sliver surfaces and curves instead of not generating such surfaces or curves to make model water-tight.

Modified: cgm/trunk/geom/OCC/OCCQueryEngine.cpp
===================================================================
--- cgm/trunk/geom/OCC/OCCQueryEngine.cpp	2011-01-21 14:54:12 UTC (rev 4458)
+++ cgm/trunk/geom/OCC/OCCQueryEngine.cpp	2011-01-21 17:41:51 UTC (rev 4459)
@@ -1968,7 +1968,7 @@
   double area = myProps.Mass();
   double tol = get_sme_resabs_tolerance();
   if(area < tol * tol)
-    return (Surface*) NULL;
+    PRINT_WARING("Generated a sliver surface. \n");
 
   if (!OCCMap->IsBound(aShape))
   {
@@ -2169,7 +2169,7 @@
   BRepGProp::LinearProperties(aShape, myProps);
   double length =  myProps.Mass();
   if(length < get_sme_resabs_tolerance())
-    return (Curve*) NULL;
+    PRINT_WARNING("Generated a sliver curve. \n");
 
   if (!OCCMap->IsBound(aShape)) 
     {































More information about the cgma-dev mailing list