triangulation_svg (original) (raw)
triangulation_svg, a MATLAB code 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 MIT license
Languages:
triangulation_svg is available ina C version anda C++ version anda FORTRAN90 version anda MATLAB version.
Related Data and Programs:
triangle_svg, a MATLAB code which uses scalable vector graphics (svg) to plot a triangle and any number of points, to illustrate quadrature rules and sampling techniques.
triangulation_display, a MATLAB code which displays the nodes and elements of a triangulation on the MATLAB graphics screen;
Reference:
- W3C, Scalable Vector Graphics 1.1 (Second Edition), 16 August 2011, https://www.w3.org/TR/SVG11/
Source Code:
- <triangulation%5Fsvg.m> plots a triangulated set of nodes.
Last revised on 11 April 2019.