The free functions that can be used to read and write meshes.
|
| template<class C3T3 > |
| void | CGAL::output_to_medit (std::ostream &os, const C3T3 &c3t3, bool rebind=false, bool show_patches=false) |
| | Outputs a mesh complex to the medit (.mesh) file format. See [12] for a comprehensive description of this file format. More...
|
| |
| template<class C3T3 > |
| void | CGAL::output_to_vtu (std::ostream &os, const C3T3 &c3t3, IO::Mode mode=IO::BINARY) |
| | writes a tetrahedron mesh using the UnstructuredGrid XML format. More...
|
| |
◆ output_to_medit()
template<class C3T3 >
| void CGAL::output_to_medit |
( |
std::ostream & |
os, |
|
|
const C3T3 & |
c3t3, |
|
|
bool |
rebind = false, |
|
|
bool |
show_patches = false |
|
) |
| |
#include <CGAL/IO/File_medit.h>
Outputs a mesh complex to the medit (.mesh) file format. See [12] for a comprehensive description of this file format.
- Parameters
-
| os | the output stream |
| c3t3 | the mesh complex |
| rebind | if set to true, labels of cells are rebinded into [1..nb_of_labels] |
| show_patches | if set to true, patches are labeled with different labels than cells. If set to false, each surface facet is written twice, using the label of each adjacent cell. |
- Examples
- Mesh_3/mesh_implicit_domains.cpp, and Mesh_3/mesh_implicit_domains_2.cpp.
◆ output_to_vtu()
template<class C3T3 >
| void CGAL::output_to_vtu |
( |
std::ostream & |
os, |
|
|
const C3T3 & |
c3t3, |
|
|
IO::Mode |
mode = IO::BINARY |
|
) |
| |
#include <CGAL/IO/output_to_vtu.h>
writes a tetrahedron mesh using the UnstructuredGrid XML format.
- Template Parameters
-
- Parameters
-
| os | the stream used for writing. |
| c3t3 | the instance of C3T3 to be written. |
| mode | decides if the data should be written in binary (IO::BINARY) or in ASCII (IO::ASCII). |
- Examples
- Mesh_3/mesh_polyhedral_domain_with_features.cpp.