# Examples from pyvista.DataObjectFilters.extract_surface
# =======================================================

# Extract the surface of an UnstructuredGrid.
import pyvista as pv
from pyvista import examples
grid = examples.load_hexbeam()
surf = grid.extract_surface(algorithm=None)
type(surf)
surf['vtkOriginalPointIds']
surf['vtkOriginalCellIds']

# Note that in the "vtkOriginalCellIds" array, the same original cells
# appears multiple times since this array represents the original cell of
# each surface cell extracted.

# ----------------------------------------------------------------------
# Generated by sphinx-examples-as-code https://github.com/pyvista/sphinx-examples-as-code
