TRIANGLE_BENCH, a script which times the execution of the triangle() program on a sequence of sets of random nodes in the unit square.
The random nodes are generated by a program called random_nodes.c, which can create a file of N = 42 random nodes, for instance, by a command like:
random_nodes 42with the nodes being written to a file in the standard triangle node format, called, in this case, nodes_n42.node.
The triangle program is invoked from the command line. For the 42 node example, this command would be
time triangle nodes_n42.node > nodes_n42_output.txtThe time command reports the elapsed, user, and system time required by the command.
The program was run with a sequence of increasing values of N, with these results:
N real time (seconds) --------- --------- 12 0.025 42 0.023 162 0.023 642 0.026 2,562 0.033 10,242 0.057 40,962 0.178 163,842 0.707 655,362 2.649 2,631,442 11.108
The computer code and data files described and made available on this web page are distributed under the GNU LGPL license.
TRIANGLE_BENCH is available in a C version.
FEM_TO_TRIANGLE, a C program which reads FEM files defining a 2D mesh of triangles, namely a file of node coordinates and a file of elements defined by node indices, and creates a corresponding pair of node and element files for use by Jonathan Shewchuk's triangle program.
SHOWME, a C program which can display the POLY files uses as input to TRIANGLE, and the output files that define meshes and other objects.
STRIPACK_BENCH, a FORTRAN90 program which benchmarks the Delaunay triangulation calculation of STRIPACK by timing computations involving random sets of nodes of increasing size.
TRIANGLE, a C program which computes Voronoi diagrams and Delaunay triangulations, and creates and manipulates files that can be displayed by SHOWME.
TRIANGLE_FILES, a data directory of examples of files used by the triangle and showme programs.
You can go up one level to the C source codes.