# Examples from pyvista.cell_quality_info
# =======================================

# Get cell quality info for `TRIANGLE` cells and the
# `'scaled_jacobian'` quality measure.
import pyvista as pv
info_tri = pv.cell_quality_info(pv.CellType.TRIANGLE, 'scaled_jacobian')
info_tri

# Show the acceptable range for this measure.
info_tri.acceptable_range

# Show the value of this measure for equilateral triangles with edge length of one.
info_tri.unit_cell_value

# Get info for the same measure but for `QUAD` cells.
info_quad = pv.cell_quality_info(pv.CellType.QUAD, 'scaled_jacobian')
info_quad

# Show the acceptable range. Note that it differs for quads compared to triangles.
info_quad.acceptable_range

# Show the value of this measure for a square cell with edge length of one.
info_quad.unit_cell_value

# See Computing Mesh Quality for more examples using this function.

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

