CGAL 5.3.1 - 2D Regularized Boolean Set-Operations
|
There are several overloaded function templates called do_intersect()
that determine whether the interior of two or more polygons intersect.
A function template in this group that accepts two input polygons has one of the two following signatures:
bool do_intersect(const Type1& pgn1, const Type2& pgn2);
bool do_intersect(const Type1& pgn1, const Type2& pgn2, const GpsTraits& traits);
Parameters
The types Type1
and Type2
of the parameters must be convertible to the types specified in a row in the table below, respectively.
CGAL::complement()
CGAL::intersection()
CGAL::join()
CGAL::difference()
CGAL::symmetric_difference()
Functions | |
template<typename Kernel , typename Container > | |
bool | CGAL::do_intersect (const Polygon_2< Kernel, Container > &pgn1, const Polygon_2< Kernel, Container > &pgn2) |
determines whether two polygons intersect in their interior. More... | |
template<typename Kernel , typename Container > | |
bool | CGAL::do_intersect (const Polygon_2< Kernel, Container > &pgn1, const Polygon_with_holes_2< Kernel, Container > &pgn2) |
determines whether two polygons intersect in their interior. More... | |
template<typename Kernel , typename Container > | |
bool | CGAL::do_intersect (const Polygon_with_holes_2< Kernel, Container > &pgn1, const Polygon_2< Kernel, Container > &pgn2) |
determines whether two polygons intersect in their interior. More... | |
template<typename Kernel , typename Container > | |
bool | CGAL::do_intersect (const Polygon_with_holes_2< Kernel, Container > &pgn1, const Polygon_with_holes_2< Kernel, Container > &pgn2) |
determines whether two polygons with holes intersect in their interior. More... | |
template<typename ArrTraits > | |
bool | CGAL::do_intersect (const General_polygon_2< ArrTraits > &pgn1, const General_polygon_2< ArrTraits > &pgn2) |
determines whether two general polygons intersect in their interior. More... | |
template<typename ArrTraits > | |
bool | CGAL::do_intersect (const General_polygon_2< ArrTraits > &pgn1, const General_polygon_with_holes_2< General_polygon_2< ArrTraits > > &pgn2) |
determines whether two general polygons intersect in their interior. More... | |
template<typename ArrTraits > | |
bool | CGAL::do_intersect (const General_polygon_with_holes_2< General_polygon_2< ArrTraits > > &pgn1, const General_polygon_2< ArrTraits > &pgn2) |
determines whether two general polygons intersect in their interior. More... | |
template<typename Polygon > | |
bool | CGAL::do_intersect (const General_polygon_with_holes_2< Polygon > &pgn1, const General_polygon_with_holes_2< Polygon > &pgn2) |
determines whether two general polygons with holes intersect in their interior. More... | |
template<typename InputIterator > | |
bool | CGAL::do_intersect (InputIterator begin, InputIterator end) |
Given a range of polygons or a range of polygons with holes (resp. More... | |
template<typename InputIterator1 , typename InputIterator2 > | |
bool | CGAL::do_intersect (InputIterator1 begin1, InputIterator1 end1, InputIterator2 begin2, InputIterator2 end2) |
Given a range of polygons (resp. More... | |
template<typename Kernel , typename Container , typename GpsTraits > | |
bool | CGAL::do_intersect (const Polygon_2< Kernel, Container > &pgn1, const Polygon_2< Kernel, Container > &pgn2, const GpsTraits &traits) |
determines whether two polygons intersect in their interior. More... | |
template<typename Kernel , typename Container , typename GpsTraits > | |
bool | CGAL::do_intersect (const Polygon_2< Kernel, Container > &pgn1, const Polygon_with_holes_2< Kernel, Container > &pgn2, const GpsTraits &traits, const GpsTraits &traits) |
determines whether two polygons intersect in their interior. More... | |
template<typename Kernel , typename Container , typename GpsTraits > | |
bool | CGAL::do_intersect (const Polygon_with_holes_2< Kernel, Container > &pgn1, const Polygon_2< Kernel, Container > &pgn2, const GpsTraits &traits) |
determines whether two polygons intersect in their interior. More... | |
template<typename Kernel , typename Container , typename GpsTraits > | |
bool | CGAL::do_intersect (const Polygon_with_holes_2< Kernel, Container > &pgn1, const Polygon_with_holes_2< Kernel, Container > &pgn2, const GpsTraits &traits) |
determines whether two polygons with holes intersect in their interior. More... | |
template<typename ArrTraits , typename GpsTraits > | |
bool | CGAL::do_intersect (const General_polygon_2< ArrTraits > &pgn1, const General_polygon_2< ArrTraits > &pgn2, const GpsTraits &traits) |
determines whether two general polygons intersect in their interior. More... | |
template<typename ArrTraits , typename GpsTraits > | |
bool | CGAL::do_intersect (const General_polygon_2< ArrTraits > &pgn1, const General_polygon_with_holes_2< General_polygon_2< ArrTraits > > &pgn2, const GpsTraits &traits) |
determines whether two general polygons intersect in their interior. More... | |
template<typename ArrTraits , typename GpsTraits > | |
bool | CGAL::do_intersect (const General_polygon_with_holes_2< General_polygon_2< ArrTraits > > &pgn1, const General_polygon_2< ArrTraits > &pgn2, const GpsTraits &traits) |
determines whether two general polygons intersect in their interior. More... | |
template<typename Polygon , typename GpsTraits > | |
bool | CGAL::do_intersect (const General_polygon_with_holes_2< Polygon > &pgn1, const General_polygon_with_holes_2< Polygon > &pgn2, const GpsTraits &traits) |
determines whether two general polygons with holes intersect in their interior. More... | |
template<typename InputIterator , typename GpsTraits > | |
bool | CGAL::do_intersect (InputIterator begin, InputIterator end, const GpsTraits &traits) |
Given a range of polygons or a range of polygons with holes (resp. More... | |
template<typename InputIterator1 , typename InputIterator2 , typename GpsTraits > | |
bool | CGAL::do_intersect (InputIterator1 begin1, InputIterator1 end1, InputIterator2 begin2, InputIterator2 end2, const GpsTraits &traits) |
Given a range of polygons (resp. More... | |
bool CGAL::do_intersect | ( | const Polygon_2< Kernel, Container > & | pgn1, |
const Polygon_2< Kernel, Container > & | pgn2 | ||
) |
#include <CGAL/Boolean_set_operations_2.h>
determines whether two polygons intersect in their interior.
pgn1 | the 1st input polygon. |
pgn2 | the 2nd input polygon. |
true
if pgn1
and pgn2
intersect in their interiro and false
otherwise. bool CGAL::do_intersect | ( | const Polygon_2< Kernel, Container > & | pgn1, |
const Polygon_with_holes_2< Kernel, Container > & | pgn2 | ||
) |
#include <CGAL/Boolean_set_operations_2.h>
determines whether two polygons intersect in their interior.
pgn1 | the 1st input polygon. |
pgn2 | the 2nd input polygon. |
true
if pgn1
and pgn2
intersect in their interiro and false
otherwise. bool CGAL::do_intersect | ( | const Polygon_with_holes_2< Kernel, Container > & | pgn1, |
const Polygon_2< Kernel, Container > & | pgn2 | ||
) |
#include <CGAL/Boolean_set_operations_2.h>
determines whether two polygons intersect in their interior.
pgn1 | the 1st input polygon. |
pgn2 | the 2nd input polygon. |
true
if pgn1
and pgn2
intersect in their interiro and false
otherwise. bool CGAL::do_intersect | ( | const Polygon_with_holes_2< Kernel, Container > & | pgn1, |
const Polygon_with_holes_2< Kernel, Container > & | pgn2 | ||
) |
#include <CGAL/Boolean_set_operations_2.h>
determines whether two polygons with holes intersect in their interior.
pgn1 | the 1st input polygon. |
pgn2 | the 2nd input polygon. |
true
if pgn1
and pgn2
intersect in their interiro and false
otherwise. bool CGAL::do_intersect | ( | const General_polygon_2< ArrTraits > & | pgn1, |
const General_polygon_2< ArrTraits > & | pgn2 | ||
) |
#include <CGAL/Boolean_set_operations_2.h>
determines whether two general polygons intersect in their interior.
pgn1 | the 1st input polygon. |
pgn2 | the 2nd input polygon. |
true
if pgn1
and pgn2
intersect in their interiro and false
otherwise. ArrTraits
must be a model of the concept ArrangementDirectionalXMonotoneTraits_2
. bool CGAL::do_intersect | ( | const General_polygon_2< ArrTraits > & | pgn1, |
const General_polygon_with_holes_2< General_polygon_2< ArrTraits > > & | pgn2 | ||
) |
#include <CGAL/Boolean_set_operations_2.h>
determines whether two general polygons intersect in their interior.
pgn1 | the 1st input polygon. |
pgn2 | the 2nd input polygon. |
true
if pgn1
and pgn2
intersect in their interiro and false
otherwise. ArrTraits
must be a model of the concept ArrangementDirectionalXMonotoneTraits_2
. bool CGAL::do_intersect | ( | const General_polygon_with_holes_2< General_polygon_2< ArrTraits > > & | pgn1, |
const General_polygon_2< ArrTraits > & | pgn2 | ||
) |
#include <CGAL/Boolean_set_operations_2.h>
determines whether two general polygons intersect in their interior.
pgn1 | the 1st input polygon. |
pgn2 | the 2nd input polygon. |
true
if pgn1
and pgn2
intersect in their interiro and false
otherwise. ArrTraits
must be a model of the concept ArrangementDirectionalXMonotoneTraits_2
. bool CGAL::do_intersect | ( | const General_polygon_with_holes_2< Polygon > & | pgn1, |
const General_polygon_with_holes_2< Polygon > & | pgn2 | ||
) |
#include <CGAL/Boolean_set_operations_2.h>
determines whether two general polygons with holes intersect in their interior.
pgn1 | the 1st input polygon. |
pgn2 | the 2nd input polygon. |
true
if pgn1
and pgn2
intersect in their interiro and false
otherwise. bool CGAL::do_intersect | ( | InputIterator | begin, |
InputIterator | end | ||
) |
#include <CGAL/Boolean_set_operations_2.h>
Given a range of polygons or a range of polygons with holes (resp.
a range of general polygons or a range of general polygons with holes) determines whether the open polygons (resp. general polygons) in the range have a common point.
begin | the first iterator of the input range. Its value type is either Polygon_2 (resp. General_polygon_2 ) or Polygon_with_holes_2 (resp. General_polygon_with_holes_2 ). |
end | the past-the-end iterator of the input range. Its value type is either Polygon_2 (resp. General_polygon_2 ) or Polygon_with_holes_2 (resp. General_polygon_with_holes_2 ). |
true
if the pairwise intersections of all open polygons or polygons with holes (resp. general polygons or general polygons with holes) in the range [*begin,*end) overlap, and false
otherwise. bool CGAL::do_intersect | ( | InputIterator1 | begin1, |
InputIterator1 | end1, | ||
InputIterator2 | begin2, | ||
InputIterator2 | end2 | ||
) |
#include <CGAL/Boolean_set_operations_2.h>
Given a range of polygons (resp.
general polygons) and a range of polygons with holes (resp. general polygons with holes) determines whether the open polygons (resp. general polygons) in the two ranges have a common point.
begin1 | the first iterator of the 1st input range. Its value type is Polygon_2 (resp. General_polygon_2 ). |
end1 | the past-the-end iterator of the 1st input range. Its value type is Polygon_2 (resp. General_polygon_2 ). |
begin2 | the first iterator of the 2nd input range. Its value type is Polygon_with_holes_2 (resp. General_polygon_with_holes_2 ). |
end2 | the past-the-end iterator of the 2nd input range. Its value type is Polygon_with_holes_2 (resp. General_polygon_with_holes_2 ). |
true
if the pairwise intersections of all open polygons (resp. general polygons) and polygons with holes (resp. general polygons with holes) in the ranges [*begin1,*end1) and [*begin2,*end2), respectively, overlap, and false
otherwise. bool CGAL::do_intersect | ( | const Polygon_2< Kernel, Container > & | pgn1, |
const Polygon_2< Kernel, Container > & | pgn2, | ||
const GpsTraits & | traits | ||
) |
#include <CGAL/Boolean_set_operations_2.h>
determines whether two polygons intersect in their interior.
pgn1 | the 1st input polygon. |
pgn2 | the 2nd input polygon. |
traits | a traits object. |
true
if pgn1
and pgn2
intersect in their interiro and false
otherwise. GpsTraits
must be a model of the concept GeneralPolygonSetTraits_2
. bool CGAL::do_intersect | ( | const Polygon_2< Kernel, Container > & | pgn1, |
const Polygon_with_holes_2< Kernel, Container > & | pgn2, | ||
const GpsTraits & | traits, | ||
const GpsTraits & | traits | ||
) |
#include <CGAL/Boolean_set_operations_2.h>
determines whether two polygons intersect in their interior.
pgn1 | the 1st input polygon. |
pgn2 | the 2nd input polygon. |
traits | a traits object. |
true
if pgn1
and pgn2
intersect in their interiro and false
otherwise. GpsTraits
must be a model of the concept GeneralPolygonSetTraits_2
. bool CGAL::do_intersect | ( | const Polygon_with_holes_2< Kernel, Container > & | pgn1, |
const Polygon_2< Kernel, Container > & | pgn2, | ||
const GpsTraits & | traits | ||
) |
#include <CGAL/Boolean_set_operations_2.h>
determines whether two polygons intersect in their interior.
pgn1 | the 1st input polygon. |
pgn2 | the 2nd input polygon. |
traits | a traits object. |
true
if pgn1
and pgn2
intersect in their interiro and false
otherwise. GpsTraits
must be a model of the concept GeneralPolygonSetTraits_2
. bool CGAL::do_intersect | ( | const Polygon_with_holes_2< Kernel, Container > & | pgn1, |
const Polygon_with_holes_2< Kernel, Container > & | pgn2, | ||
const GpsTraits & | traits | ||
) |
#include <CGAL/Boolean_set_operations_2.h>
determines whether two polygons with holes intersect in their interior.
pgn1 | the 1st input polygon. |
pgn2 | the 2nd input polygon. |
traits | a traits object. |
true
if pgn1
and pgn2
intersect in their interiro and false
otherwise. GpsTraits
must be a model of the concept GeneralPolygonSetTraits_2
. bool CGAL::do_intersect | ( | const General_polygon_2< ArrTraits > & | pgn1, |
const General_polygon_2< ArrTraits > & | pgn2, | ||
const GpsTraits & | traits | ||
) |
#include <CGAL/Boolean_set_operations_2.h>
determines whether two general polygons intersect in their interior.
pgn1 | the 1st input polygon. |
pgn2 | the 2nd input polygon. |
traits | a traits object. |
true
if pgn1
and pgn2
intersect in their interiro and false
otherwise. GpsTraits
must be a model of the concept GeneralPolygonSetTraits_2
. ArrTraits
must be a model of the concept ArrangementDirectionalXMonotoneTraits_2
. bool CGAL::do_intersect | ( | const General_polygon_2< ArrTraits > & | pgn1, |
const General_polygon_with_holes_2< General_polygon_2< ArrTraits > > & | pgn2, | ||
const GpsTraits & | traits | ||
) |
#include <CGAL/Boolean_set_operations_2.h>
determines whether two general polygons intersect in their interior.
pgn1 | the 1st input polygon. |
pgn2 | the 2nd input polygon. |
traits | a traits object. |
true
if pgn1
and pgn2
intersect in their interiro and false
otherwise. GpsTraits
must be a model of the concept GeneralPolygonSetTraits_2
. ArrTraits
must be a model of the concept ArrangementDirectionalXMonotoneTraits_2
. bool CGAL::do_intersect | ( | const General_polygon_with_holes_2< General_polygon_2< ArrTraits > > & | pgn1, |
const General_polygon_2< ArrTraits > & | pgn2, | ||
const GpsTraits & | traits | ||
) |
#include <CGAL/Boolean_set_operations_2.h>
determines whether two general polygons intersect in their interior.
pgn1 | the 1st input polygon. |
pgn2 | the 2nd input polygon. |
traits | a traits object. |
true
if pgn1
and pgn2
intersect in their interiro and false
otherwise. GpsTraits
must be a model of the concept GeneralPolygonSetTraits_2
. ArrTraits
must be a model of the concept ArrangementDirectionalXMonotoneTraits_2
. bool CGAL::do_intersect | ( | const General_polygon_with_holes_2< Polygon > & | pgn1, |
const General_polygon_with_holes_2< Polygon > & | pgn2, | ||
const GpsTraits & | traits | ||
) |
#include <CGAL/Boolean_set_operations_2.h>
determines whether two general polygons with holes intersect in their interior.
pgn1 | the 1st input polygon. |
pgn2 | the 2nd input polygon. |
traits | a traits object. |
true
if pgn1
and pgn2
intersect in their interiro and false
otherwise. GpsTraits
must be a model of the concept GeneralPolygonSetTraits_2
. GpsTraits
must be a model of the concept GeneralPolygonSetTraits_2
. bool CGAL::do_intersect | ( | InputIterator | begin, |
InputIterator | end, | ||
const GpsTraits & | traits | ||
) |
#include <CGAL/Boolean_set_operations_2.h>
Given a range of polygons or a range of polygons with holes (resp.
a range of general polygons or a range of general polygons with holes) determines whether the open polygons (resp. general polygons) in the range have a common point.
begin | the first iterator of the input range. Its value type is either Polygon_2 (resp. General_polygon_2 ) or Polygon_with_holes_2 (resp. General_polygon_with_holes_2 ). |
end | the past-the-end iterator of the input range. Its value type is either Polygon_2 (resp. General_polygon_2 ) or Polygon_with_holes_2 (resp. General_polygon_with_holes_2 ). |
traits | a traits object. |
true
if the pairwise intersections of all open polygons or polygons with holes (resp. general polygons or general polygons with holes) in the range [*begin,*end) overlap, and false
otherwise. GpsTraits
must be a model of the concept GeneralPolygonSetTraits_2
. bool CGAL::do_intersect | ( | InputIterator1 | begin1, |
InputIterator1 | end1, | ||
InputIterator2 | begin2, | ||
InputIterator2 | end2, | ||
const GpsTraits & | traits | ||
) |
#include <CGAL/Boolean_set_operations_2.h>
Given a range of polygons (resp.
general polygons) and a range of polygons with holes (resp. general polygons with holes) determines whether the open polygons (resp. general polygons) in the two ranges have a common point.
begin1 | the first iterator of the 1st input range. Its value type is Polygon_2 (resp. General_polygon_2 ). |
end1 | the past-the-end iterator of the 1st input range. Its value type is Polygon_2 (resp. General_polygon_2 ). |
begin2 | the first iterator of the 2nd input range. Its value type is Polygon_with_holes_2 (resp. General_polygon_with_holes_2 ). |
end2 | the past-the-end iterator of the 2nd input range. Its value type is Polygon_with_holes_2 (resp. General_polygon_with_holes_2 ). |
traits | a traits object. |
true
if the pairwise intersections of all open polygons (resp. general polygons) and polygons with holes (resp. general polygons with holes) in the ranges [*begin1,*end1) and [*begin2,*end2), respectively, overlap, and false
otherwise.