neuromodes.io.check_surf

neuromodes.io.check_surf(surf: Trimesh) None

Check if the surface mesh is contiguous with no unreferenced vertices.

Parameters

surftrimesh.Trimesh

The surface mesh to check.

Raises

ValueError

If the surface mesh contains unreferenced vertices.

ValueError

If the surface mesh is not contiguous.