[MOAB-dev] commit/MOAB: iulian07: down adjacency for padded polygons

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Tue Oct 8 15:17:19 CDT 2013


1 new commit in MOAB:

https://bitbucket.org/fathomteam/moab/commits/1c0eb81aaf87/
Changeset:   1c0eb81aaf87
Branch:      master
User:        iulian07
Date:        2013-10-08 22:15:43
Summary:     down adjacency for padded polygons

skip looking for an adjacent edge, if the vertices are the same

Affected #:  1 file

diff --git a/src/AEntityFactory.cpp b/src/AEntityFactory.cpp
index 577162e..08ddb00 100644
--- a/src/AEntityFactory.cpp
+++ b/src/AEntityFactory.cpp
@@ -820,6 +820,9 @@ ErrorCode AEntityFactory::get_down_adjacency_elements_poly(EntityHandle source_e
       Range vrange, adj_edges;
       vrange.insert(vertex_array[i]);
       vrange.insert(vertex_array[i+1]);
+      // account for padded polygons; if the vertices are the same, skip
+      if (vrange.size() == 1)
+        continue;
       tmp_result = thisMB->get_adjacencies(vrange, 1, false, adj_edges);
       if (MB_SUCCESS != tmp_result) result = tmp_result;
       if (adj_edges.size() == 1) {

Repository URL: https://bitbucket.org/fathomteam/moab/

--

This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.


More information about the moab-dev mailing list