# pdetriq

Triangle quality measure

## Syntax

`q = pdetriq(p,t)`

## Description

`q = pdetriq(p,t)` returns a triangle quality measure given mesh data.

The triangular mesh is given by the mesh data `p`, `e`, and `t`. For details on the mesh data representation, see `initmesh`.

The triangle quality is given by the formula

$q=\frac{4a\sqrt{3}}{{h}_{1}^{2}+{h}_{2}^{2}+{h}_{3}^{2}}$

where a is the area and h1, h2, and h3 the side lengths of the triangle.

If q > 0.6 the triangle is of acceptable quality. q = 1 when h1 = h2 = h3.

## References

Bank, Randolph E., PLTMG: A Software Package for Solving Elliptic Partial Differential Equations, User's Guide 6.0, Society for Industrial and Applied Mathematics, Philadelphia, PA, 1990.