triangle_display


triangle_display, a MATLAB code which plots a triangulation using files associated with Jonathan Shewchuk's triangle() program.

TRIANGLE_DISPLAY reads the node and element files created by the TRIANGLE program, and displays the information. The user controls how "visible" the nodes and elements are; in particular, nodes can be suppressed, or displayed, or displayed and numbered, and the same is true for elements.

TRIANGLE_DISPLAY is essentially a version of TRIANGULATION_DISPLAY modified to read input files that use the TRIANGLE format.

Jonathan Shewchuk provides a program called showme(), which is able to show the same information, and to perform other interesting operations. However, there are at least three reasons why the TRIANGLE_DISPLAY program is useful:

Usage:

triangle_display ( 'prefix', node_vis, element_vis )
where 'prefix' is the common prefix for the node and element files. and node_vis is an integer defining the node visibility: and element_vis is an integer defining the element visibility:

Licensing:

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

Languages:

triangle_display is available in a MATLAB version.

Related Data and Programs:

fem_basis_t3_display, a MATLAB code which displays a basis function associated with a linear triangle ("t3") mesh.

fem_basis_t6_display, a MATLAB code which reads a quadratic triangle mesh and displays any associated basis function.

gridlines, a MATLAB code which gives the user more control over drawing gridlines on a graph than the builtin "grid on" command.

mesh_display, a MATLAB code which reads data defining a polygonal mesh and displays it, with optional numbering.

tri_surface_display, a MATLAB code which reads data defining a triangular mesh of a 3d surface and displays it.

triangle_display_test

triangle_files, a data directory of examples of files used by the triangle and showme programs.

triangle_io, a MATLAB code which can read or write some of the files created by jonathan shewchuk's triangle() program.

triangulation_display, a MATLAB code which reads files defining a triangulation and displays an image.

triangulation_plot, a MATLAB code which plots a triangulation as a postscript file.

Reference:

  1. Marc deBerg, Marc Krevald, Mark Overmars, Otfried Schwarzkopf,
    Computational Geometry,
    Springer, 2000,
    ISBN: 3-540-65620-0,
    LC: QA448.D38.C65.
  2. Joseph ORourke,
    Computational Geometry,
    Second Edition,
    Cambridge, 1998,
    ISBN: 0521649765,
    LC: QA448.D38.

Source Code:


Last revised on 05 April 2019.