GFA(3) output primitive for filling polygonal areas.

## SYNOPSIS

CALL GFA (N, X, Y)

## C-BINDING SYNOPSIS

#include <ncarg/gks.h>

void gfill_area(const Gpoint_list *point_list);

## DESCRIPTION

N
(Integer, Input) - The number of points in the polygon to be filled. N must be greater than two.
X (N)
(Real Array, Integer) - The X world coordinates of the polygon.
Y (N)
(Real Array, Integer) - The Y world coordinates of the polygon.

## USAGE

The area to be filled is delimited by the sequence of straight line segments connecting the successive points (X(1), Y(1)), (X(2), Y(2)), ..., (X(N), Y(N)). The last point in the polygon is connected to the first point with a straight line segment in the case that (X(N), Y(N)) does not equal (X(l), Y(l)).

Given a polygon whose edges cross each other, it becomes ambiguous as to what constitutes the "inside" of the polygon. The algorithm used in GKS is as follows: for a given point, draw a ray starting at that point and going to infinity in any direction; if the number of intersections between the ray and the polygon is odd, the point is within the polygon, otherwise it is outside. If the straight line passes through a polygon vertex tangentially, the intersection count is not affected. If a point is within the polygon, it is included in the area to be filled.

Several interior styles (hollow, solid, and various hatch patterns) can be selected. See the man pages for gsfais and gsfasi for these.

Note well: By default in GKS, the interior fill style is hollow, or no fill. If you call GFA and do not get a filled interior as you expected, you will probably need to call GSFAIS to set the fill style to something other than "hollow".

## ACCESS

To use GKS routines, load the NCAR GKS-0A library ncarg_gks.
{"ft_lang_label":"__label__en","ft_lang_prob":0.8535081,"math_prob":0.94998676,"size":1836,"snap":"2022-40-2023-06","text_gpt3_token_len":457,"char_repetition_ratio":0.123908296,"word_repetition_ratio":0.032051284,"special_character_ratio":0.24509804,"punctuation_ratio":0.13172042,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.96960264,"pos_list":[0,1,2],"im_url_duplicate_count":[null,null,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2022-10-07T06:23:25Z\",\"WARC-Record-ID\":\"<urn:uuid:bf5f465c-6554-42d7-802f-8e5f21132778>\",\"Content-Length\":\"10099\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:0090faa2-b91b-497b-b606-39e4bedc3914>\",\"WARC-Concurrent-To\":\"<urn:uuid:c75cd5bc-02a8-4cd7-b577-3215212ccea4>\",\"WARC-IP-Address\":\"104.21.82.31\",\"WARC-Target-URI\":\"https://manpages.org/gfa/3\",\"WARC-Payload-Digest\":\"sha1:UJAGG7HGO4YKFHBRBOXO74MBXZUCRJ36\",\"WARC-Block-Digest\":\"sha1:SFZTSTQS4LTQFWJOAZCDFHWDKEV5FJ6V\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2022/CC-MAIN-2022-40/CC-MAIN-2022-40_segments_1664030337971.74_warc_CC-MAIN-20221007045521-20221007075521-00711.warc.gz\"}"}