Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ deformation(3G) — HP-UX ANSI C A.10.11

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

polygon_with_data3d(3G)

polyhedron_with_data(3G)

polymarker_with_data3d(3G)

quadrilateral_mesh_with_data3d(3G)

triangular_strip_with_data3d(3G)

deformation_mode(3G)

NAME

deformation_mode − select the deformation mode to use and a deformation factor

SYNOPSIS

C Syntax:

void deformation_mode ( fildes, mode, rfactor, ifactor );
int fildes, mode;
float rfactor, ifactor;

FORTRAN77 Syntax:

subroutine deformation_mode ( fildes, mode, rfactor, ifactor )
integer*4 fildes, mode
real rfactor, ifactor

Pascal Syntax:

procedure deformation_mode ( fildes, mode:integer;
rfactor, ifactor:real );

DESCRIPTION

Input Parameters

fildes Integer file descriptor returned by gopen when an I/O path to a graphic device is opened. 

mode The following flags are used to set the deformation characteristics:

DEFORMATION_OFF deformation calculations turned off. 

DEFORMATION_REAL_VALUE use the real portion of the product of the value and the factor. 

DEFORMATION_IMAGINARY_VALUE use the imaginary portion of the product of the value and the factor. 

DEFORMATION_MAGNITUDE can be ORed with the above to use the magnitude of the real or imaginary portions. 

No DEFORMATION_MAGNITUDE
DEFORMATION_REAL_VALUE DEFORMATION_IMAGINARY_VALUE
x += (rfactor*dx)-(ifactor*idx) (ifactor*dx)+(rfactor*idx)
y += (rfactor*dy)-(ifactor*idy) (ifactor*dy)+(rfactor*idy)
z += (rfactor*dz)-(ifactor*idz) (ifactor*dz)+(rfactor*idz)
DEFORMATION_MAGNITUDE
DEFORMATION_REAL_VALUE DEFORMATION_IMAGINARY_VALUE
x += rfactor*sqrt(dx*dx+idx*idx)*signx ifactor*sqrt(dx*dx+idx*idx)*signx
y += rfactor*sqrt(dy*dy+idy*idy)*signy ifactor*sqrt(dy*dy+idy*idy)*signy
z += rfactor*sqrt(dz*dz+idz*idz)*signz ifactor*sqrt(dz*dz+idz*idz)*signz

       Where sign* is the sign of the larger of |d*| and |id*|. 

rfactor, ifactor
The complex number to be used as the global multiplication factor. rfactor is the real portion of the number and ifactor is the imaginary portion. 

Discussion

The deformation_mode procedure selects either the real or imaginary portion of the product of the deformation factor and per vertex values to use as the actual deformation value to add to the coordinate values of each vertex.  This parameter can also be used to turn off the deformation calculations (DEFORMATION_OFF).

The parameters rfactor and ifactor specify a complex deformation factor by which to multiply the per vertex deformation values. 

DEFAULTS

mode = DEFORMATION_REAL_VALUE
rfactor = 1.0 ifactor = 0.0

SEE ALSO

polygon_with_data3d(3G), polyhedron_with_data(3G), polymarker_with_data3d(3G), quadrilateral_mesh_with_data3d(3G), triangular_strip_with_data3d(3G). 

 

Hewlett-Packard Company  —  November 03, 1994

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