Loading [MathJax]/extensions/TeX/AMSsymbols.js
 
CGAL 6.0 - 3D Simplicial Mesh Data Structures
All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends Modules Pages
Loading...
Searching...
No Matches

The free functions that can be used to export meshes to given output file formats.

Functions

template<class C3T3 >
void CGAL::IO::output_to_avizo (std::ostream &os, const C3T3 &c3t3)
 exports a mesh complex to the Avizo (.am) file format
 
template<class C3T3 >
void CGAL::IO::output_to_tetgen (std::string filename, const C3T3 &c3t3, bool rebind=false, bool show_patches=false)
 exports a mesh complex to tetgen format
 
template<class C3T3 >
void CGAL::IO::output_to_vtu (std::ostream &os, const C3T3 &c3t3, Mode mode=BINARY)
 exports a tetrahedral mesh complex using the UnstructuredGrid XML format.
 

Function Documentation

◆ output_to_avizo()

template<class C3T3 >
void CGAL::IO::output_to_avizo ( std::ostream &  os,
const C3T3 &  c3t3 
)

#include <CGAL/IO/File_avizo.h>

exports a mesh complex to the Avizo (.am) file format

Template Parameters
C3T3a class model of MeshComplex_3InTriangulation_3
Parameters
osthe output stream
c3t3the mesh complex
See also
Avizo File Format

◆ output_to_tetgen()

template<class C3T3 >
void CGAL::IO::output_to_tetgen ( std::string  filename,
const C3T3 &  c3t3,
bool  rebind = false,
bool  show_patches = false 
)

#include <CGAL/IO/File_tetgen.h>

exports a mesh complex to tetgen format

Parameters
filenamethe path to the output files, without the extension.
c3t3the mesh complex
rebindif true, labels of cells are rebinded into [1..nb_of_labels]
show_patchesif true, patches are labeled with different labels than cells. If false, each surface facet is written twice, using the label of each adjacent cell.
See also
Tetgen File Format

◆ output_to_vtu()

template<class C3T3 >
void CGAL::IO::output_to_vtu ( std::ostream &  os,
const C3T3 &  c3t3,
Mode  mode = BINARY 
)

#include <CGAL/IO/output_to_vtu.h>

exports a tetrahedral mesh complex using the UnstructuredGrid XML format.

Template Parameters
C3T3a model of MeshComplexWithFeatures_3InTriangulation_3.
Parameters
osthe stream used for writing
c3t3the mesh complex
modedecides if the data should be written in binary (IO::BINARY) or in ASCII (IO::ASCII). If the mode is binary, then the stream os must be opened in binary mode.
See also
VTK (VTU / VTP / legacy) File Formats