Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ pfa3(3g) — PHIGS 5.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

PFA3(3g)  —  Subroutines

 
 

Name

PFA3 − Defines a 3D fill area primitive. 

Operating States: PHOP, ∗, STOP, ∗
PHIGS standard function
Creates a structure element

Syntax

PFA3 (N, PXA, PYA, PZA)

Argument     Data Type        Access    Description
---------------------------------------------------------------------------
N            Integer          Read      Number of points
PXA(N),      Array of reals   Read      Coordinates of the points, in
PYA(N),                                 modeling coordinates, that
PZA(N)                                  specify the fill area
---------------------------------------------------------------------------

Description

PFA3 uses a list of points to define a three-dimensional fill area 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 3 element. 

The PFA3 function, with its bound attributes, defines a polygon interior in three-dimensional (x, y, and z) 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 this function has the following effects during structure traversal:

•Digital PHIGS generates a three-dimensional polygon interior. 

•Digital PHIGS closes an 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 3 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 on the current HLHSR mode.  The PSIR interior style setting (for example, HOLLOW) also affects boundary representation. 

The interior of a fill area 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. 

If Digital PHIGS is in immediate mode, it performs this function immediately, but the function does not create a structure element.  If you have information about the shape of the fill area, use the DFAW3 function instead of this function for increased performance.

All vertices of a fill area 3 element must be coplanar. 

See Also

PADS
PFAS
PFAS3D
PQIF
PRES
PSBIC
PSBISM
PSBIS
PSBISI
PSBRFM
PSBRFP
PSDCI
PSFCM
PSFDM
PSGMT
PSHRID
PSIASF
PSIC
PSICI
PSII
PSISM
PSIS
PSISI
PSLSS
PSLMT
PSPKID
PSRFM
PSRFP
PSVWI

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026