Syntax
[C/C++:]
void gFillPolygonSet2D(int npol, GPOLYGON *polygons2);
void gFillPolygonSet3D(int npol, GPOLYGON3 *polygons3);
void gFillPolygonSet2D(int fill, int line, int inv, int npol, GPOLYGON *polygons2);
void gFillPolygonSet3D(int fill, int line, int inv, int npol, GPOLYGON3 *polygons3);
[F90:]
subroutine gFillPolygonSet2D(npol, polygons2)
subroutine gFillPolygonSet3D(npol, polygons3)
subroutine gFillPolygonSet2D(fill, line, inv, npol, polygons2)
subroutine gFillPolygonSet3D(fill, line, inv, npol, polygons3)
integer, intent(in) :: fill,line,inv,npol
type (GPOLYGON),intent(in) :: polygons2(*)
type (GPOLYGON3),intent(in) :: polygons3(*)
Arguments
fill
Local polygon fill style (see gSetFillAttribs)
|
= 1 - 256, |
Fill style index (hardware fill) or hatch style index (software fill) |
|
> 256, |
Fill style index (hardware fill) or solid fill (software fill) |
line
Local polygon fill line style (see gSetFillAttribs)
|
= GCURRENT, |
Current line style |
|
= 1 - 256, |
Line style index |
|
> 256, |
Current line style |
inv
Local polygon inverse fill flag (see gSetFillAttribs)
|
= GINVERSE, |
Fill all but polygons (inverse fill) |
npol
Number of polygons in polygon set
polygons2,polygons3
Array of 2D or 3D polygon structures to be filled
lverts [vb.net only]
Integer array containing number of vertices in each polygon
xarr,yarr,zarr [vb.net only]
X, Y and Z arrays containing all points
Description
The routines gFillPolygonSet2D() and gFillPolygonSet3D() fill a set of polygons according to the specified fill and line styles. Each polygon structure consists of a number of vertices and a pointer to an array of 2D or 3D points.
[VB.NET returns all of the ponits in the xarr,yarr,zarr arrays and returns the number of vertices in each polygon in the lverts array].
Each polygon is complete within itself and will automatically be closed if not defined as such. Coordinates are absolute and have no relation to the current drawing position.
These routines can handle up to 2048 points and if the total number of points in the polygon set exceeds this, an error message is generated and no output is done.
The routines may be used with the global filling attributes, set by gSetFillAttribs(), or locally overridding the filling attributes by including the
fill,
line and
inv arguments.
The current position is restored to that prior to calling either routine.
See Also
gFillPolygonSet2D UsagegDrawPolylineSet2D
gDrawPolylineSet3D