[MOAB-dev] r2207 - MOAB/trunk/tools/iMesh
kraftche at mcs.anl.gov
kraftche at mcs.anl.gov
Tue Nov 4 09:18:35 CST 2008
Author: kraftche
Date: 2008-11-04 09:18:34 -0600 (Tue, 04 Nov 2008)
New Revision: 2207
Modified:
MOAB/trunk/tools/iMesh/iMesh_MOAB.cpp
Log:
add special case for root set to isEntArrContained
Modified: MOAB/trunk/tools/iMesh/iMesh_MOAB.cpp
===================================================================
--- MOAB/trunk/tools/iMesh/iMesh_MOAB.cpp 2008-11-03 22:15:53 UTC (rev 2206)
+++ MOAB/trunk/tools/iMesh/iMesh_MOAB.cpp 2008-11-04 15:18:34 UTC (rev 2207)
@@ -1317,10 +1317,15 @@
(int)num_entity_handles, int, iBase_MEMORY_ALLOCATION_FAILED);
*is_contained_size = num_entity_handles;
- for (int i = 0; i < num_entity_handles; ++i) {
- MBEntityHandle h = ENTITY_HANDLE(entity_handles[i]);
- (*is_contained)[i] = MBI->contains_entities( set, &h, 1 );
+ if (containing_set) {
+ for (int i = 0; i < num_entity_handles; ++i) {
+ MBEntityHandle h = ENTITY_HANDLE(entity_handles[i]);
+ (*is_contained)[i] = MBI->contains_entities( set, &h, 1 );
+ }
}
+ else {
+ std::fill( *is_contained, (*is_contained)+num_entity_handles, 1 );
+ }
RETURN(iBase_SUCCESS);
}
More information about the moab-dev
mailing list