brainspace.mesh.mesh_operations.select_points

brainspace.mesh.mesh_operations.select_points(surf, array, low=-inf, upp=inf)[source]

Select surface points whose values fall within the threshold.

Cells corresponding to these points are also kept.

Parameters:
  • surf (vtkPolyData or BSPolyData) – Input surface.
  • array (str or 1D ndarray) – Array used to perform selection. If str, it must be an array in the PointData attributes of the PolyData.
  • low (float or -np.inf) – Lower threshold. Default is -np.inf.
  • upp (float or np.inf) – Upper threshold. Default is np.inf.
Returns:

surf_selected (vtkPolyData or BSPolyData) – PolyData after selection.