triangle_display, an Octave 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:


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:


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


triangle_display is available in a MATLAB version and an Octave version..

Related Data and Programs:


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

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

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

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

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

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

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

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

triangulation_plot, an Octave code which plots a triangulation as a postscript file.


  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 19 April 2023.