Boost logo

Geometry :

Subject: [ggl] Clockwiseness after polygon combination
From: Barend Gehrels (barend)
Date: 2011-02-26 14:11:54

Hi Javier,

On 26-2-2011 20:00, Javier Gonzalez wrote:
> Another question.
> Is the output of a polygon combination (union, intersection,
> difference, xor) supposed to be on a proper alternate clockwiseness
> for inner and outer rings or should I go and use correct on the output
> of such combination myself?

They are supposed to have proper orientation. You can indeed call the
boost::geometry::correct function to ensure that.

Regards, Barend

Barend Gehrels

Geometry list run by mateusz at