Next: , Previous: , Up: 2D samples   [Contents][Index]


3.6.5 Mesh sample

Function mesh draw wired surface. You can use meshnum for changing number of lines to be drawn. The sample code is:

int sample(mglGraph *gr)
{
  mglData a;  mgls_prepare2d(&a);
  gr->Title("Mesh plot"); gr->Rotate(50,60);
  gr->Box();  gr->Mesh(a);
  return 0;
}
Example of Mesh()