| [ << ] | [ < ] | [ Up ] | [ > ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
2.7.1 Surf3 sample
Surf3 is one of most suitable (for my opinion) functions to visualize 3D data. It draw the isosurface(s) – surface(s) of constant amplitude (3D analogue of contour lines). You can draw wired isosurfaces if specify ‘#’ style. The sample code is:
int sample(mglGraph *gr)
{
mglData c; mgls_prepare3d(&c);
gr->Title("Surf3 plot"); gr->Rotate(50,60);
gr->Light(true); gr->Alpha(true);
gr->Box(); gr->Surf3(c);
return 0;
}
This document was generated on April 13, 2012 using texi2html 5.0.
