pyvista.UnstructuredGrid.linear_copy

pyvista.UnstructuredGrid.linear_copy#

UnstructuredGrid.linear_copy(deep=False)[source]#

Return a copy of the unstructured grid containing only linear cells.

Converts the following cell types to their linear equivalents.

  • QUADRATIC_TETRA      --> TETRA

  • QUADRATIC_PYRAMID    --> PYRAMID

  • QUADRATIC_WEDGE      --> WEDGE

  • QUADRATIC_HEXAHEDRON --> HEXAHEDRON

Parameters:
deepbool, default: False

When True, makes a copy of the points array. Cells and cell types are always copied.

Returns:
pyvista.UnstructuredGrid

UnstructuredGrid containing only linear cells when deep=False.