module Easymesh:OCaml interface to EasyMesh.
is a simple and easy to use mesh generator. However, it is not
very robust and can segfault instead of reporting an error.
Author(s): Christophe Troestler (Christophe.Troestler@umons.ac.be)
'a Bigarray.layout ->
val triangulate :
max_area:float -> 'a Mesh.pslg -> 'a Mesh.t
triangulate ~max_area pslgreturns a triangulation of the Planar Straight Line Graph
pslg.Mesh.segment. BEWARE that for EasyMesh, the boundary must have a positive (counterclockwise) orientation, holes must be delimited by a negatively oriented paths.
pslg.Mesh.segment_marker may be set.
The returned mesh sets
neighbor and should genrally set
max_area: is given as an indication to the algorithm and may not be respected.
val read :
'a Bigarray.layout -> string -> 'a Mesh.t
read layout filereads the mesh described by the files
file.s into a Mesh.t structure. Only the fact that the files are well formed is checked (various exceptions may be thrown), not the fact that the data describe a real mesh.
val write :
'a #Mesh.t -> string -> unit
write mesh filewrites the
meshin the files
file.s in easymesh format.