Boost logo

Geometry :

Subject: [ggl] Re: Quick question about bg::difference
From: V D (zedxz2)
Date: 2011-10-24 19:39:39


In fact, I'm trying to avoid the bg::difference call but:

bg::disjoint(MultiPolygon, Polygon)
bg::intersects(MultiPolygon, Polygon)
bg::overlaps(MultiPolygon, Polygon)

doesn't seem to be supported for this combination

but bg::difference(MultiPolygon, Polygon) is.

:/

-V

On Oct 24, 2011, at 1:47 PM, V D wrote:

> Hi,
>
>
> I have a question about the difference algorithm.
>
> template<typename Geometry1, typename Geometry2, typename Collection>
> void difference(Geometry1 const & geometry1, Geometry2 const & geometry2, Collection & output_collection)
>
>
> What happens in the case that the 2 geometries are disjoint? So far in my test cases it seems that in disjoint cases it will always return the second geometry, is this guaranteed ?
>
> Thank you
> -V
>


Geometry list run by mateusz at loskot.net