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

jvporter at wisc.edu jvporter at wisc.edu
Wed Nov 17 17:56:54 CST 2010


Author: jvporter
Date: 2010-11-17 17:56:53 -0600 (Wed, 17 Nov 2010)
New Revision: 4274

Modified:
   MOAB/trunk/itaps/imesh/iMesh_MOAB.cpp
Log:
Ensure that querying for iMesh_SEPTAHEDRON returns 0 results instead of an
error


Modified: MOAB/trunk/itaps/imesh/iMesh_MOAB.cpp
===================================================================
--- MOAB/trunk/itaps/imesh/iMesh_MOAB.cpp	2010-11-17 19:45:27 UTC (rev 4273)
+++ MOAB/trunk/itaps/imesh/iMesh_MOAB.cpp	2010-11-17 23:56:53 UTC (rev 4274)
@@ -2358,6 +2358,7 @@
       type = mb_topology_table[entity_topology];
       use_top = true;
       if (entity_type != iBase_ALL_TYPES && 
+          entity_topology != iMesh_SEPTAHEDRON &&
           entity_type != CN::Dimension(type)) {
         ERROR(iBase_BAD_TYPE_AND_TOPO,
               "type and topology are inconsistant");
@@ -2500,6 +2501,10 @@
         *num_topo -= num_sets;
       }
     }
+    else if (iMesh_SEPTAHEDRON == entity_topology) {
+      result = MB_SUCCESS;
+      *num_topo = 0;
+    }
     else {
       result = MBI->get_number_entities_by_type(ENTITY_HANDLE(entity_set_handle),
                                          mb_topology_table[entity_topology], 






























More information about the moab-dev mailing list