[MOAB-dev] r4441 - MOAB/trunk/itaps/imesh

iulian at mcs.anl.gov iulian at mcs.anl.gov
Fri Jan 14 12:56:39 CST 2011


Author: iulian
Date: 2011-01-14 12:56:34 -0600 (Fri, 14 Jan 2011)
New Revision: 4441

Modified:
   MOAB/trunk/itaps/imesh/iMesh_MOAB.cpp
Log:
incorrect casting when internal entities are created


Modified: MOAB/trunk/itaps/imesh/iMesh_MOAB.cpp
===================================================================
--- MOAB/trunk/itaps/imesh/iMesh_MOAB.cpp	2011-01-14 18:37:50 UTC (rev 4440)
+++ MOAB/trunk/itaps/imesh/iMesh_MOAB.cpp	2011-01-14 18:56:34 UTC (rev 4441)
@@ -21,7 +21,7 @@
 #include <stdio.h>
 #define MIN(a,b) (a < b ? a : b)
 
-ErrorCode create_int_ents(Interface *instance,
+ErrorCode create_int_ents(MBiMesh * mbimesh,
                             Range &from_ents,
                             const EntityHandle* in_set = 0);
 #define HANDLE_ARRAY_PTR(array) reinterpret_cast<EntityHandle*>(array)
@@ -299,7 +299,7 @@
       result = MBI->get_entities_by_handle(0, set_ents);
       CHKERR(result,"");
       set_ents = subtract( set_ents, orig_ents );
-      result = create_int_ents(MBI, set_ents, file_set);
+      result = create_int_ents(MBimesh, set_ents, file_set);
       CHKERR(result,"");
     }
 
@@ -1423,7 +1423,7 @@
       std::copy(HANDLE_ARRAY_PTR(*new_entity_handles), 
                 HANDLE_ARRAY_PTR(*new_entity_handles)+*new_entity_handles_size,
                 range_inserter(set_ents));
-      result = create_int_ents(MBI, set_ents);
+      result = create_int_ents(MBimesh, set_ents);
       CHKERR(result,"");
     }
 
@@ -1841,7 +1841,7 @@
     if (MB_SUCCESS == result && (MBimesh->AdjTable[5] || MBimesh->AdjTable[10])) {
       Range set_ents;
       set_ents.insert( tmp_ent );
-      create_int_ents(MBI, set_ents);
+      create_int_ents(MBimesh, set_ents);
     }
   }
 
@@ -2882,15 +2882,16 @@
   return result;
 }
 
-ErrorCode create_int_ents(Interface *instance,
+ErrorCode create_int_ents(MBiMesh* mbimesh,
                             Range &from_ents,
                             const EntityHandle* in_set) 
 {
-  MBiMesh* mbimesh = dynamic_cast<MBiMesh*>(instance);
+  //MBiMesh* mbimesh = dynamic_cast<MBiMesh*>(instance);


More information about the moab-dev mailing list