Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ putc(3g) — PHIGS 5.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

PUTC(3g)  —  Subroutines

Name

PUTC − Unpacks trimming curve data for the PBSS3D element or primitive. 

Operating States: PHOP, ∗, ∗, AROP
PHIGS standard function
 

Syntax

PUTC (TCLDR, TCREC, ILOOP, ITCRV, MLDR, ITNKA, INTCCP, ERRIND,
NLOOP, NCURVE, TACRI, LDR, DATREC, TCVF, TSORD, TNKA, TKNOTS, TPARL, TRTYPE,
NTCCP, TPWUA, TPWVA, TPWWA)

Argument       Data Type      Access    Description
-------------------------------------------------------------------------
TCLDR          Integer        Read      Total number of array elements used
                                        in TCREC
TCREC(TCLDR)   Character ∗80  Read      Trimming curve data record
ILOOP          Integer        Read      Which loop
ITCRV          Integer        Read      Which curve in the loop
MLDR           Integer        Read      Size of the trimming curve data
                                        record
ITNKA          Integer        Read      Size of the TKNOTS array
INTCCP         Integer        Read      Size of the TPWUA, TPWVA, and TPWWA
                                        arrays
ERRIND         Integer        Write     Error indicator
NLOOP          Integer        Write     Number of trimming loops
NCURVE         Integer        Write     Number of curves in the current loop
TACRI          Integer        Write     Trimming curve approximation type
LDR            Integer        Write     Number of array elements used in
DATREC
DATREC(MLDR)   Character ∗80  Write     Data record
TCVF           Integer        Write     Trimming curve visibility flag
TSORD          Integer        Write     Trimming curve spline order
TNKA           Integer        Write     Number of trimming curve spline
                                        knots in the TKNOTS array
TKNOTS(ITNKA)  Real           Write     Trimming curve spline knots
TPARL(2)       Real           Write     Trimming curve parameter range limits
TRTYPE         Integer        Write     Trimming curve spline rationality
NTCCP          Integer        Write     Number of trimming curve spline
                                        control points
TPWUA(INTCCP)  Real           Write     Trimming curve U control point
                                        components
TPWVA(INTCCP)  Real           Write     Trimming curve v control point
                                        components
TPWWA(INTCCP)  Real           Write     Trimming curve w control point
                                        components
-------------------------------------------------------------------------

Constants

Defined Argument     Constant     Description
-------------------------------------------------------------------------
TACRI                PWDCA        Workstation-dependent method
                     PCBKCA       Constant parametric subdivision between
                                  knots
                     PCSWCA       Metric, in world coordinates
                     PCSNCA       Metric, in normalized projection
                                  coordinates
                     PCSDCA       Metric, in device coordinates
                     PCDWCA       Chordal deviation, in world coordinates
                     PCDNCA       Chordal deviation, in normalized
                                  projection coordinates
                     PCDDCA       Chordal deviation, in device coordinates
                     PRWCA        Relative, in world coordinates
                     PRNCA        Relative, in normalized projection
                                  coordinates
                     PRDCA        Relative, in device coordinates
                     DCSDCA       Constant subdivision
                     DIDCA        Implementation-dependent method
TRTYPE               PRAT         Rational (4D) control points
                     PNRAT        Nonrational (3D) control points
-------------------------------------------------------------------------

Description

PUTC unpacks the trimming curve data for the PBSS3D structure element or primitive. 

Data Record Information

If TACRI is PWDCA, there is no data record. 

If TACRI is PCBKCA or DCSDCA, the data record has the following format:

INTEGER IL    = 1     Number of integer values
INTEGER IA(1) =       Count
        RL    = 0
        RA    = ()
        SL    = 0
        LSTR  = ()
        STR   = ()

If TACRI is PCSWCA, PCSNCA, PCSDCA, PCDWCA, PCDNCA, PCDDCA, PRWCA, PRNCA, or PRDCA, the data record has the following format:

        IL    = 0
        IA    = ()
        RL    = 1
INTEGER RA(1) =       Approximation value
        SL    = 0
        LSTR  = ()
        STR   = 0

If TACRI is DIDCA, the data record has the following format:

        IL    = 0
        IA    = 0
        RL    = 1    Number of reals
        RA(1) =      Approximation value
        SL    = 0
        LSTR  = ()
        STR   = ()

See Also

PBSS3D
PPTC

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