cortex.polyutils.Surface.get_euclidean_patch

Surface.get_euclidean_patch(vertex, radius, old_version=False)

return connected vertices within some 3d euclidean distance of a vertex

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

vertex or set of vertices to use as seed

- radiusnumber

distance threshold

- 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)