reads a mesh complex written in the medit (.mesh) file format.
See [1] for a comprehensive description of this file format.
Template Parameters
T3
can be instantiated with any 3D triangulation of CGAL provided that its vertex and cell base class are models of the concepts MeshVertexBase_3 and MeshCellBase_3, respectively.
indicates whether output warnings and error messages should be printed or not.
Type: Boolean
Default: false
allows the construction of a triangulation with non-manifold edges and non manifold vertices. The triangulation is invalid if this situation is met, so it should be used only in advanced cases, and the triangulation will be hardly usable.
Type: bool
Default: false
Returns
true if the connectivity of the triangulation could be built consistently from in, and false if the triangulation is empty, or if the connectivity of t3 could not be built. If false is returned, t3 is empty when the function returns.
This function reads the data about vertices, surface facets, and triangulation cells from in, and builds a valid T3 from it.
Note that a valid 3D triangulation of CGAL must have a valid data structure (see TriangulationDataStructure_3), positively oriented cells, and cover the geometric convex hull of all points in t3.
an optional sequence of Named Parameters among the ones listed below
Optional Named Parameters
If true, all the cells in t3 are written in os, whether they belong to the complex or not. Otherwise, only the cells c for which c->subdomain_index() != Subdomain_index() are written.
Type: Boolean
Default: true
Extra: This parameter must be set to true for the file to be readable by read_MEDIT().
If true, all the finite vertices in t3 are written in os. Otherwise, only the vertices that belong to a cell c for which c->subdomain_index() != Subdomain_index() are written
Type: Boolean
Default: true
Extra: If all_cells is true, the value of this parameter is ignored and all vertices are written in os. It must be set to true for the file to be readable by read_MEDIT().
If true, labels of cells are rebinded into [1..nb_of_labels]
Type: Boolean
Default: false
If true, patches are labeled with different labels than cells. If false, each surface facet is written twice, using the label of each adjacent cell.
outputs a mesh complex to the medit (.mesh) file format.
See [1] for a comprehensive description of this file format.
Template Parameters
T3
can be instantiated with any 3D triangulation of CGAL provided that its vertex and cell base class are models of the concepts MeshVertexBase_3 and MeshCellBase_3, respectively.
an optional sequence of Named Parameters among the ones listed below
Optional Named Parameters
If true, all the cells in t3 are written in os, whether they belong to the complex or not. Otherwise, only the cells c for which c->subdomain_index() != Subdomain_index() are written.
Type: Boolean
Default: true
Extra: If the complex does not form a topological sphere, this parameter must be set to true for the file to be readable by read_MEDIT(). Otherwise the underlying triangulation data structure will not be valid.
If true, all the vertices in t3 are written in os. Otherwise, only the vertices that belong to a cell c for which c->subdomain_index() != Subdomain_index() are written
Type: Boolean
Default: true
Extra: If all_cells is true, the value of this parameter is ignored and all vertices are written in os. If the complex does not form a topological sphere, it must be set to true for the file to be readable by read_MEDIT(). Otherwise the underlying triangulation data structure will not be valid.
If true, labels of cells are rebinded into [1..nb_of_labels]
Type: Boolean
Default: false
If true, patches are labeled with different labels than cells. If false, each surface facet is written twice, using the label of each adjacent cell.