Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2024-06-26 07:05:16

0001 #!/bin/bash
0002 
0003 # this is a detector slice
0004 
0005 # units are mm
0006 dawncut 0 0 1 1500 $1 out1.prim 
0007 dawncut 0 0 -1 1600 out1.prim view5.prim
0008 dawn -d view5.prim 
0009 ps2pdf view5.eps view5.pdf
0010 pdftoppm view5.pdf view5 -png -singlefile
0011 
0012 #https://geant4.kek.jp/~tanaka/DAWN/About_DAWNCUT.html
0013 # % dawncut a b c d input-file [output-file]
0014 #
0015 #       input-file : Source DAWN-format file describing a 3D scene.
0016 #
0017 #       output-file: Output DAWN-format file describing a plane-clipped 
0018 #                    3D scene.  The default output stream is stdout.
0019 #
0020 #       a, b, c, d : Parameters  a, b, c, and d  are double values to
0021 #                    define a clipping plane described with the following 
0022 #                    equation: 
0023 #
0024 #                       ax + by + cz + d = 0. 
0025 #
0026 #                    Vector (a,b,c) defines the normal vector of 
0027 #                    the clipping plane.  
0028 #                    3D scene data in the half space at the front side 
0029 #                    of the clipping plane are clipped out and erased. 
0030 #                    The normal vector (a,b,c) needs not be a unit vector. 
0031 #                    If it is a unit vector, parameter "d" gives distance 
0032 #                    between the clipping plane and origin (0,0,0).