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

janehu at mcs.anl.gov janehu at mcs.anl.gov
Tue Aug 28 17:40:49 CDT 2012


Author: janehu
Date: 2012-08-28 17:40:49 -0500 (Tue, 28 Aug 2012)
New Revision: 5710

Modified:
   cgm/trunk/geom/OCC/OCCBody.cpp
Log:
Updated for special case in mcnp2cad when a 2-lump body unite with others and becomes a single lump body. Passed cgm make check.

Modified: cgm/trunk/geom/OCC/OCCBody.cpp
===================================================================
--- cgm/trunk/geom/OCC/OCCBody.cpp	2012-08-28 17:50:43 UTC (rev 5709)
+++ cgm/trunk/geom/OCC/OCCBody.cpp	2012-08-28 22:40:49 UTC (rev 5710)
@@ -608,7 +608,7 @@
   CubitBoolean updated = CUBIT_FALSE;	
   if(!old_shape.IsNull() && old_shape.ShapeType() == TopAbs_COMPOUND && 
      !new_shape.IsNull() && new_shape.ShapeType() == TopAbs_COMPOUND &&
-     !old_shape.IsSame(new_shape) && M.Extent() == M_new.Extent())
+     !old_shape.IsSame(new_shape) )
   {
     //By updating underling solids, shells etc., the old_shape will get changed.
     //trying to make sure the the number of each entity in the old and new 



More information about the cgma-dev mailing list