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

3.9.12 Tube

These functions draw the tube with variable radius r[i] along the curve between points {x[i], y[i], z[i]}. The plots are drawn for each row if one of the data is the matrix. By any case the sizes of 1st dimension must be equal for all arrays x.nx=y.nx=z.nx=r.nx. String pen specifies the color and style of line and marks (see section Line styles). By default (pen="") solid line with color from palette is used (see section Pallete and colors). See also Plot. See section Tube sample, for sample code and picture.

Method on mglGraph (C++, Python): void Tube (const mglData &x, const mglData &y, const mglData &z, const mglData &r, const char *pen="")
Method on mglGraph (C++, Python): void Tube (const mglData &x, const mglData &y, const mglData &z, float r, const char *pen="")
C function: void mgl_tube_xyzr (HMGL gr, const HMDT x, const HMDT y, const HMDT z, const HMDT r, const char *pen)
C function: void mgl_tube_xyz (HMGL gr, const HMDT x, const HMDT y, const HMDT z, float r, const char *pen)

The function draws tube with radius r between points {x[i], y[i], z[i]} in 3D space.

Method on mglGraph (C++, Python): void Tube (const mglData &x, const mglData &y, const mglData &r, const char *pen="")
Method on mglGraph (C++, Python): void Tube (const mglData &x, const mglData &y, float r, const char *pen="")
C function: void mgl_tube_xyr (HMGL gr, const HMDT x, const HMDT y, const HMDT r, const char *pen)
C function: void mgl_tube_xy (HMGL gr, const HMDT x, const HMDT y, float r, const char *pen)

The function draws tube with radius r between points {x[i], y[i]} in plane z=zVal (default in plane z=Min.z).

Method on mglGraph (C++, Python): void Tube (const mglData &y, const mglData &r, const char *pen="")
Method on mglGraph (C++, Python): void Tube (const mglData &y, float r, const char *pen="")
C function: void mgl_tube_r (HMGL gr, const HMDT y, const HMDT r, const char *pen)
C function: void mgl_tube (HMGL gr, const HMDT y, float r, const char *pen)

The function draws tube with radius r between points {x[i], y[i]} in plane z=zVal (default in plane z=Min.z), where x[i] values are equidistantly distributed in interval [Min.x, Max.x].


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]
© manpagez.com 2000-2024
Individual documents may contain additional copyright information.