Boost logo

Boost Users :

Subject: Re: [Boost-users] Is this possible with boost? Linear Interpolation?
From: Klaim - Joël Lamotte (mjklaim_at_[hidden])
Date: 2012-11-06 03:25:47


On Tue, Nov 6, 2012 at 5:59 AM, rakesh patil <prakeshofficial_at_[hidden]>wrote:

> 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.**php>
http://lists.boost.org/**Archives/boost/2012/07/195216.**php>

Joel Lamotte



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net