5 * Revision 1.1.1.1 1995/10/24 10:20:27 cernlib
9 #include "geant321/pilot.h"
10 *CMZ : 3.21/02 29/03/94 15.41.27 by S.Giani
12 SUBROUTINE GDRAWX(NAME,CUTTHE,CUTPHI,CUTVAL,THE,PHI,U0,V0,SU,SV)
14 C. ******************************************************************
16 C. * Draw extended cut : this routine is similar to GDRAWC *
17 C. * but any cut plane can be choosen, instead of just *
18 C. * the three planes normal to the main axes. *
20 C. * The cut plane is normal to the line given by *
21 C. * the two cut angles CUTTHE,CUTPHI *
22 C. * and it is placed at the distance CUTVAL from the origin. *
24 C. * The resulting picture is seen from the angles THE,PHI *
26 C. * ==>Called by : <USER>, <GXINT> *
27 C. * Author : P.Zanarini ********* *
29 C. ******************************************************************
31 #include "geant321/gcbank.inc"
32 #include "geant321/gcdraw.inc"
35 C. ------------------------------------------------------------------
37 C Allocate working space
41 IF (CUTTHE.EQ.90.AND.CUTPHI.EQ.180) THEN
43 ELSE IF (CUTTHE.EQ.90.AND.CUTPHI.EQ.0) THEN
45 ELSE IF (CUTTHE.EQ.90.AND.CUTPHI.EQ.90) THEN
47 ELSE IF (CUTTHE.EQ.0.AND.CUTPHI.EQ.0) THEN
60 C ICUTFL=1 informs GDRAW to call GDRWSC instead of GDRAWS
61 C (so that we'll have stored surfaces instead of drawn lines
62 C and to use the line buffer logic of GDRAWV
67 CALL GDRAW(NAME,THE,PHI,0.,U0,V0,SU,SV)