Boost logo

Geometry :

Subject: [geometry] Check polygon features
From: hmfkz (hmfkz_007_at_[hidden])
Date: 2014-10-06 11:49:22

I am a newbie using boost geometry library. I installed boost library version
I used online example to create a polygon type like this:

typedef boost::geometry::model::d2::point_xy<double> boostPoint;
typedef boost::geometry::model::polygon<boostPoint> boostPolygon;
boostPolygon bpoly;

then I added couple of point as follow:

boost::geometry::append(bPoly, boost::geometry::make<boostPoint>(X, Y)); //
--> X & Y are double

The point is that, my point of creation of a boost polygon is to create a
polygon from my vector of points, then check the following features:

-if it is a simple polygon? (found solution: if(
boost::geometry::is_simple(bPoly) )

-What is its orientation (clockwise, counterclockwise)? ...........ANY HELP

View this message in context:
Sent from the Boost Geometry mailing list archive at

Geometry list run by mateusz at