uxarray.grid.slice._slice_node_indices

uxarray.grid.slice._slice_node_indices#

uxarray.grid.slice._slice_node_indices(grid, indices, inclusive=True)#

Slices (indexes) an unstructured grid given a list/array of node indices, returning a new Grid composed of elements that contain the nodes specified in the indices.

Parameters:
  • grid (ux.Grid) – Source unstructured grid

  • indices (array-like) – A list or 1-D array of node indices

  • inclusive (bool) – Whether to perform inclusive (i.e. elements must contain at least one desired feature from a slice) as opposed to exclusive (i.e elements be made up all desired features from a slice)