UnstructuredGrid.linear_copy#
- UnstructuredGrid.linear_copy(
- *,
- deep: bool = False,
Return a copy of the unstructured grid containing only linear cells.
Each nonlinear cell below becomes the linear cell through its corner points. Its other points stay in the grid, unused by the new cell. Call
remove_unused_points()orclean()on the output to remove them.Changed in version 0.50: All of the cell types above are converted, and each converted cell keeps only its corner points.
- Parameters:
- Returns:
pyvista.UnstructuredGridUnstructuredGrid containing only linear cells when
deep=False.