# Examples from pyvista.DataSet.get_cell
# ======================================

# Get the 0-th cell.
from pyvista import examples
mesh = examples.load_airplane()
cell = mesh.get_cell(0)
cell

# Get the point ids of the first cell
cell.point_ids

# Get the point coordinates of the first cell
cell.points

# For the first cell, get the points associated with the first edge
cell.edges[0].point_ids

# For a Tetrahedron, get the point ids of the last face
mesh = examples.cells.Tetrahedron()
cell = mesh.get_cell(0)
cell.faces[-1].point_ids

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

