**quad_mesh_test**,
a MATLAB code which
calls quad_mesh(), which
carries out operations involving meshes of quadrilaterals.

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

quad_mesh, a MATLAB code which handles meshes of quadrilaterals over a 2D region;

- quad_mesh_test.m, calls all the tests.
- quad_mesh_test.sh, runs all the tests.
- quad_mesh_test.txt, the output file.

- example1_q4_mesh_test.m
- example2_q4_mesh_test.m
- example3_q4_mesh_test.m
- example4_q4_mesh_test.m
- quad_mesh_test01.m, tests ADJ_SIZE_Q4_MESH.
- quad_mesh_test02.m, tests AREA_Q4_MESH.
- quad_mesh_test03.m, tests AREA_QUAD.
- quad_mesh_test04.m, tests BOUNDARY_EDGE_COUNT_Q4_MESH.
- quad_mesh_test05.m, tests BOUNDARY_EDGE_COUNT_EULER_Q4_MESH.
- quad_mesh_test08.m, tests NEIGHBOR_ELEMENTS_Q4_MESH.
- quad_mesh_test09.m, writes data to files.
- quad_mesh_test10.m, tests NODE_ORDER_Q4_MESH.
- quad_mesh_test105.m, tests SAMPLE_Q4_MESH.
- quad_mesh_test11.m, tests SAMPLE_QUAD.

**EXAMPLE1** is a mesh made up of squares of uniform size. The squares
are arranged in a grid with a few irregularities, however. In particular,
there is an interior hole.

- q4_mesh_ex1_element_neighbors.txt, element neighbors for example 1 Q4 mesh.
- q4_mesh_ex1_elements.txt, elements for example 1 Q4 mesh.
- q4_mesh_ex1_xy.txt, node coordinates for example 1 Q4 mesh.
- example1_q4_mesh.png, a PNG image of example 1 Q4 mesh.

**EXAMPLE2** is a mesh made up of quadrilaterals that are "trying" to tile a
semicircle. The row of elements that touches the origin is degenerate, and
are essentially triangles. The elements vary in area.

- q4_mesh_ex2_element_neighbors.txt, element neighbors for example 2 Q4 mesh.
- q4_mesh_ex2_elements.txt, elements for example 2 Q4 mesh.
- q4_mesh_ex2_xy.txt, node coordinates for example 2 Q4 mesh.
- example2_q4_mesh.png, a PNG image of example 2 Q4 mesh.

**SAMPLE_QUAD** demonstrates how a single quadrilateral can be randomly sampled.

- sample_quad.txt, node coordinates for random sample points in a quadrilateral.
- sample_quad.png, a PNG image of the random sample points in a quadrilateral.