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:
> I'm trying to compute the intersection of 2 polygons that should produce a 2
> polygons result.
> 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.
-- Mateusz Loskot, http://mateusz.loskot.net
Geometry list run by mateusz at loskot.net