cortex.polyutils.Surface.get_connected_vertices

Surface.get_connected_vertices(vertex, mask, old_version=False)

return vertices connected to vertex that satisfy mask

  • helper method for other methods

Parameters
- vertexone of [scalar int index | list of int indices | numpy array of int indices]

vertex or set of vertices to use as seed

- maskboolean array

mask of allowed neighbors

- old_versionboolean (default=False)

True = Use vertex adjacency to select patch (can cause errors in odd situations) False = Use poly adjacency to select patch (solves problem where a single edge but no polys connect two regions within the patch, makes geodesic distance errors)