This commit was generated by cvs2svn to compensate for changes in r2,
[u/mrichter/AliRoot.git] / GEANT321 / gdraw / gdrawc.F
1 *
2 * $Id$
3 *
4 * $Log$
5 * Revision 1.1.1.1  1995/10/24 10:20:24  cernlib
6 * Geant
7 *
8 *
9 #include "geant321/pilot.h"
10 *CMZ :  3.21/02 29/03/94  15.41.27  by  S.Giani
11 *-- Author :
12       SUBROUTINE GDRAWC(NAME,IAX,CUTVAL,U0,V0,SU,SV)
13 C.
14 C.    ******************************************************************
15 C.    *                                                                *
16 C.    *       This routine draws the intersection of the object        *
17 C.    *       called NAME with the cut plane normal to one of the      *
18 C.    *       main axes (IAX=1 is X, IAX=2 is Y, IAX=3 is Z)           *
19 C.    *       and placed at the distance CUTVAL from the origin.       *
20 C.    *                                                                *
21 C.    *       The resulting picture is seen from the axis choosen      *
22 C.    *                                                                *
23 C.    *    ==>Called by : <USER>, <GXINT>, GDSPEC                      *
24 C.    *       Author : P.Zanarini   *********                          *
25 C.    *                                                                *
26 C.    ******************************************************************
27 C.
28 #include "geant321/gcbank.inc"
29 #include "geant321/gcdraw.inc"
30       CHARACTER*4 NAME
31       DIMENSION THE(3),PHI(3)
32       SAVE THE,PHI
33       DATA THE/90.,90.,0./
34       DATA PHI/180.,90.,0./
35 C.
36 C.    ------------------------------------------------------------------
37 C.
38 C             Allocate working space
39 C
40       CALL GWORK(NWCUT)
41 C
42       ICUT=IAX
43       DCUT=CUTVAL
44 C
45       NSURF=0
46       ISURF=1
47 C
48 C             ICUTFL=1 informs GDRAW to call GDRWSC instead of GDRAWS
49 C             (so that we'll have stored surfaces instead of drawn lines)
50 C             and to use the line buffer logic of GDRAWV
51 C
52 C             PSI is fixed to 0.
53 C
54       ICUTFL=1
55       CALL GDRAW(NAME,THE(ICUT),PHI(ICUT),0.,U0,V0,SU,SV)
56       ICUTFL=0
57       END