Draw a volume cut view

+-------------+                                               +----------##
| Geant 3.15  |               GEANT User's Guide              | DRAW120  ##
+-------------+                                               +----------##
                                   

Author(s) : F.Carminati Submitted: 15.05.84 Origin : P.Zanarini Revised: 11.12.92

+-----------------------------------------------------------------------------------+
|CALL GDRAWX (CHNAME,CUTTHE,CUTPHI,CUTVAL,THETA,PHI,U0,V0,SU,SV) |
+-----------------------------------------------------------------------------------+
                                  

Draws a cut view of the volume CHNAME, with all its visible descendants, i.e. draws their intersection with the cut plane normal to the axis given by the angles CUTTHE, CUTPHI at the distance CUTVAL from the origin. The view point is defined by the angles THETA, PHI. U0, V0, SU, SV have the same meaning as in GDRAW. These 'view parameters', as well as zoom parameters set by GDZOOM are copied in/GCDRAW/.

Attributes like colour, surface fill, line width, line style, visibility, etc. can be set by the GSATT routine for CHNAME and its descendants [GEOM500].

CHNAME
(CHARECTER*4) Name of volume
CUTTHE
(REAL) theta angle of the line normal to the cut plane
CUTPHI
(REAL) phi angle of the line normal to the cut plane
TETHA
(REAL) viewing angle theta
PHI
(REAL) viewing angle phi
U0
(REAL) u coordinate on the screen of the volume origin
V0
(REAL) v coordinate on the screen of the volume origin
SU
(REAL) scale factor for u coordinates
SV
(REAL) scale factor for v coordinates

    +----------------------------------------------------------------+
    | CALL GDRAWC (CHNAME,IAX,CUTVAL,U0,V0,SU,SV) |
    +----------------------------------------------------------------+
                                  

This routine is a special case of the previous GDRAWX. Here the cut plane is normal to one of the main axes (IAX) and placed at a distance CUTVAL from the origin. The view point is along the same axis.

CHNAME
(CHARECTER*4) Name of volume
IAX
(INTEGER) axis: 1=X, 2=Y, 3=Z
U0
(REAL) u coordinate on the screen of the volume origin
V0
(REAL) v coordinate on the screen of the volume origin
SU
(REAL) scale factor for u coordinates
SV
(REAL) scale factor for v coordinates

We give here an example of utilisation of GDAXIS, GDRAW and GDRAWX:

 CALL GDAXIS(0.,0.,0.,200.)
 CALL GDRAW('NBOX',50.,150.,0.,10.,10.,0.01,0.01)
 CALL GDRAW('NTUB',50.,150.,0.,10.,10.,0.01,0.01)
 CALL GDRAWX('NBOX',30.,40.,0.,50.,150.,10.,10.,0.1,0.1)
 CALL GDRAWX('NTUB',30.,40.,0.,50.,150.,10.,10.,0.1,0.1)