CGAL 6.0 - 2D Polygons
Loading...
Searching...
No Matches
MultipolygonWithHoles_2 Class Reference

#include <Concepts/MultiPolygonWithHoles_2.h>

Definition

Refines
CopyConstructible
Assignable
DefaultConstructible

A model of this concept represents a multipolygon with holes. The concept requires the ability to store the polygons with holes that the multipolygon is composed of.

Has Models:
CGAL::Multipolygon_with_holes_2<Polygon>

Types

typedef unspecified_type Polygon_with_holes_2
 the polygon type used to represent each polygon with holes of the multipolygon.
 
typedef unspecified_type Polygon_const_iterator
 a bidirectional iterator over the polygons.
 
typedef unspecified_type Polygons_container
 range type for iterating over holes.
 

Creation

template<typename InputIterator >
 MultipolygonWithHoles_2 (InputIterator begin, InputIterator end)
 constructs a multipolygon using a range of polygons.
 

Predicates

Size number_of_polygons ()
 returns the number of polygons.
 

Access Functions

Polygon_const_iterator polygons_begin () const
 returns the begin iterator of the polygons.
 
Polygon_const_iterator polygons_end () const
 returns the past-the-end iterator of the polygons.
 
const Polygons_containerpolygons () const
 returns the range of polygons.
 

Modifiers

void add_polygon (const Polygon_with_holes_2 &polygon)
 adds a given polygon to the multipolygon.
 
void erase_polygon (Polygon_iterator pit)
 erases the specified polygon.
 
void clear ()
 removes all the polygons.
 

Member Typedef Documentation

◆ Polygon_const_iterator

a bidirectional iterator over the polygons.

Its value type is Polygon_with_holes_2.