cortex.polyutils.Surface.get_geodesic_patch

Surface.get_geodesic_patch(vertex, radius, attempts=5, m=1.0, old_version=False)

return vertices within some 2d geodesic distance of a vertex (or vertices)

Parameters:
- vertexint

index (or list of int indices) of seed vertex (or vertices)

- radiusnumber

radius to use as threshold

- attemptsint

number of attempts to use for working with singular subsurfaces

- mnumber

reverse Euler step length, passed to geodesic_distance

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