DFAW(3g) — Subroutines
Name
DFAW − Defines a 2D fill area with shape flag primitive.
Operating States: PHOP, ∗, STOP, ∗
Digital PHIGS extension function
Creates a structure element
Syntax
DFAW (SHAPE, N, PXA, PYA)
Argument Data Type Access Description
---------------------------------------------------------------------------
SHAPE Integer Read Shape of the facets
N Integer Read Number of points
PXA, PYA Array of Read Coordinates of the points, in
reals modeling coordinates
---------------------------------------------------------------------------
Constants
Defined Argument Constant Description
---------------------------------------------------------------------------
SHAPE DSHPCX Some facets are self-intersecting
DSHNON Some facets are concave, but none are
self-intersecting
DSHCON All facets are convex
DSHUNK Unknown whether any facets are
self-intersecting
---------------------------------------------------------------------------
Description
DFAW uses a list of points to define a two-dimensional fill area with shape flag primitive.
Depending on the current edit mode, this function either inserts the new structure element directly after the element indicated by the pointer or replaces the element indicated by the pointer. The pointer then points to the new fill area with shape flag element.
The DFAW function, with its bound attributes, defines a polygon interior in two-dimensional (x and y) form. The polygon may be filled but does not have edges. (Compare this function to the fill area set functions, which define polygon interiors and edges.)
A call to DFAW has the following effects during structure traversal:
•Digital PHIGS generates a two-dimensional polygon interior.
•Digital PHIGS closes any unclosed polygon, implicitly.
•Digital PHIGS binds the current values of the fill area interior attributes, as defined in the PHIGS traversal state list, to the fill area with shape flag primitive.
If Digital PHIGS clips an area, it generates new boundaries for the area as part of the displayed interior. Whether Digital PHIGS actually displays these boundaries depends upon the current HLHSR mode. The PSIR interior style setting (for example, HOLLOW) also affects boundary representation.
The interior of a fill area with shape flag primitive is defined as follows:
•For a specified point, a straight line is created starting at that point and continuing to infinity.
•If the number of intersections between the straight line and the fill area boundary is odd, the point is within the fill area.
•If the number of intersections between the straight line and the fill area boundary is even, the point is outside the fill area.
•If the straight line passes through a fill area vertex tangentially, the intersection count is not affected.
The shape flag allows Digital PHIGS to use a more efficient fill algorithm for simple polygons.
If Digital PHIGS is in immediate mode, it performs this function immediately, but the function does not create a structure element.
See Also
PADS
PQIF
PRES
PSBIC
PSBISM
PSBIS
PSBISI
PSBRFM
PSBRFP
PSDCI
PSFCM
PSFDM
PSHRID
PSIASF
PSIC
PSICI
PSII
PSISM
PSIS
PSISI
PSLSS
PSPKID
PSRFM
PSRFP
PSVWI