triangulation_refine_local_test, an Octave code which calls triangulation_refine_local(), which refines a triangulation by replacing one triangular element by four smaller ones.
The information on this web page is distributed under the MIT license.
triangulation_refine_local, an Octave code which refines a triangulation locally; a single triangular element is replaced by four smaller triangles, and neighboring information is updated.
ELL3 is the original triangulation:
ELL3_REFINED is the triangulation after element 11 has been refined: