triangle_io


triangle_io, a MATLAB code which can read or write some simple versions of some of the files used by Jonathan Shewchuk's triangle() program.

Licensing:

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

Languages:

triangle_io is available in a C version and a C++ version and a FORTRAN90 version and a MATLAB version.

Related Data and Programs:

fem_to_triangle, a MATLAB code which reads fem files defining a 2d mesh of triangles, namely a file of node coordinates and a file of elements defined by node indices, and creates a corresponding pair of node and element files for use by jonathan shewchuk's triangle program.

poly, a data directory which contains a description and examples of the poly file format.

triangle_display, a MATLAB code which displays the nodes and elements of a triangulation on the MATLAB graphics screen, assuming the data has been stored in node and ele files by the triangle program.

triangle_files, a data directory of examples of files used by the triangle and showme programs.

triangle_io_test

triangle_to_fem, a MATLAB code which reads the node and ele files created by triangle() to describe a triangular mesh, and writes two simple "mesh" format files, listing node coordinates and element connectivity.

triangle_to_xml, a MATLAB code which reads the node and ele files created by triangle() to describe a triangular mesh in 2d, and writes out a corresponding xml mesh file for use by dolfin or fenics.

Source Code:


Last revised on 06 April 2019.