brainspace.mesh.mesh_elements.get_cells

brainspace.mesh.mesh_elements.get_cells(surf)[source]

Get surface cells.

Parameters:surf (vtkDataSet or BSDataSet) – Input surface.
Returns:cells (ndarray, shape (n_cells, nd)) – Array of cells. The value of nd depends on the topology. If vertex (nd=1), line (nd=2) or poly (nd=3). Each element is a point id.
Raises:ValueError – If surf contains different cell types.

See also

get_points, get_edges