plw3d
( | basex , |
| basey , | |
| height , | |
| xmin , | |
| xmax , | |
| ymin , | |
| ymax , | |
| zmin , | |
| zmax , | |
| alt , | |
az
); |
Configure the transformations required for projecting a 3D surface on an existing 2D window. Those transformations (see the section called “Surface Plots”) are done to a rectangular cuboid enclosing the 3D surface which has its limits expressed in 3D world coordinates and also normalized 3D coordinates (used for interpreting the altitude and azimuth of the viewing angle). The transformations consist of the linear transform from 3D world coordinates to normalized 3D coordinates, and the 3D rotation of normalized coordinates required to align the pole of the new 3D coordinate system with the viewing direction specified by altitude and azimuth so that x and y of the surface elements in that transformed coordinate system are the projection of the 3D surface with given viewing direction on the 2D window.
The enclosing rectangular cuboid for the surface plot is
defined by ,
xmin,
xmax,
ymin,
ymax and
zmin in 3D
world coordinates. It is mapped into the same rectangular
cuboid with normalized 3D coordinate sizes of
zmax by
basex by
basey so that
height maps to
xmin-,
basex/2 maps to
xmax,
basex/2 maps to
ymin-,
basey/2 maps to
ymax,
basey/2 maps to
zmin0 and
maps to
zmax. The resulting
rectangular cuboid in normalized coordinates is then viewed by an observer at altitude
height and azimuth
alt. This routine must be
called before az plbox3 or any of the 3D surface plotting routines;
plmesh, plmeshc, plot3d,
plot3dc, plot3dcl, plsurf3d, plsurf3dl or plfill3.
basex
(PLFLT, input)
The normalized x coordinate size of the rectangular cuboid.
basey
(PLFLT, input)
The normalized y coordinate size of the rectangular cuboid.
height
(PLFLT, input)
The normalized z coordinate size of the rectangular cuboid.
xmin
(PLFLT, input)
The minimum x world coordinate of the rectangular cuboid.
xmax
(PLFLT, input)
The maximum x world coordinate of the rectangular cuboid.
ymin
(PLFLT, input)
The minimum y world coordinate of the rectangular cuboid.
ymax
(PLFLT, input)
The maximum y world coordinate of the rectangular cuboid.
zmin
(PLFLT, input)
The minimum z world coordinate of the rectangular cuboid.
zmax
(PLFLT, input)
The maximum z world coordinate of the rectangular cuboid.
alt
(PLFLT, input)
The viewing altitude in degrees above the xy plane of the rectangular cuboid in normalized coordinates.
az
(PLFLT, input)
The viewing azimuth in degrees of the rectangular
cuboid in normalized coordinates. When
, the observer is
looking face onto the zx plane of the rectangular
cuboid in normalized coordinates, and as
az=0 is increased, the
observer moves clockwise around that cuboid when viewed from above
the xy plane.az
Redacted form: plw3d(basex, basey, height, xmin, xmax, ymin, ymax, zmin, zmax, alt, az)
This function is examples 8, 11, 18, and 21.