5 * Revision 1.1.1.1 1995/10/24 10:20:47 cernlib
9 #include "geant321/pilot.h"
10 *CMZ : 3.21/02 29/03/94 15.41.32 by S.Giani
12 SUBROUTINE GTRDSE(PAR,ISHAPE)
14 C----------------------------------------------------------
15 C- Calculates the coordinates of the corner points of a GEANT shape
16 C- from the shape parameters. The end faces are generated by drawing
17 C- connected polylines between the corner points at each Z-end of the shape.
18 C- A ruled solid is then defined between the 2 faces, and written out in SET.
19 C----------------------------------------------------------
21 #include "geant321/gcsetf.inc"
25 REAL P1X,P1Y,P1Z,P2X,P2Y,P2Z,P3X,P3Y,P3Z,P4X,P4Y,P4Z
26 REAL P5X,P5Y,P5Z,P6X,P6Y,P6Z,P7X,P7Y,P7Z,P8X,P8Y,P8Z
29 C----------------------------------------------------------------------
36 IF (ISHAPE .EQ. 2) THEN
76 C DESCRIBED BY 2 FACES represented by polylines
77 C connected by the 4 corners of the shape.
78 C *WRITE SET@103,F1,:5,2#3,3,2,P1X,P1Y,P1Z,P2X,P2Y,P2Z,P3X,P3Y,P3Z,P4X,P4Y,P4Z
79 C *WRITE SET@103,F2,:5,2#3,3,2,P5X,P5Y,P5Z,P6X,P6Y,P6Z,P7X,P7Y,P7Z,P8X,P8Y,P8Z
80 C *WRITE SET @100,N,:5,2,:9,'MATNAM'#145,!F1,!F2,
81 C-------------------------------------------------------------------
83 WRITE(BLKSTR,10000)N1,P1X,P1Y,P1Z,P2X,P2Y,P2Z, P3X,P3Y,P3Z,P4X,
87 WRITE(BLKSTR,10000)N1,P5X,P5Y,P5Z,P6X,P6Y,P6Z, P7X,P7Y,P7Z,P8X,
91 WRITE(BLKSTR,10100)N1,N1-2,N1-1
94 10000 FORMAT('@103,',I10,',:5,2#3,3,2,',G14.7,',',G14.7,','
95 + ,G14.7,',',G14.7,',',G14.7,',',G14.7,',',G14.7,','
96 + ,G14.7,',',G14.7,',',G14.7,',',G14.7,',',G14.7)
97 10100 FORMAT('@100,',I10,',:5,2#145,!',I10,',!',I10)