Reference Guide > S Routines > SCALE3D Procedure
  

SCALE3D Procedure
Standard Library procedure that scales a three-dimensional unit cube into the viewing area.
Usage
SCALE3D
Parameters
None.
Keywords
None.
Discussion
SCALE3D is useful for certain forms of perspective transformation, although it does not work for all forms.
SCALE3D does not use explicit parameters, but rather modifies the system variable !P.T for use as the implicit input and output parameters. Eight three-dimensional data points are created at the vertices of the three-dimensional unit cube. These eight points are transformed by !P.T. The system is translated to bring the minimum (X, Y, Z) point to the origin, and then scaled to make each coordinate’s maximum value equal to 1.
Example
For an example, see the PV‑WAVE User’s Guide.
See Also
System Variables: !P.T

Version 2017.0
Copyright © 2017, Rogue Wave Software, Inc. All Rights Reserved.