Syntax
[C/C++:]
void gEnqPolygonWorkspace(int *npoly, int *nvert, int *nfree, int *ident);
[F90:]
subroutine gEnqPolygonWorkspace(npoly, nvert, nfree, ident)
integer, intent(out) :: npoly,nvert,nfree,ident
Arguments
npoly
Number of polygons defined so far
nvert
Number of vertices defined so far
nfree
Number of real words still available in the polygon workspace
ident
Current polygon identifier
Description
The routine gEnqPolygonWorkspace() returns information about the storage of polygons.
npoly and
nvert together describe the amount of space in gDefinePolygonWorkspace() that has been used. Each polygon requires a header of eight real words and each coordinate pair requires two real words.
Thus:
nw = 8*
npoly +2 *
nvert+
nfree = size of polygon workspace (see gDefinePolygonWorkspace())
ident is either 0 or the identifier defined by the last call to gSetPolygonIdent().
npoly,
nvert and
nfree are all set to zero if no polygon workspace has been defined, i.e. no call has been made to gDefinePolygonWorkspace().
See Also
gEnqPolygonWorkspace UsagegDefinePolygonWorkspacegSetPolygonIdent