Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

plpoly3(3plplot) [debian man page]

PLPOLY3(3plplot)						    PLplot API							  PLPOLY3(3plplot)

NAME
plpoly3 - Draw a polygon in 3 space SYNOPSIS
plpoly3(n, x, y, z, draw, ifcc) DESCRIPTION
Draws a polygon in 3 space defined by n points in x, y, and z. Setup like plline3(3plplot), but differs from that function in that plpoly3(3plplot) attempts to determine if the polygon is viewable depending on the order of the points within the arrays and the value of ifcc. If the back of polygon is facing the viewer, then it isn't drawn. If this isn't what you want, then use plline3(3plplot) instead. The points are assumed to be in a plane, and the directionality of the plane is determined from the first three points. Additional points do not have to lie on the plane defined by the first three, but if they do not, then the determination of visibility obviously can't be 100% accurate... So if you're 3 space polygons are too far from planar, consider breaking them into smaller polygons. 3 points define a plane :-). Bugs: If one of the first two segments is of zero length, or if they are co-linear, the calculation of visibility has a 50/50 chance of being correct. Avoid such situations :-). See x18c.c for an example of this problem. (Search for 20.1). Redacted form: plpoly3(x, y, z, code) This function is used in example 18. ARGUMENTS
n (PLINT, input) Number of points defining line. x (PLFLT *, input) Pointer to array with x coordinates of points. y (PLFLT *, input) Pointer to array with y coordinates of points. z (PLFLT *, input) Pointer to array with z coordinates of points. draw (PLBOOL *, input) Pointer to array which controls drawing the segments of the polygon. If draw[i] is true, then the polygon segment from index [i] to [i+1] is drawn, otherwise, not. ifcc (PLBOOL, input) If ifcc is true the directionality of the polygon is determined by assuming the points are laid out in a counter-clockwise order. Otherwise, the directionality of the polygon is determined by assuming the points are laid out in a clockwise order. AUTHORS
Geoffrey Furnish and Maurice LeBrun wrote and maintain PLplot. This man page was automatically generated from the DocBook source of the PLplot documentation, maintained by Alan W. Irwin and Rafael Laboissiere. SEE ALSO
PLplot documentation at http://plplot.sourceforge.net/resources. August, 2012 PLPOLY3(3plplot)

Check Out this Related Man Page

PLBIN(3plplot)							    PLplot API							    PLBIN(3plplot)

NAME
plbin - Plot a histogram from binned data SYNOPSIS
plbin(nbin, x, y, opt) DESCRIPTION
Plots a histogram consisting of nbin bins. The value associated with the i'th bin is placed in x[i], and the number of points in the bin is placed in y[i]. For proper operation, the values in x[i] must form a strictly increasing sequence. By default, x[i] is the left-hand edge of the i'th bin. If opt=PL_BIN_CENTRED is used, the bin boundaries are placed midway between the values in the x array. Also see plhist(3plplot) for drawing histograms from unbinned data. Redacted form: General: plbin(x, y, opt) Perl/PDL: plbin(nbin, x, y, opt) Python: plbin(nbin, x, y, opt) This function is not used in any examples. ARGUMENTS
nbin (PLINT, input) Number of bins (i.e., number of values in x and y arrays.) x (PLFLT *, input) Pointer to array containing values associated with bins. These must form a strictly increasing sequence. y (PLFLT *, input) Pointer to array containing number of points in bin. This is a PLFLT (instead of PLINT) array so as to allow histograms of proba- bilities, etc. opt (PLINT, input) Is a combination of several flags: opt=PL_BIN_DEFAULT: The x represent the lower bin boundaries, the outer bins are expanded to fill up the entire x-axis and bins of zero height are simply drawn. opt=PL_BIN_CENTRED|...: The bin boundaries are to be midway between the x values. If the values in x are equally spaced, the values are the center values of the bins. opt=PL_BIN_NOEXPAND|...: The outer bins are drawn with equal size as the ones inside. opt=PL_BIN_NOEMPTY|...: Bins with zero height are not drawn (there is a gap for such bins). AUTHORS
Geoffrey Furnish and Maurice LeBrun wrote and maintain PLplot. This man page was automatically generated from the DocBook source of the PLplot documentation, maintained by Alan W. Irwin and Rafael Laboissiere. SEE ALSO
PLplot documentation at http://plplot.sourceforge.net/resources. August, 2012 PLBIN(3plplot)
Man Page