[MOAB-dev] r3360 - MOAB/trunk/tools/iMesh

kraftche at cae.wisc.edu kraftche at cae.wisc.edu
Tue Nov 17 11:11:48 CST 2009


Author: kraftche
Date: 2009-11-17 11:11:48 -0600 (Tue, 17 Nov 2009)
New Revision: 3360

Modified:
   MOAB/trunk/tools/iMesh/iMesh_MOAB.cpp
Log:
fix bug: createEnt should create lower-dim entities if createEntArr would have

Modified: MOAB/trunk/tools/iMesh/iMesh_MOAB.cpp
===================================================================
--- MOAB/trunk/tools/iMesh/iMesh_MOAB.cpp	2009-11-17 17:07:43 UTC (rev 3359)
+++ MOAB/trunk/tools/iMesh/iMesh_MOAB.cpp	2009-11-17 17:11:48 UTC (rev 3360)
@@ -1969,6 +1969,12 @@
     *new_entity_handle = reinterpret_cast<iBase_EntityHandle>(tmp_ent);
 
     *err = *status;
+
+    if (MB_SUCCESS == result && (MBimesh->AdjTable[5] || MBimesh->AdjTable[10])) {
+      MBRange set_ents;
+      set_ents.insert( tmp_ent );
+      create_int_ents(MBI, set_ents);
+    }
   }
 
   void iMesh_deleteEnt(iMesh_Instance instance,



More information about the moab-dev mailing list