Subject: Re: [geometry] one more variation to "transform"/"convert"/"for_each_point"
From: Mateusz Loskot (mateusz_at_[hidden])
Date: 2012-02-16 05:45:26
On 16 February 2012 09:44, Bruno Lalande <bruno.lalande_at_[hidden]> wrote:
> Actually I was wondering if we shouldn't rather just provide a
> "geometry_point_iterator" and a "geometry_segment_iterator" (implemented for
> the geometries for which it makes sense). for_each_point is nothing more
> than a std::for_each with a different iteration, and the transform_points
> requested here is also just a std::transform with different iteration.
> MyPoly p;
> auto points boost::geometry::point_range(p); // this returns a pair of
> geometry_point_iterator or something along those lines
> std::for_each(p, do_something);
> std::transform(p, transformation, output);
> // and any other std algorithm....
I like Bruno's suggestion to exploit most of flexibility of the
AFAIR, there was segment iterator at some point, though it would need
-- Mateusz Loskot, http://mateusz.loskot.net
Geometry list run by mateusz at loskot.net