POV-Ray : Newsgroups : povray.advanced-users : Grid Interpolation? : Re: Grid Interpolation? Server Time
28 Jul 2024 20:23:25 EDT (-0400)
  Re: Grid Interpolation?  
From: Leroy Whetstone
Date: 1 Feb 2006 00:48:11
Message: <43E065C4.FA8C0820@joplin.com>
I may have something.
 I use natural_spline to interpolate a height field image of MARS. I wanted to
get a better view close up( like on the surface). It should work with any array
of points as long as the points a line on the grid. It's not a macro yet.
 How it works is:
An array is made so that it can hold all the points and all the interpolated
points in between. The original array of points are place and spread out(only
the heights are placed) to what every degree of division you want.
  A spline for a row is made with the placed points as contol points. Then the
interpolated points are calculated and placed. After all the rows with points in
them are done then all the columns can use the array to fill the
control points for another natural_spline.
 If you need something like this, give me awhile, I'll clean it up for you and
send it to ya.

--
Have Fun!


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.