linear_copy

UnstructuredGrid.linear_copy(deep=False)

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

Converts the following cell types to their linear equivalents.

  • VTK_QUADRATIC_TETRA      --> VTK_TETRA

  • VTK_QUADRATIC_PYRAMID    --> VTK_PYRAMID

  • VTK_QUADRATIC_WEDGE      --> VTK_WEDGE

  • VTK_QUADRATIC_HEXAHEDRON --> VTK_HEXAHEDRON

Parameters
deepbool

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

Returns
pyvista.UnstructuredGrid

UnstructuredGrid containing only linear cells when deep=False.