manpagez: man pages & more
info mathgl
Home | html | info | man
[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

3.14.6 TriPlot

Method on mglGraph: void TriPlot (const mglData &id, const mglData &x, const mglData &y, const mglData &z, const char *sch=NULL)

The function draws the surface of triangles. Triangle vertexes are set by indexes id of data points {x[i], y[i], z[i]}. String sch sets the color scheme. Previous color scheme is used by default. If string contain ‘#’ then wire plot is produced. First dimensions of id must be 3 or greater. Arrays x, y, z must have equal sizes. See also Dots, Crust.

Method on mglGraph: void TriPlot (const mglData &id, const mglData &x, const mglData &y, const char *sch=NULL, float zVal=NAN)

The same as previous with z[i]=zVal.


© manpagez.com 2000-2026
Individual documents may contain additional copyright information.