- Creates a triangulation from the geometry using the “triangulation” function.
- Converts the triangulation into an undirected graph and computes the connected components of the graph using “conncomp”.
- Extracts the nodes and faces for each connected component and creates a separate triangulation for each.
- Plots each triangulation using the “subplot” function.
- “triangulation” function - https://www.mathworks.com/help/releases/R2021b/matlab/ref/triangulation.html.
- “conncomp” function - https://www.mathworks.com/help/releases/R2021b/matlab/ref/graph.conncomp.html
- “subplot” function - https://www.mathworks.com/help/releases/R2021b/matlab/ref/subplot.html.