[Boost-users] Is this possible with boost? Linear Interpolation?

396 views
Skip to first unread message

rakesh patil

unread,
Nov 5, 2012, 11:59:21 PM11/5/12
to boost...@lists.boost.org
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

Klaim - Joël Lamotte

unread,
Nov 6, 2012, 3:25:47 AM11/6/12
to Boost users list
Look in Boost.Geometry, otherwise maybe Boost.Tweener (not yet proprosed for inclusion in boost) would provide what you need.
See:

Joel Lamotte


rakesh patil

unread,
Nov 6, 2012, 4:43:44 AM11/6/12
to boost...@lists.boost.org
Hey Joel,

Thanks for your quick reply. I check those links. If I am not mis-understood, that library can be used to compute intermediate values for a given range. In my case it is a polyline. The track of polyline must be maintained properly. The topology must not change here. Even if it changes, the change must not be a major one. So this one won't be of much use as of now.
And before posting the question I checked Boost.Geometry. But I didn't find what I want. Any other possibilities other than writing my own code to do this?

Thanks

Regards
Reply all
Reply to author
Forward
0 new messages