Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ set_interior_reflectance_equation(3P+) — PHIGS 1.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

SET INTERIOR REFLECTANCE EQUATION(3P+)  —  MISC. REFERENCE MANUAL PAGES

NAME

SET INTERIOR REFLECTANCE EQUATION −  create a structure element to set the current interior reflectance equation

SYNOPSIS

C Syntax

void
psetintreflecteq ( equation )
Pintequation;reflectance equation

FORTRAN Syntax

SUBROUTINE psireq ( REFLEQ )
INTEGERREFLEQreflectance equation

Required PHIGS Operating States

(PHOP, ∗, STOP, ∗)

DESCRIPTION

Purpose

SET INTERIOR REFLECTANCE EQUATION creates a structure element to set the current interior reflectance equation. 

When the current interior reflectance equation Aspect Source Flag (ASF) is set to INDIVIDUAL, the current value of this attribute defines the interior reflectance equation to be applied to the following output primitives:

• FILL AREA

• FILL AREA 3

• FILL AREA SET

• FILL AREA SET 3

• FILL AREA 3 WITH DATA

• FILL AREA SET 3 WITH DATA

• NON-UNIFORM B-SPLINE SURFACE

• POLYHEDRON 3 WITH DATA

• QUADRILATERAL MESH 3 WITH DATA

• TRIANGLE STRIP 3 WITH DATA

This is a SunPHIGS Extension function based on PHIGS+ and is not part of the PHIGS standard. 

C Input Parameters

All of the following data types are predefined in phigs.h. 

equation
The reflectance equation.  The possible values are:

1PREFL_NONENo Reflectance Calculation Performed
2PREFL_AMBIENTUse Ambient Term
3PREFL_AMB_DIFFUse Ambient and Diffuse Terms
4PREFL_AMB_DIFF_SPECUse Ambient, Diffuse, and Specular Terms

FORTRAN Input Parameters

All of the following data types are predefined in phigs77.h. 

REFLEQ
The reflectance equation.  The possible values are:

1PRNONENo Reflectance Calculation Performed
2PRAMBUse Ambient Term
3PRAMBDUse Ambient and Diffuse Terms
4PRAMDSUse Ambient, Diffuse, and Specular Terms

Execution

Depending on the edit mode, a SET INTERIOR REFLECTANCE EQUATION element with the value reflectance equation is inserted into the open structure after the element pointer or replaces the element pointed at by the element pointer. The element pointer is then updated to point to this SET INTERIOR REFLECTANCE EQUATION element. 

At traversal time, if the specified reflectance equation is not defined, then equation one is substituted. 

When the current interior reflectance equation ASF is set to INDIVIDUAL, area-defining output primitives which follow in the structure network are filled using the current interior reflectance equation. 

When the current interior reflectance equation ASF is set to BUNDLED, the interior reflectance equation is taken from the workstation extended representation indicated by the current interior index.  In this case, the interior reflectance equation set with SET INTERIOR REFLECTANCE EQUATION has no effect. 

ERRORS

002Ignoring function, function requires state (PHOP,∗,STOP,∗)

SEE ALSO

SET INDIVIDUAL ASF (3P)
SET EXTENDED INTERIOR REPRESENTATION (3P+)

Sun Release 4.0  —  Last change: 28 July 1989

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