Visible lines are drawn as solid lines by default. If hidden lines
are requested they are drawn with dotted lines by default.
Both line styles are controlled by keywords to sphinit:
VIS_STYLE = default linestyle for visible lines (def=0).
HID_STYLE = default linestyle for hidden lines (def=1).
The visible hemisphere is set on the call to sphinit. By default the visible hemisphere is the front of the sphere. If set to something different for part of the figure it may be set back to the front using the /FRONT keyword on another call to sphinit.
The keyword /TOP set the visible hemisphere to the top of the sphere. When the pole appears on the edge of the sphere the top hemisphere is centered at the top of the sphere as seen by the viewer. As the pole rotates into view, by setting the central latitude higher than 0 (in sphinit), the top hemisphere also rotates toward the viewer.
When the central latitude is 0 /TOP gives:
When the central latitude is 40 /TOP gives:
The visible hemisphere may be controlled in general using
two keywords:
VPA = Position angle of visible hemisphere center (def=0).
VAZ = Line of sight ang. of vis. hemisphere center (def=0).
The default values correspond to /FRONT.
Note, a position angle of 0 is directly above the center
of the sphere as seen by the
viewer. Position angles increase in the CCW direction.
The Line of sight angle is 0 when the center of the visible
hemisphere appears in the center of the sphere. It is 90 degrees
when the center of the visible hemisphere appears at the edge of the sphere.
Setting a clipping sphere There is no default clipping sphere. A clipping sphere is set by specifying its radius in a call to one of the drawing routines, using the keyword MAXRAD=r. Anything behind this clipping sphere is considered a hidden line. As usual, these hidden lines may be plotted using the keyword /HIDDEN in the drawing routine. Here is an example using MAXRAD.
erase,40
sphinit, long=-30, lat=30, rad=.5, fill=80, pa=30,/front
for lat=-90,90,5 do sphlat,lat,.5
for r=.7,.9,.03 do sphlat,0,r,color=170,maxrad=.5
for r=.9,1.1,.03 do sphlat,0,r,color=190,maxrad=.5
The result is: