CGAL 4.12 - CGAL and the Boost Graph Library
|
Methods to read and write graphs.
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... | |
bool CGAL::read_off | ( | std::istream & | is, |
FaceGraph & | g | ||
) |
#include <CGAL/boost/graph/io.h>
reads the graph g
from data in the OFF format.
Ignores comment lines which start with a hash, and lines with whitespace.
FaceGraph
. g
is not cleared, and the data from the stream are added. bool CGAL::read_off | ( | const char * | fname, |
FaceGraph & | g | ||
) |
#include <CGAL/boost/graph/io.h>
reads the graph g
from data in the OFF format.
Ignores comment lines which start with a hash, and lines with whitespace.
FaceGraph
. g
is not cleared, and the data from the stream are added. bool CGAL::write_off | ( | std::ostream & | os, |
const FaceGraph & | g | ||
) |
#include <CGAL/boost/graph/io.h>
writes the graph g
in the OFF format.
FaceGraph
.