|
Geometry : |
Subject: Re: [geometry] Register CCW Polygon
From: Barend Gehrels (barend_at_[hidden])
Date: 2013-10-21 12:02:24
Hi Hunk,
Hunk wrote On 21-10-2013 14:05:
> Hello,
>
> I register with
>
> BOOST_GEOMETRY_REGISTER_RING(std::vector<point_2d>)
>
> my own polygon type. The problem is that for my usage the Polygon is CCW
>
> At the moment i have to use boost::correct every time i use some boost
> operation and then re correct it. It is possible to tell boost that my
> polygon is CCW orientated so that i dont have to use correct?
You can do that, but not with the macro. The macro's
(BOOST_GEOMETRY_REGISTER*) don't cover all possible situations. But you
can still specialize the traits classes to support your Polygon.
Regards, Barend
Geometry list run by mateusz at loskot.net