11.125 Sample ‘surf3ca

Function surf3c is similar to surf3 but its coloring and transparency is determined by another data arrays.

MGL code:

call 'prepare3d'
title 'Surf3CA plot':rotate 50 60:light on:alpha on:box:surf3ca c d c

C++ code:

void smgl_surf3ca(mglGraph *gr)
{
	mglData c,d;	mgls_prepare3d(&c,&d);
	if(big!=3)	gr->Title("Surf3CA plot");
	gr->Rotate(50,60);	gr->Light(true);	gr->Alpha(true);
	gr->Box();	gr->Surf3CA(c,d,c);
}

Sample surf3ca