SVG Image of Triangulation

TRIANGULATION_SVG is a FORTRAN90 program which creates an SVG image of a triangulation, which can be displayed by an web browser.

TRIANGULATION_SVG reads one file listing the nodes, and a second file consisting of groups of 3, 4 or 6 nodes that make up elements.


triangulation_svg prefix
where 'prefix' is the common prefix for the node and element files, and will also be used to name the output file:


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


TRIANGULATION_SVG is available in a C version and a C++ version and a FORTRAN77 version and a FORTRAN90 version and a MATLAB version.

Related Data and Programs:

TRIANGLE_SVG, a FORTRAN90 library which uses Scalable Vector Graphics (SVG) to plot a triangle and any number of points, to illustrate quadrature rules and sampling techniques.

TRIANGULATION, a FORTRAN90 library which carries out various operations on order 3 ("linear") or order 6 ("quadratic") triangulations.

TRIANGULATION_PLOT, a FORTRAN90 program which plots the nodes and elements of a triangulation as a PostScript (PS) file;


  1. W3C, Scalable Vector Graphics 1.1 (Second Edition), 16 August 2011,

Source Code:

Examples and Tests:

LAKE is a lake region.

List of Routines:

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

Last revised on 19 March 2014.