https://www.mathworks.com/help/lidar/ref/clusterconnectedfaces.html
clusterConnectedFaces - Cluster connected faces - MATLAB
This MATLAB function clusters the connected faces in the surface mesh surfaceMeshIn, and returns the cluster index for each face faceClusterIdx, the number of...
clusterconnectedfacesmatlab