1.5.3 Settings for Coordinate Systems

To draw graphics in a 3-D UC, as in the 2-D coordinate system, the parameters that determine transformation function must be specified after calling sgfrm but before starting to draw graphics. The values of these parameters become effective by calling the routine scstrf, which makes the transformation function effective. The parameters for 3-D systems are independent of those for the 2-D system.

The main parameters are all handled by sgpget/sgpset, but since it is cumbersome to set the parameters for transformation function individually, a routine is available for setting the parameters at once, which is usually used.

To set transformation parameters, the following coding is performed after sgfrm.

Rectangular Coordinate

 

       NumRu::DCL.scsvpt(vxmin,vxmax,vymin,vymax,vzmin,vzmax)

       NumRu::DCL.scswnd(uxmin,uxmax,uymin,uymax,uzmin,uzmax)

       NumRu::DCL.scstrn(itr3)

       CALL scstrf

Cylindrical Coordinate, Spherical Coordinate


     NumRu::DCL.scsorg(simfac,vxorg3,vyorg3,vzorg3)

     NumRu::DCL.scstrn(itr3)

     CALL scstrf