Next: Cloud sample, Previous: Surf3A sample, Up: 3D samples [Contents][Index]
Function surf3ca is similar to surf3 but its color and transparency is determined by another data. The sample code is:
int sample(mglGraph *gr) { mglData c,d; mgls_prepare3d(&c,&d); gr->Title("Surf3CA plot"); gr->Rotate(50,60); gr->Light(true); gr->Alpha(true); gr->Box(); gr->Surf3CA(c,d,c); return 0; }