Re: Interpolating a Surface

Rene Brun (Rene.Brun@cern.ch)
Mon, 02 Nov 1998 07:39:24 +0100


FLANDERS, JOEL M. (JSC-SN) wrote:
>
> I have a set of 10 (x,y,z) data points. I would like to interpolate a three
> dimensional surface grid from these points. I have not been able to do this
> with ROOT.
>
> Could you explain how to do this using ROOT?
>

You cannot do that with the current version of Root in the general
case of non-equidistant data points. This general case requires
a new class (say TGraph3D) to be implemented with the usual viewing
options.
If your points are equidistant, you can use the class TH2F
and fill each cell with the Z values, then use the drawing options
SURF,etc.

Rene Brun