Skip to content

Commit

Permalink
iterator
Browse files Browse the repository at this point in the history
  • Loading branch information
rms80 committed Apr 26, 2018
1 parent ecfcc2e commit 5d97cc4
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions mesh/MeshIterators.cs
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,18 @@ public static IEnumerable<int> BoundaryEdges(DMesh3 mesh)
}


public static IEnumerable<int> InteriorEdges(DMesh3 mesh)
{
int N = mesh.MaxEdgeID;
for (int i = 0; i < N; ++i) {
if (mesh.IsEdge(i)) {
if (mesh.IsBoundaryEdge(i) == false)
yield return i;
}
}
}


public static IEnumerable<int> GroupBoundaryEdges(DMesh3 mesh)
{
int N = mesh.MaxEdgeID;
Expand Down

0 comments on commit 5d97cc4

Please sign in to comment.