TRIANGLE_TO_MEDIT
Convert TRIANGLE Node and Element Files to MEDIT Mesh File.


TRIANGLE_TO_MEDIT is a C++ program which reads a pair of node and element files created by the TRIANGLE program and writes a corresponding mesh file suitable for viewing with the MEDIT program.

Usage:

triangle_to_medit prefix
where prefix is the common filename prefix so that:

Licensing:

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

Languages:

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

Related Data and Programs:

FEM_TO_MEDIT, a C program which reads a pair of FEM files defining node coordinates and elements, and creates a corresponding MEDIT mesh file.

MEDIT, a data directory which contains examples of MEDIT mesh files, which can be used to define the geometry of a finite element mesh in 2D or 3D, using triangles, quadrilaterals, tetrahedrons or hexahedrons.

MEDIT_IO, a C library which can read or write MEDIT mesh files.

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 of examples of files used by the triangle and showme programs.

TRIANGLE_IO, a C library which can read or write node and element files created by the TRIANGLE program.

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_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.

Reference:

  1. Pascal Frey,
    MEDIT: An interactive mesh visualization software,
    Technical Report RT-0253,
    Institut National de Recherche en Informatique et en Automatique,
    03 December 2001.

Source Code:

Examples and Tests:

List of Routines:

You can go up one level to the C source codes.


Last revised on 14 October 2014.