Getting the coordinates of points from a Boost Geometry polygon
I have a simple DLL doing some calculations with Boost Geometry polygons. (Mostly intersections and differences.) Since the DLL will be most likely called from C# code, and from Delphi and who knows from where else, I should convert the result into arrays that everything can handle. UPDATE: I had simplified and somewhat corrected my code. The new code looks completely different, uses a completely different approach ( for_each_point ), and somehow still doesn't compile. My new code: #include <vector> #include <boost/range.hpp> #include <boost/geometry.hpp> #include <boost/geometry/geometries