(Not recommended) Triangle quality measure
pdetriq is not recommended. Use
pdetriq evaluates the quality of a triangle as
where a is the area and h1, h2, and h3 are the lengths of the edges of the triangle.
The value 0 corresponds to a degenerate triangle with zero area. The value 1 corresponds to a triangle with h1 = h2 = h3.
Evaluate the quality for each triangle of a
Generate and plot a mesh for the geometry consisting of a circle with a diamond hole.
[p,e,t] = initmesh(@scatterg); pdemesh(p,e,t) axis equal
Evaluate the triangle quality for each mesh triangle. Plot the resulting quality values.
q = pdetriq(p,t); figure pdeplot(p,e,t,'XYData',q); axis equal
p— Mesh nodes
Mesh nodes, specified as a 2-by-
Np matrix of nodes (points),
Np is the number of nodes in the mesh. For details on the mesh
data representation, see
t— Mesh elements
Mesh elements, specified as a
of triangles, where
Nt is the number of triangles in the mesh. For
details on the mesh data representation, see
q— Triangle quality
Triangle quality, returned as a row vector of numbers from 0 through 1.
 Bank, Randolph E. PLTMG: A Software Package for Solving Elliptic Partial Differential Equations, User's Guide 6.0. Philadelphia, PA: Society for Industrial and Applied Mathematics, 1990.