\( \newcommand{\E}{\mathrm{E}} \) \( \newcommand{\A}{\mathrm{A}} \) \( \newcommand{\R}{\mathrm{R}} \) \( \newcommand{\N}{\mathrm{N}} \) \( \newcommand{\Q}{\mathrm{Q}} \) \( \newcommand{\Z}{\mathrm{Z}} \) \( \def\ccSum #1#2#3{ \sum_{#1}^{#2}{#3} } \def\ccProd #1#2#3{ \sum_{#1}^{#2}{#3} }\)
CGAL 4.13 - 3D Mesh Generation
Input/Output Functions

The free functions that can be used to read and write meshes.

Functions

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. More...
 

Function Documentation

◆ 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
osthe output stream
c3t3the mesh complex
rebindif set to true, labels of cells are rebinded into [1..nb_of_labels]
show_patchesif 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.