CGAL 6.1 - 2D Polygons
|
#include <CGAL/Multipolygon_with_holes_2.h>
The class Multipolygon_with_holes_2
models the concept MultipolygonWithHoles_2
.
It is parameterized with two types (Kernel
and Container
) that are used to instantiate the types Polygon_2<Kernel,Container>
and Polygon_with_holes_2<Kernel,Container>
. The latter is used to represent each polygon with holes. The former is converted to the latter.
MultipolygonWithHoles_2
Public Types | |
using | Size = unsigned int |
the size type | |
Related Functions | |
(Note that these are not member functions.) | |
template<class Kernel , class Container > | |
std::ostream & | operator<< (std::ostream &os, const Multipolygon_with_holes_2< Kernel, Container > &mp) |
inserts a multipolygon with holes to the output stream os . | |
Definition | |
using | Polygon_2 = CGAL::Polygon_2< Kernel, Container > |
polygon type | |
using | Polygon_with_holes_2 = CGAL::Polygon_with_holes_2< Kernel, Container > |
polygon with holes type | |
|
related |
inserts a multipolygon with holes to the output stream os
.
An ASCII and a binary format exist. The format can be selected with the CGAL modifiers for streams, set_ascii_mode()
and set_binary_mode()
, respectively. The modifier set_pretty_mode()
can be used to allow for (a few) structuring comments in the output. Otherwise, the output would be free of comments. The default for writing is ASCII without comments.
The number of polygons is written followed by the polygons. For each polygon, the number of points of the outer boundary is written followed by the points themselves in counterclockwise order. Then, the number of holes is written, and for each hole, the number of points on its outer boundary is written followed by the points themselves in clockwise order.