Is this possible with boost? Linear Interpolation?

Hello, I have a set of xy points(forms a polyline). What I want to do is, with the help of existing set of points, I need to redistribute the number of points such that the first and last point remain is same position. The intermediate points will change. For example, initally I have set of 10 points. I want to redistribute this polyline containing 10 points into 40 points. But the first and last point must remain as it is. Internal points may be adjusted. I guess interpolation should be used for this. What I want to know is that whether this is possible to do using boost c++ library? Thanks Regards

On Tue, Nov 6, 2012 at 5:59 AM, rakesh patil
I have a set of xy points(forms a polyline). What I want to do is, with the help of existing set of points, I need to redistribute the number of points such that the first and last point remain is same position. The intermediate points will change.
For example, initally I have set of 10 points. I want to redistribute this polyline containing 10 points into 40 points. But the first and last point must remain as it is. Internal points may be adjusted. I guess interpolation should be used for this. What I want to know is that whether this is possible to do using boost c++ library?
Look in Boost.Geometry, otherwise maybe Boost.Tweener (not yet proprosed for inclusion in boost) would provide what you need. See: http://lists.boost.org/**Archives/boost/2012/07/194979.**phphttp://lists.boost.org/Archives/boost/2012/07/194979.php http://lists.boost.org/**Archives/boost/2012/07/195216.**phphttp://lists.boost.org/Archives/boost/2012/07/195216.php Joel Lamotte
participants (2)
-
Klaim - Joël Lamotte
-
rakesh patil