Hi everyone! The interpolate extension dialogue box offers the choice of two 'methods'. I can't find a reference that explains the difference between the two. Can someone point me in the right direction?
In passing, I note that this extension (not the LPE, but the older one) sometimes returns the interpolated paths offset from the original paths. Is this a bug, or is it intentional? Does this serve some function that I don't know about?
Thanks, Dru
Interpolation Methods
Interpolation Methods
Your mind is what you think it is.
Re: Interpolation Methods
More information on that would be great.
The only thing I've ever found is a brief example at http://www.inkscape.org/doc/interpolate/tutorial-interpolate.en.html.
The only thing I've ever found is a brief example at http://www.inkscape.org/doc/interpolate/tutorial-interpolate.en.html.
Re: Interpolation Methods
1
Last edited by druban on Tue May 28, 2013 7:54 pm, edited 1 time in total.
Your mind is what you think it is.
Re: Interpolation Methods
I'll point you to the interp.py source file ;-)druban wrote:The interpolate extension dialogue box offers the choice of two 'methods'. I can't find a reference that explains the difference between the two. Can someone point me in the right direction?
From the (sparse) comments:
Code: Select all
(…)
if self.options.method == 2:
#subdivide both paths into segments of relatively equal lengths
(…)
else:
#which path has fewer segments?
lengthdiff = numsegs(start) - numsegs(end)
#swap shortest first
if lengthdiff > 0:
start, end = end, start
#subdivide the shorter path
(…)
#if swapped, swap them back
if lengthdiff > 0:
start, end = end, start
#break paths so that corresponding subpaths have an equal number of segments
(…)
#create an interpolated path for each interval
Difficult to tell - can you illustrate this with an SVG example (the 2 paths, the result after interpolazion and the extension options used)? We are talking about a recent prerelease build of Inkscape or did you use 0.46?druban wrote:In passing, I note that this extension (not the LPE, but the older one) sometimes returns the interpolated paths offset from the original paths. Is this a bug, or is it intentional?