TRIANGULATION_SVG
SVG Image of Triangulation
TRIANGULATION_SVG
is a FORTRAN77 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.
Usage:
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:
-
'prefix'_nodes.txt, the node coordinates.
-
'prefix'_elements.txt, the triangulation
-
'prefix'.svg, the plot file
Licensing:
The computer code and data files described and made available on this web page
are distributed under
the GNU LGPL license.
Languages:
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:
TRIANGULATION,
a FORTRAN77 library which
carries out various operations on order 3 ("linear") or order 6
("quadratic") triangulations.
Reference:
-
W3C,
Scalable Vector Graphics 1.1 (Second Edition),
16 August 2011,
http://www.w3.org/TR/SVG11/
Source Code:
Examples and Tests:
LAKE is a lake region.
List of Routines:
-
MAIN is the main program for TRIANGULATION_SVG.
-
CH_CAP capitalizes a single character.
-
CH_EQI is a case insensitive comparison of two characters for equality.
-
CH_TO_DIGIT returns the integer value of a base 10 digit.
-
FILE_COLUMN_COUNT counts the number of columns in the first line of a file.
-
FILE_ROW_COUNT counts the number of row records in a file.
-
GET_UNIT returns a free FORTRAN unit number.
-
I4MAT_DATA_READ reads data from an I4MAT file.
-
I4MAT_HEADER_READ reads the header from an I4MAT.
-
I4MAT_TRANSPOSE_PRINT_SOME prints some of the transpose of an I4MAT.
-
I4MAT_WRITE writes an I4MAT file.
-
MESH_BASE_ONE ensures that the element definition is one-based.
-
R8MAT_DATA_READ reads data from an R8MAT file.
-
R8MAT_HEADER_READ reads the header from an R8MAT file.
-
R8MAT_TRANSPOSE_PRINT_SOME prints some of an R8MAT, transposed.
-
R8MAT_WRITE writes an R8MAT file.
-
S_BLANK_DELETE removes blanks from a string, left justifying the remainder.
-
S_TO_I4 reads an I4 from a string.
-
S_TO_I4VEC reads an I4VEC from a string.
-
S_TO_R8 reads an R8 from a string.
-
S_TO_R8VEC reads an R8VEC from a string.
-
S_WORD_COUNT counts the number of "words" in a string.
-
TIMESTAMP prints the current YMDHMS date as a time stamp.
-
TRIANGULATION_PLOT plots a triangulation in SVG format.
You can go up one level to
the FORTRAN77 source codes.
Last revised on 03 April 2014.