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
1.56.0.
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
WOULD BE APPRECIATED IN ADVANCE

--
View this message in context: http://boost-geometry.203548.n3.nabble.com/Check-polygon-features-tp4026186.html
Sent from the Boost Geometry mailing list archive at Nabble.com.

Geometry list run by mateusz at loskot.net