GINO Graphics Suite - GINO v9.0  

gDrawPolylineSet

Syntax

[C/C++:]
void gDrawPolylineSet2D(int npol, GPOLYGON *polylines2);
void gDrawPolylineSet3D(int npol, GPOLYGON3 *polylines3);
[F90:]
subroutine gDrawPolylineSet2D(npol, polylines2)
subroutine gDrawPolylineSet3D(npol, polylines3)

integer, intent(in) :: npol
type (GPOLYGON),intent(in) :: polylines2(*)
type (GPOLYGON3),intent(in) :: polylines3(*)

Arguments

npol
Number of polylines in polyline set

polylines2,polylines3
Array of 2D or 3D polyline structures to be drawn

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 gDrawPolylineSet2D() and gDrawPolylineSet3D() draw a set of polygons. 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 polyline set exceeds this, an error message is generated and no output is done.

The current position is restored to that prior to calling either routine.

See Also

gDrawPolylineSet Usage
gFillPolygonSet2D
gFillPolygonSet3D