pyvista.StructuredGrid.hide_points#

StructuredGrid.hide_points(ind)[source]#

Hide points without deleting them.

Hides points by setting the ghost_points array to HIDDEN_CELL.

Parameters:
indsequence[int]

Sequence of point indices to be hidden. The array can also be a boolean array of the same size as the number of points.

Returns:
pyvista.PointSet

Point set with hidden points.

Examples

Hide part of the middle of a structured surface.

>>> import pyvista as pv
>>> import numpy as np
>>> x = np.arange(-10, 10, 0.25)
>>> y = np.arange(-10, 10, 0.25)
>>> z = 0
>>> x, y, z = np.meshgrid(x, y, z)
>>> grid = pv.StructuredGrid(x, y, z)
>>> grid.hide_points(range(80 * 30, 80 * 50))
>>> grid.plot(color=True, show_edges=True)
https://d33wubrfki0l68.cloudfront.net/e5e636afba56df0db9b502d91f8588c5a87ab2f9/3c5dc/_images/pyvista-structuredgrid-hide_points-1_00_00.png