Function surf3c is similar to surf3 but its coloring is determined by another data.
MGL code:
call 'prepare3d' title 'Surf3C plot':rotate 50 60:light on:alpha on:box:surf3c c d
C++ code:
void smgl_surf3c(mglGraph *gr) { mglData c,d; mgls_prepare3d(&c,&d); if(big!=3) gr->Title("Surf3C plot"); gr->Rotate(50,60); gr->Light(true); gr->Alpha(true); gr->Box(); gr->Surf3C(c,d); }