package mesh-triangle

  1. Overview
  2. Docs


This module is a binding to the Triangle library which was awarded the James Hardy Wilkinson Prize in Numerical Software in 2003. If libtriangle-dev is not installed on your system, it will install a local copy for this library.



Published: 19 Mar 2019



This library defines a data structure for triangular meshes and provides several functions to manipulate them. In particular, a binding to Triangle is provided. It also allows to export meshes of functions defined on their nodes to LaTeX, SciLab, Matlab, Mathematica, and Graphics.


The easier way to install this library is using opam. It is divided in multiple packages with mesh being the base one, providing the fundamental structure ans output functions and the other one being bindings to mesh generation programs/libraries and graphical output.

opam install mesh
opam install mesh-display
opam install mesh-easymesh
opam install mesh-triangle

If you clone this repository, you can compile the code with make after installing the dependencies listed in the *.opam files.

Dependencies (5)

  1. mesh = version
  2. base-bytes
  3. base-bigarray
  4. dune
  5. ocaml >= "4.03.0" & < "5.0"

Dev Dependencies (1)

  1. lacaml with-test

Used by