
Geometry : 
Subject: Re: [geometry] one more variation to "transform"/"convert"/"for_each_point"
From: Bruno Lalande (bruno.lalande_at_[hidden])
Date: 20120216 04:44:23
Hi,
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....
Regards
Bruno
Geometry list run by mateusz at loskot.net