mesh

Triangular mesh generation and manipulation.
Library mesh
Class type Mesh . voronoi
method point : 'layout mat

Array of points coordinates (x,y). It is of size 2 * n (fortran_layout) where n is the number of points. So the coordinates of point number i are (point.{1,i}, point.{2,i}).

method edge : 'layout int_mat

Array of points coordinates (x,y). It is of size 2 * n (fortran_layout) where n is the number of points. So the coordinates of point number i are (point.{1,i}, point.{2,i}).

Array of edge endpoints; 2 int per edge. It is of size 2 * n (fortran_layout) where n > 0 is the number of edges.

method normal : 'layout mat

Array of edge endpoints; 2 int per edge. It is of size 2 * n (fortran_layout) where n > 0 is the number of edges.

Array of normal vectors, used for infinite rays in the Voronoi diagram. It is of dimensions 2 * n (fortran_layout) for some n is the number of edges. The normal vector for edge i is given by (normal.{1,i}, normal.{2,i}). It the edge in the Voronoi diagram is finite, the normal vector is zero.