]> git.uio.no Git - u/mrichter/AliRoot.git/blame - GEANT321/gdraw/gdrawc.F
Fix needed on Sun and Alpha
[u/mrichter/AliRoot.git] / GEANT321 / gdraw / gdrawc.F
CommitLineData
fe4da5cc 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)
13C.
14C. ******************************************************************
15C. * *
16C. * This routine draws the intersection of the object *
17C. * called NAME with the cut plane normal to one of the *
18C. * main axes (IAX=1 is X, IAX=2 is Y, IAX=3 is Z) *
19C. * and placed at the distance CUTVAL from the origin. *
20C. * *
21C. * The resulting picture is seen from the axis choosen *
22C. * *
23C. * ==>Called by : <USER>, <GXINT>, GDSPEC *
24C. * Author : P.Zanarini ********* *
25C. * *
26C. ******************************************************************
27C.
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./
35C.
36C. ------------------------------------------------------------------
37C.
38C Allocate working space
39C
40 CALL GWORK(NWCUT)
41C
42 ICUT=IAX
43 DCUT=CUTVAL
44C
45 NSURF=0
46 ISURF=1
47C
48C ICUTFL=1 informs GDRAW to call GDRWSC instead of GDRAWS
49C (so that we'll have stored surfaces instead of drawn lines)
50C and to use the line buffer logic of GDRAWV
51C
52C PSI is fixed to 0.
53C
54 ICUTFL=1
55 CALL GDRAW(NAME,THE(ICUT),PHI(ICUT),0.,U0,V0,SU,SV)
56 ICUTFL=0
57 END