How to check disconnected vertices in a triangular mesh

Regular vertices are the ones which have 6 neighbors. All other vertices are irregular.

You could look at this PR for explanation, and use CuberilleImageToMeshFilter with the latest git master version to create your mesh.