Boost logo

Geometry :

Subject: [ggl] intersection_segment...
From: Barend Gehrels (Barend.Gehrels)
Date: 2009-06-28 16:38:50

Hi Chris,

> Reverting what I said yesterday, it is actually segment/segment
> intersection I need, because I need to know precisely which segments
> of the linestrings intersects.
OK. Alternatively , you might call ggl::get_intersection_points
directly. It gives you the intersection, plus the segment, plus
information about *how *they intersect. Can be called like this:

    #include <ggl/algorithms/overlay/get_intersection_points.hpp>
    typedef ggl::detail::intersection::intersection_point<P> ip;
    std::vector<ip> ips;
    ggl::get_intersection_points(line1, line2, ips);

ggl::get_intersection_points is also a generic algorithm, so works for
points, linestrings and polygons and multi*.

Regards, Barend

-------------- next part --------------
An HTML attachment was scrubbed...

Geometry list run by mateusz at