TRIANGLE_IO
Read and Write TRIANGLE Files {#triangle_io-read-and-write-triangle-files align="center"}
TRIANGLE_IO is a C++ library which can read or write some simple versions of some of the files used by Jonathan Shewchuk's triangle() program.
The computer code and data files described and made available on this web page are distributed under the GNU LGPL license.
TRIANGLE_IO is available in a C version and a C++ version and a FORTRAN77 version and a FORTRAN90 version and a MATLAB version.
FEM_TO_TRIANGLE, a C++ program 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.
SHOWME, a C program which can display the POLY files uses as input to TRIANGLE, and the output files that define meshes and other objects.
TRIANGLE, a C program which computes Voronoi diagrams and Delaunay triangulations, and creates and manipulates files that can be displayed by SHOWME.
TRIANGLE_DISPLAY, a MATLAB program 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 which contains examples of files used by the triangle and showme programs.
TRIANGLE_TO_FEM, a C++ program which reads the NODE and ELE files created by TRIANGLE to describe a triangular mesh, and writes a corresponding pair of node and element files in the 2D FEM format.
TRIANGLE_TO_MEDIT, a C++ program which reads the NODE and ELE files created by TRIANGLE to describe a triangular mesh, and writes a corresponding MESH file for input to MEDIT.
TRIANGLE_TO_XML, a C++ program 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.
- http://www-2.cs.cmu.edu/~quake/triangle.md, the TRIANGLE web site;
- triangle_io.cpp, the source code.
- triangle_io.hpp, the include file.
- triangle_io_prb.cpp a sample calling program.
- triangle_io_prb_output.txt, the output file.
- example.ele, an example ".ele" file created by the program.
- example.node, an example ".node" file created by the program.
- I4_MAX returns the maximum of two I4's.
- I4_MIN returns the minimum of two I4's.
- I4MAT_COPY copies one I4MAT to another.
- I4MAT_TRANSPOSE_PRINT_SOME prints some of an I4MAT, transposed.
- I4VEC_COPY copies an I4VEC.
- R8MAT_COPY copies one R8MAT to another.
- R8MAT_TRANSPOSE_PRINT_SOME prints some of an R8MAT, transposed.
- TIMESTAMP prints the current YMDHMS date as a time stamp.
- TRIANGLE_ELEMENT_DATA_EXAMPLE returns the element information for the example.
- TRIANGLE_ELEMENT_DATA_READ reads the header information from an element file.
- TRIANGLE_ELEMENT_SIZE_EXAMPLE returns the element size information for the example.
- TRIANGLE_ELEMENT_SIZE_READ reads the header information from an element file.
- TRIANGLE_ELEMENT_WRITE writes a TRIANGLE ".ele" file.
- TRIANGLE_NODE_DATA_EXAMPLE returns the node information for the example.
- TRIANGLE_NODE_HEADER_READ reads the header information from a node file.
- TRIANGLE_NODE_SIZE_EXAMPLE returns the sizes of node information for the example.
- TRIANGLE_NODE_SIZE_READ reads the header information from a node file.
- TRIANGLE_NODE_WRITE writes a TRIANGLE ".node" file.
You can go up one level to the C++ source codes.
Last revised on 16 October 2014.