Boost logo

Geometry :

Subject: [ggl] Difference / xor for multi polygons
From: Barend Gehrels (barend)
Date: 2011-03-07 02:51:11


Hi Javier,

On 7-3-2011 4:15, Javier Gonzalez wrote:
> Nice! that change actually solved some artifacts I was getting
> (compared to the clipper and GPC versions).

OK, great to hear!

>
> Unfortunately, here's another faulty case
>
> UNION of:
>
> POLYGON((-2 2, 1842 2, 1842 -2362, -2 -2362, -2 2), (0 0, 0 -2360,
> 1840 -2360, 1840 0, 0 0))
>
> with:
>
> POLYGON((-0.01 -1960, 0 -1960, 0 -1880, 80.01 -1960, -0.01 -1960))
>
>
> gives
> POLYGON((-2 2, 1842 2, 1842 -2362, -2 -2362, -2 2))

There we go again ;-) . Will have a look tonight or tomorrownight.

Regards, Barend

-- 
Barend Gehrels
http://about.me/barendgehrels

Geometry list run by mateusz at loskot.net