**triangulation_refine_local_test**,
a MATLAB code which
calls triangulation_refine_local(), which
refines a triangulation by replacing one triangular
element by four smaller ones.

The computer code and data files described and made available on this web page are distributed under the GNU LGPL license.

triangulation_refine_local, a MATLAB code which refines a triangulation locally; a single triangular element is replaced by four smaller triangles, and neighboring information is updated.

- triangulation_refine_local_test.m, calls all the tests;
- triangulation_refine_local_test.sh, runs all the tests;
- triangulation_refine_local_test.txt, the output file.
- ell3_nodes.txt the node coordinates.
- ell3_nodes.png an image of the nodes.
- ell3_elements.txt the elements.
- ell3_elements.png a PNG image of the elements.
- ell3_element_neighbors.txt, the neighbor triangles.
- ell3_element_neighbors.png, a PNG image of the neighbor information.
- ell3_refined_nodes.txt the node coordinates.
- ell3_refined_nodes.png an image of the nodes.
- ell3_refined_elements.txt the elements.
- ell3_refined_elements.png a PNG image of the elements.
- ell3_refined_element_neighbors.txt, the neighbor triangles.
- ell3_refined_element_neighbors.png, a PNG image of the neighbor information.

**ELL3** is the original triangulation:

**ELL3_REFINED** is the triangulation after element 11 has been refined: