Edge swapping can be used to improve the triangular surface mesh. The procedure involves checking each pair of faces that shares an edge and identifying the connecting diagonal that results in the most appropriate configuration of faces within the resulting quadrilateral. For a face considered, if the unshared node on the other face lies within its minimal sphere, the configuration is considered to be a Delaunay violation and the edge is swapped. The procedure makes a single pass through the faces to avoid cyclic swapping of the same set of edges. Thus, the edge swapping process is repeated until no further improvement is possible. At this stage, even if a few Delaunay violations exist, the differences resulting from continual swapping are marginal.
Important: If the triangular boundary zone selected is the cap face zone of a prism layer, the edge swapping will automatically propagate though the prism layers.