# Examples from pyvista.DataSetAttributes.active_normals
# ======================================================

# First, compute cell normals.
import pyvista as pv
mesh = pv.Plane(i_resolution=1, j_resolution=1)
mesh.point_data

mesh.point_data.active_normals

# Assign normals to the cell arrays.  An array will be added
# named `"Normals"`.
mesh.cell_data.active_normals = [[0.0, 0.0, 1.0]]
mesh.cell_data

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

