connected_subsurfaces

ifermi.analysis.connected_subsurfaces(vertices, faces)[source]

Find connected sub-surfaces (those that share edges).

Parameters:
  • vertices (ndarray) – A (n, 3) float array of the vertices in the isosurface.

  • faces (ndarray) – A (m, 3) int array of the faces of the isosurface.

Return type:

list[tuple[ndarray, ndarray]]

Returns:

A list of of (vertices, faces) for each sub-surface.