Boost logo

Geometry :

Subject: Re: [geometry] Intersection of linestring with polygon
From: edd cmaugo (edcpwk_at_[hidden])
Date: 2012-02-07 04:42:03


I used this example :

http://svn.boost.org/svn/boost/sandbox/geometry/other/exp2/example/05_b_overlay_linestring_polygon_example.cpp

By ordering the turn points, you can manage to get the parts of the
linetring that lies inside or outside your polygon.

2012/2/7 Sebastian <boost_at_[hidden]>

>
> edd cmaugo wrote
> >
> > Alternately, you can use boost::geometry::get_turns() and
> > boost::geometry::detail::overlay::turn_info to make it by yourself.
> >
>
> I'm quite new to Boost and Boost geometry. Is "get_turns()" documented
> anywhere? A quick search on Google didn't reveal anything, there's nothing
> in
>
> http://www.boost.org/doc/libs/1_48_0/libs/geometry/doc/html/geometry/indexes/alphabetical_index.html
> nor in http://geometrylibrary.geodan.nl/modules.html. Also there is no
> documentation in the source code itself (at least I couldn't find
> anything).
>
> Or could you provide an example for me? Thanks.
>
> --
> View this message in context:
> http://boost-geometry.203548.n3.nabble.com/Intersection-of-linestring-with-polygon-tp3508279p3721981.html
> Sent from the Boost Geometry mailing list archive at Nabble.com.
> _______________________________________________
> Geometry mailing list
> Geometry_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/geometry
>



Geometry list run by mateusz at loskot.net