[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
3.9.11 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=""
) 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
(C++, Python):void
Torus (const mglData &
r,const mglData &
z,const char *
pen=""
) - C function:
void
mgl_torus (HMGL
gr,const HMDT
r,const HMDT
z,const char *
pen) The function draws surface which is result of curve {r[i], z[i]} rotation.
- Method on
mglGraph
(C++):void
Torus (const mglData &
z,const char *
pen=""
) 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].