Boost logo

Geometry :

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


joan wrote On 6-11-2013 15:58:
> 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;
> }
>

Hi Joan,

This has been fixed, just submitted. Thanks again for the report.

Regards, Barend


Geometry list run by mateusz at loskot.net