[MOAB-dev] r4237 - MOAB/trunk/itaps/imesh
jvporter at wisc.edu
jvporter at wisc.edu
Fri Oct 22 15:28:40 CDT 2010
Author: jvporter
Date: 2010-10-22 15:28:40 -0500 (Fri, 22 Oct 2010)
New Revision: 4237
Modified:
MOAB/trunk/itaps/imesh/iMesh_MOAB.cpp
Log:
The iMesh spec says entities aren't adjacent to themselves, so let's obey that.
Modified: MOAB/trunk/itaps/imesh/iMesh_MOAB.cpp
===================================================================
--- MOAB/trunk/itaps/imesh/iMesh_MOAB.cpp 2010-10-22 18:53:00 UTC (rev 4236)
+++ MOAB/trunk/itaps/imesh/iMesh_MOAB.cpp 2010-10-22 20:28:40 UTC (rev 4237)
@@ -643,6 +643,8 @@
if (iBase_VERTEX == entity_type_requested &&
TYPE_FROM_HANDLE(*entity_iter) != MBPOLYHEDRON) {
+ if (CN::Dimension(TYPE_FROM_HANDLE(*entity_iter)) == 0)
+ continue;
result = MBI->get_connectivity(*entity_iter, connect, num_connect, false, &conn_storage);
if (MB_SUCCESS != result) {
if (allocated_array)
@@ -666,6 +668,8 @@
num_connect = adj_ents.size();
}
else {
+ if (CN::Dimension(TYPE_FROM_HANDLE(*entity_iter)) == entity_type_requested)
+ continue;
adj_ents.clear();
result = MBI->get_adjacencies( entity_iter, 1,
entity_type_requested, false, adj_ents );
More information about the moab-dev
mailing list