Function

CGAL::complement

Definition

#include <CGAL/Boolean_set_operations_2.h>

void complement ( Type pgn, Type & res)
Each one of these functions computes the complement of a given polygon pgn, and stores the resulting polygon with holes in res.

Arg type
Polygon_2
General_polygon_2

OutputIterator complement ( Type pgn, OutputIterator oi)
Each one of these functions computes the complement of a given polygon pgn, inserts the resulting polygons with holes into an output container through a given output iterator oi, and returns the output iterator. The value type of the OutputIterator is either Polygon_with_holes_2 or General_polygon_with_holes_2.

Arg type
Polygon_with_holes_2
General_polygon_with_holes_2

template <class Kernel, class Container>
void complement ( Polygon_2<Kernel, Container> pgn, Polygon_with_holes_2<Kernel, Container> & res)
template <class Traits>
void complement ( General_polygon_2<Traits> pgn, General_polygon_with_holes_2<Traits> & res)

template <class Traits, class OutputIterator>
OutputIterator complement ( Polygon_with_holes_2<Kernel, Container> pgn, OutputIterator oi)
template <class Traits, class OutputIterator>
OutputIterator complement ( General_polygon_with_holes_2<General_polygon_2<Traits> > pgn, OutputIterator oi)

See Also

CGAL::do_intersect
CGAL::intersection
CGAL::join
CGAL::difference
CGAL::symmetric_difference