pyvista.UnstructuredGrid.linear_copy#
- UnstructuredGrid.linear_copy(deep: bool = 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:
- Returns:
pyvista.UnstructuredGrid
UnstructuredGrid containing only linear cells when
deep=False
.