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.
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window.
Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: United States.
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.