EdgeID = cellEdges(g,RegionID,FilterType)
returns internal, external, or all edges belonging to the boundaries of the cells with ID
numbers listed in RegionID.
Find all edges belonging to the boundaries of the outer cell. Show the first 10 edges.
edgeIDs = cellEdges(gm,2);
edgeIDs(1:10)
ans = 1×10
1 2 3 4 5 6 7 8 9 10
From all edges belonging to the boundaries of the outer cell, return the edges belonging to only the internal faces. Internal faces are faces shared between multiple cells.
edgeIDs_int = cellEdges(gm,2,"internal")
edgeIDs_int = 1×4
9 10 11 12
From all edges belonging to the boundaries of the outer cell, return the edges belonging to the external faces. Show the first 10 edges.