CGAL 6.1 - 2D Polygon Repair
Loading...
Searching...
No Matches
CGAL::Polygon_repair::Boolean< Kernel, Container_ > Class Template Reference

#include <CGAL/Polygon_repair/Boolean.h>

Definition

template<typename Kernel, typename Container_>
class CGAL::Polygon_repair::Boolean< Kernel, Container_ >
Template Parameters
Kernelmust be

Public Member Functions

 Boolean ()=default
 default constructor.
 
void insert (const Polygon_2 &pA)
 sets the polygons as input of the Boolean operation.
 
void insert (const Polygon_with_holes_2 &pwh)
 
void insert (const Multipolygon_with_holes_2 &pA)
 
void mark_domains ()
 
template<typename Fct >
Multipolygon_with_holes_2 operator() (const Fct &fct)
 performs the Boolean operation applying fct and returns the result as a multipolygon with holes.
 
const CDTplustriangulation () const
 access to the underlying constrained triangulation.
 

Member Function Documentation

◆ operator()()

template<typename Kernel , typename Container_ >
template<typename Fct >
Multipolygon_with_holes_2 CGAL::Polygon_repair::Boolean< Kernel, Container_ >::operator() ( const Fct &  fct)

performs the Boolean operation applying fct and returns the result as a multipolygon with holes.

Template Parameters
Fctmust have the operator bool operator()(bool, bool).