Boost logo

Geometry :

Subject: [geometry] Interesection points
From: Hunk (heiko.hoennige_at_[hidden])
Date: 2013-08-13 03:25:15


Hello,

i am trying to get one intersection point between line polygon or line line,

i tried

typedef model::d2::point_xy<double> point;
typedef model::ring< point > ring;
typedef model::polygon< point > polygon;
typedef model::linestring< point > linestring;
boost::geometry::read_wkt(
        "POLYGON((0 0,1 0, 1 1,0 1))", green);
linestring ls;
boost::geometry::read_wkt("LINESTRING(0.5 -1,0.5 0.5)", ls);
std::vector<point> intersections;
boost::geometry::intersection(green, blue, intersections);

but it is not working. I only want the point which is on the border.
Anyone has an idea for that ?

thank you for help. I am really new on boost.

--
View this message in context: http://boost-geometry.203548.n3.nabble.com/Interesection-points-tp4025495.html
Sent from the Boost Geometry mailing list archive at Nabble.com.

Geometry list run by mateusz at loskot.net