RotatingPlot.SetGridResolution

Prototypes

void SetGridResolution( <int nNumXLines, int nNumYLines> )

Parameters

int nNumXLines, nNumYLines
See Remarks

Remarks

This method defines the computational grid used to fit a surface to the data. The algorithm that computes the surface uses a grid superimposed on the xy-plane. This grid consists of (nNumXLines - 1) subdivisions along the X axis and (nNumYLines - 1) subdivisions along the Y axis. Generally, more subdivisions results in a smoother surface whereas fewer subdivisions results in a rougher surface. Calling this method without any parameters restores the default values for nNumXLines and nNumYLines.

Example
x = { 0 10 10  0 1 9 9 1 2 8 8 2 3 7 7 3 4 6 6 4 5 };
y = { 0  0 10 10 1 1 9 9 2 2 8 8 3 3 7 7 4 4 6 6 5 };
z = { 0  0  0  0 1 1 1 1 2 2 2 2 3 3 3 3 4 4 4 4 5 };
declare RotatingPlot plot = RotatingPlot.Create( "Pyramid", x, y, z, false );
plot.SetDrawingMode( SMOOTHCOLORMESH );
plot.SetGridResolution( 40, 40 );
plot.ShowWindow();