cortex.polyutils.Surface.get_strip_coordinates

Surface.get_strip_coordinates(v0, v1, geodesic_path=None, distance_algorithm='softmax')

get 2D coordinates of surface from v0 to v1

  • first coordinate: distance along geodesic path from v0

  • second coordinate: distance from geodesic path

  • v0 and v1 should be on boundary of patch
    • if not, they are reassigned to boundary_vertices

  • could be optimized by
    • reusing information from get_geodesic_strip_patch()

Parameters
- v0int

index of starting point

- v1int

index of starting point

- geodesic_pathlist of int

geodesic_path to use

- distance_algorithmstr

method to use for computing distance along path, ‘softmax’ or ‘closest’