The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....



GridMat


Unit:SDL_plot3d
Class: TPlot3D
Declaration: GridMat: TMatrix;

The public variable GridMat is a matrix object which contains the z-values of the surface. By default TPlot3D initializes the matrix GridMat to a size 1 by 1. Thus you have to resize the matrix  to your needs before filling it with data.

Hint 1: Please note that the size of the matrix GridMat determines the drawing speed of the 3D surface. In order to be able to rotate smoothly GridMat should not be too large; depending on your computer and graphics system a matrix of no more than 3000 matrix elements would be a good choice.

Hint 2: In the Light Edition the max. size of the matrix GridMat is restricted to 2000 elements (i.e. the product of the number of columns and rows must not exceed 2000).

Example: This property is used in the following example program (see http://www.lohninger.com/examples.html for downloading the code): interpol3d, plot3dhole, plotit3d



Last Update: 2012-Oct-20