public static IEnumerable <int> GroupBoundaryVertices(DMesh3 mesh) { int N = mesh.MaxVertexID; for (int i = 0; i < N; ++i) { if (mesh.IsVertex(i)) { if (mesh.IsGroupBoundaryVertex(i)) { yield return(i); } } } }