cortex.polyutils.Surface.extract_geodesic_chunk¶
- Surface.extract_geodesic_chunk(origin, radius)[source]¶
Extract a chunk of the surface that is within radius of the origin by geodesic distance.
- Parameters:
- originint
Vertex index to measure geodesic distance from.
- radiusfloat
Maximum geodesic distance (in mm) from origin for a vertex to be included in the chunk.
- Returns:
- sel_ptsndarray
Vertex coordinates of the extracted chunk (all vertices within radius of origin).
- sel_polysndarray
Triangle faces of the extracted chunk, as indices into sel_pts. Includes only faces whose vertices are all within radius of origin.