Generates the vertex list and polygon list that represent asphere.
If radius is a 2D (m, n) array, then the radius of each polygon is generated at the corresponding radius. The radius array is scaled to the dimensions (px, py) before use.
You can use the array returned by the GRID_SPHERE function as radius values.
px
py
polygon_list
For more information, see Vertex Lists and Polygon Lists in Chapter 7 of the PV-WAVE User's Guide.
XMax
If XMax is omitted, a longitude of
XMin
If XMin is omitted, a longitude of -
YMax
If YMax is omitted, a latitude of
YMin
If YMin is omitted, a latitude of -
To generate the polygons for a portion of a sphere, rather than an entire sphere, use the XMin, XMax, YMin, and YMax keywords. For example, to work with the central portion of the country from a map of the United States, you might use:
XMin=-110, XMax=-100, YMin=35, YMax=45
PRO sphere_demo1
xval = 512 yval = 512 img = BYTARR(xval, yval) OPENR, 1, !Data_Dir + 'mandril.img' READU, 1, img CLOSE, 1 xval = 128 yval = 128 img = REBIN(img, xval, yval)
POLY_SPHERE, 1.0, xval, yval, vertex_list, $ polygon_list
WINDOW, 0, Colors=128 LOADCT, 4 CENTER_VIEW, Ax=(-75.0), Az=(-90.0), Zoom=0.9
TVSCL, POLYSHADE(vertex_list, polygon_list, /T3d, Shade=img)
TVSCL, img
END
grid_demo5
, sphere_demo2
, and sphere_demo3
demonstration programs in:
wavedir
/demo/arl
wavedir
:[DEMO.ARL]
wavedir
\demo\arl
wavedir
is the main PV-WAVE directory.