brainspace.mesh.mesh_elements.get_edges¶
-
brainspace.mesh.mesh_elements.
get_edges
(surf, mask=None)[source]¶ Get surface edges.
Parameters: - surf (vtkDataSet or BSDataSet) – Input surface.
- mask (1D ndarray, optional) – Binary mask. If specified, only use points within the mask. Default is None.
Returns: edges (ndarray, shape (n_edges, 2)) – Array of edges. Each element is a point id.
See also
get_edge_length
,get_points
,get_cells