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

3.9.8 Torus

These functions draw surface which is result of curve {r, z} rotation around AxialDir axis (see section Other settings). The sizes of 1st dimension must be equal for all arrays r.nx=z.nx. String pen specifies the color (see section Line styles). By default (pen=NULL) color from palette is used (see section Pallete and colors). See also Plot, Axial. See section Torus sample, for sample code and picture.

Method on mglGraph: void Torus (const mglData &r, const mglData &z, const char *pen=NULL)

The function draws surface which is result of curve {r[i], z[i]} rotation.

Method on mglGraph: void Torus (const mglData &z, const char *pen=NULL)

The function draws surface which is result of curve {r[i], z[i]} rotation, where r[i] values are equidistantly distributed in interval [Min.x, Max.x].

Method on mglGraph: void Torus2 (const mglData &a, const char *pen=NULL)

The function draws surface which is result of curve {x[i], y[i]} rotation, where r=a(2*k,:), z=a(2*k+1,:), k \in 0 ... a.ny/2. This function is obsolete – use Torus() and SubData() functions instead.


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