Boost logo

Geometry :

Subject: Re: [geometry] polygon intersection possible issue
From: Mateusz Loskot (mateusz_at_[hidden])
Date: 2013-10-24 15:28:01


On 24 October 2013 09:57, joan <joan.abadie_at_[hidden]> wrote:
> Hello,
>
> I'm trying to compute the intersection of 2 polygons that should produce a 2
> polygons result.
> <http://boost-geometry.203548.n3.nabble.com/file/n4025686/Capture.png>
> Unfortunately my result size is 0 and should be 2.
> Do I have something wrong ?
>
> typedef boost::geometry::model::polygon<point_type> polygon;

Specialize your polygon as CCW:

 typedef boost::geometry::model::polygon<point_type, false> polygon;

and you should get 2.

Best regards,

-- 
Mateusz  Loskot, http://mateusz.loskot.net

Geometry list run by mateusz at loskot.net