\( \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.11.3 - CGAL and the Boost Graph Library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Groups Pages

Functions

template<typename FaceGraph >
bool CGAL::write_off (std::ostream &os, const FaceGraph &g)
 writes the graph g in the OFF format. More...
 
template<typename FaceGraph >
bool CGAL::write_off (const char *fname, const FaceGraph &g)
 writes the graph g in the OFF format into a file named fname. More...
 
template<typename FaceGraph >
bool CGAL::read_off (std::istream &is, FaceGraph &g)
 reads the graph g from data in the OFF format. More...
 
template<typename FaceGraph >
bool CGAL::read_off (const char *fname, FaceGraph &g)
 reads the graph g from data in the OFF format. More...
 

Function Documentation

template<typename FaceGraph >
bool CGAL::read_off ( std::istream &  is,
FaceGraph g 
)

reads the graph g from data in the OFF format.

Ignores comment lines which start with a hash, and lines with whitespace.

See Also
Overloads of this function for specific models of the concept FaceGraph.
Precondition
The data must represent a 2-manifold
Attention
The graph g is not cleared, and the data from the stream are added.

#include <CGAL/boost/graph/io.h>

template<typename FaceGraph >
bool CGAL::read_off ( const char *  fname,
FaceGraph g 
)

reads the graph g from data in the OFF format.

Ignores comment lines which start with a hash, and lines with whitespace.

See Also
Overloads of this function for specific models of the concept FaceGraph.
Precondition
The data must represent a 2-manifold
Attention
The graph g is not cleared, and the data from the stream are added.

#include <CGAL/boost/graph/io.h>

template<typename FaceGraph >
bool CGAL::write_off ( std::ostream &  os,
const FaceGraph g 
)

writes the graph g in the OFF format.

See Also
Overloads of this function for specific models of the concept FaceGraph.

#include <CGAL/boost/graph/io.h>

template<typename FaceGraph >
bool CGAL::write_off ( const char *  fname,
const FaceGraph g 
)

writes the graph g in the OFF format into a file named fname.

See Also
Overloads of this function for specific models of the concept FaceGraph.

#include <CGAL/boost/graph/io.h>