\( \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.14.2 - 2D Conforming Triangulations and Meshes

In addition to the stream extraction and insertion operators for CGAL 2D triangulations, the following functions can be used.

Functions

template<class CDT >
void CGAL::write_vtu (std::ostream &os, const CDT &tr, IO::Mode mode=IO::BINARY)
 writes the faces of a domain and its constrained edges embedded in a 2D constrained Delaunay triangulation using the PolyData XML format. More...
 

Function Documentation

◆ write_vtu()

template<class CDT >
void CGAL::write_vtu ( std::ostream &  os,
const CDT &  tr,
IO::Mode  mode = IO::BINARY 
)

#include <CGAL/IO/write_vtu.h>

writes the faces of a domain and its constrained edges embedded in a 2D constrained Delaunay triangulation using the PolyData XML format.

The faces output are those for which DelaunayMeshFaceBase_2::is_in_domain() returns true, the edges are those for which ConstrainedTriangulationFaceBase_2::is_constrained() returns true.

Template Parameters
CDTa Constrained_Delaunay_triangulation_2 with face type model of DelaunayMeshFaceBase_2.
Parameters
osthe stream used for writing.
trthe triangulated domain to be written.
modedecides if the data should be written in binary (IO::BINARY) or in ASCII (IO::ASCII).