11.54 Sample ‘fall

Function fall draw waterfall surface. You can use meshnum for changing number of lines to be drawn. Also you can use ‘x’ style for drawing lines in other direction.

MGL code:

call 'prepare2d'
title 'Fall plot':rotate 50 60:box:fall a

C++ code:

void smgl_fall(mglGraph *gr)
{
	mglData a;	mgls_prepare2d(&a);
	if(big!=3)	gr->Title("Fall plot");
	gr->Rotate(50,60);	gr->Box();	gr->Fall(a);
}

Sample fall