CGAL::operator<<

Definition

This operator writes The Nef polyhedron N to the output stream out using a propriatary file format. It includes the complete incidence structure, the geometric data, and the marks of each item.

Using CGAL stream modifiers the following output formats can be chosen: ASCII(set_ascii_mode), binary(set_binary_mode) or pretty(set_pretty_mode). The mandatory format is the ASCII format. It is recommended to use this format for file input and output.

As the output depends on the output operators of the geometric primitives provided by the traits class, it might not be possible that the input operator and output operators of different traits classes are not compatible. We recommend to use the CGAL kernels Homogeneous, Simple_homogeneous, or Extended_homogeneous parametrized with any exact number type that models mathbbZ (e.g. Gmpz or leda_integer).

A bounded Nef_polyhedron_3<Extended_homogeneous> is automatically written as though Nef_polyhedron_3<CGAL::Homogeneous> or Nef_polyhedron_3<CGAL::Simple_homogeneous> is used. As a result, the input operator of each of these types can read the output.

#include <CGAL/IO/Nef_polyhedron_iostream_3.h>

template <class Nef_polyhedronTraits_3>
ostream& ostream& out << CGAL::Nef_polyhedron_3<Nef_polyhedronTraits_3> N

See Also

CGAL::Nef_polyhedron_3<Traits>
operator>>.