CGAL 6.2 - 2D Polygons

Loading...
Searching...
No Matches
List of all members
MultipolygonWithHoles_2 Concept Reference
Reference Manual » Concepts

## Definition

Refines
  `CopyConstructible`
  `Assignable`
  `DefaultConstructible`

A model of this concept represents a multipolygon with holes.

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_with_holes_iterator
| a bidirectional iterator over the polygons with holes.
typedef unspecified_type | Polygon_with_holes_const_iterator
| a bidirectional const iterator over the polygons with holes.
typedef unspecified_type | Polygon_with_holes_container
| range type for iterating over polygons with holes.
typedef unsigned int | Size
| size type

## Creation
template<typename InputIterator >
| MultipolygonWithHoles_2 (InputIterator begin, InputIterator end)
| constructs a multipolygon using a range of polygons with holes.

## Predicates
Size | number_of_polygons_with_holes ()
| returns the number of polygons with holes.

## Access Functions
Polygon_with_holes_iterator | polygons_with_holes_begin ()
| returns the begin iterator of the polygons with holes.
Polygon_with_holes_iterator | polygons_with_holes_end ()
| returns the past-the-end iterator of the polygons with holes.
Polygon_with_holes_const_iterator | polygons_with_holes_begin () const
| returns the begin iterator of the polygons with holes.
Polygon_with_holes_const_iterator | polygons_with_holes_end () const
| returns the past-the-end iterator of the polygons with holes.
const Polygon_with_holes_container & | polygons_with_holes () const
| returns the range of polygons with holes.

## Modifiers
void | add_polygon_with_holes (const Polygon_with_holes_2 &polygon)
| adds a given polygon with holes to the multipolygon.
void | erase_polygon_with_holes (Polygon_with_holes_const_iterator pit)
| erases the specified polygon.
void | clear ()
| removes all the polygons with holes.

## Member Typedef Documentation

## ◆ Polygon_with_holes_const_iterator

typedef unspecified_type MultipolygonWithHoles_2::Polygon_with_holes_const_iterator

a bidirectional const iterator over the polygons with holes.

Its value type is `Polygon_with_holes_2`.

## ◆ Polygon_with_holes_iterator

typedef unspecified_type MultipolygonWithHoles_2::Polygon_with_holes_iterator

a bidirectional iterator over the polygons with holes.

Its value type is `Polygon_with_holes_2`.