An alias for
Mesh.pslg. (Use this if you wan to ba able to easily switch mesh generators as some may require objects with more methods.)
val pslg : ?hole:'l Mesh.mat -> ?region:'l Mesh.mat -> ?point_marker:'l Mesh.int_vec -> 'l Mesh.mat -> ?segment_marker:'l Mesh.int_vec -> 'l Mesh.int_mat -> 'l pslg
Mesh.pslg. Duplicated here to ease the writing of code that is easily ported to various meshers.
triangulate ~max_area pslg returns a triangulation of the Planar Straight Line Graph
pslg given by
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
read layout file reads 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 : 'layout Mesh.t -> string -> unit
write mesh file writes the
mesh in the files
file.s in easymesh format.