Boost logo

Geometry :

Subject: Re: [geometry] intersects (one geometry) possible issue
From: Barend Gehrels (barend_at_[hidden])
Date: 2013-11-10 17:48:54


Hi Joan,

joan wrote On 6-11-2013 15:58:
> Hello,
>
> I have a geometry that self intersects when using intersects (one geometry)
> by should not.
>
> <http://boost-geometry.203548.n3.nabble.com/file/n4025738/selfintersectissue_boost.png>
>
>
> This is the polygon that produce the self intersection :
>
> polygon myBoostPolygon;
> boost::geometry::read_wkt("POLYGON((137.14632454923444
> 200.61927877947369,50 224, 323 497,255 169,137.14632454923444
> 200.61927877947369))", myBoostPolygon);
>
> //check if boundary segments doesn't intersect with the polygon
> if (boost::geometry::intersects(myBoostPolygon))
> {
> cout << "Self intersects !" << endl;
> }
>

This is surprising, indeed not the intention. I can reproduce it.

Thanks for the report and reproduction, will be repaired.

Regards, Barend


Geometry list run by mateusz at loskot.net