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

jiangtao_ma at yahoo.com jiangtao_ma at yahoo.com
Thu May 19 13:12:17 CDT 2011


Author: janehu
Date: 2011-05-19 13:12:17 -0500 (Thu, 19 May 2011)
New Revision: 4849

Modified:
   cgm/trunk/geom/OCC/OCCModifyEngine.cpp
   cgm/trunk/geom/OCC/OCCShell.cpp
Log:
Bug fix for mcnp2cad box3 test.

Modified: cgm/trunk/geom/OCC/OCCModifyEngine.cpp
===================================================================
--- cgm/trunk/geom/OCC/OCCModifyEngine.cpp	2011-05-18 22:57:02 UTC (rev 4848)
+++ cgm/trunk/geom/OCC/OCCModifyEngine.cpp	2011-05-19 18:12:17 UTC (rev 4849)
@@ -2497,6 +2497,9 @@
 		    }
 		  else
 		    curve = OCCQueryEngine::instance()->populate_topology_bridge(from_edge);
+                  if(!curve)
+                    continue;
+
 		  OCCCurve* occ_curve = CAST_TO(curve, OCCCurve);
    
                   if(pt.IsEqual(pt2, TOL) && fabs(d2-d1)< TOL) //overlap

Modified: cgm/trunk/geom/OCC/OCCShell.cpp
===================================================================
--- cgm/trunk/geom/OCC/OCCShell.cpp	2011-05-18 22:57:02 UTC (rev 4848)
+++ cgm/trunk/geom/OCC/OCCShell.cpp	2011-05-19 18:12:17 UTC (rev 4849)
@@ -142,7 +142,7 @@
 { 
   if(mySheetSurface)
   {
-    parents.append(mySheetSurface->my_body());
+    parents.append(mySheetSurface->my_lump());
     return;
   }
 

























More information about the cgma-dev mailing list