[Gate-users] Need visualization of the geometry

viraj sawant virajsawant121 at gmail.com
Sat Nov 7 11:24:57 CET 2020


Dear Gate user below in the geometry which is define for PET scanner.i want
to visualize it can you help how i can do that  I have tried with the
/vis/open OGL command but nothing is shows in the viewer kindly provide the
sequence of the commands so that i can able to visualize the above geometry
in the viewer.
#

#     W O R L D
#
/gate/geometry/setMaterialDatabase    GateMaterials.db


/gate/world/geometry/setXLength       400. cm
/gate/world/geometry/setYLength       400. cm
/gate/world/geometry/setZLength       400. cm





/gate/world/daughters/name                    ecat
/gate/world/daughters/insert             cylinder
/gate/ecat/placement/setTranslation           0.0 0.0 0.0 cm
/gate/ecat/geometry/setRmax                   50 cm
/gate/ecat/geometry/setRmin                   43 cm
/gate/ecat/geometry/setHeight                 25 cm
# TASK
# CHOOSE A MATERIAL
#
/gate/ecat/setMaterial                        Air
/gate/ecat/vis/forceWireframe
/gate/ecat/vis/setColor                       red

# BLOCK
/gate/ecat/daughters/name                     blockDetector
/gate/ecat/daughters/insert                   box
/gate/blockDetector/placement/setTranslation  46 0 0 cm
/gate/blockDetector/geometry/setXLength       2 cm
/gate/blockDetector/geometry/setYLength       5.35 cm # 12*4mm for crystal
+ 11*0.5 for gaps
/gate/blockDetector/geometry/setZLength       5.35 cm

/gate/blockDetector/setMaterial               Air
/gate/ecat/vis/forceWireframe
/gate/blockDetector/vis/setColor              green



# C R Y S T A L
/gate/blockDetector/daughters/name             crystalUnit
/gate/blockDetector/daughters/insert           box
/gate/crystalUnit/placement/setTranslation     0.0 0.0 0.0 mm
/gate/crystalUnit/geometry/setXLength          20. mm
/gate/crystalUnit/geometry/setYLength          4. mm
/gate/crystalUnit/geometry/setZLength          4. mm

/gate/crystalUnit/setMaterial                  LSO
/gate/crystalUnit/vis/setColor                 yellow
/gate/crystalUnit/vis/setVisible              0



/gate/blockDetector/repeaters/insert                  ring
/gate/blockDetector/ring/setRepeatNumber              46

/gate/blockDetector/repeaters/insert                  linear
/gate/blockDetector/linear/setRepeatNumber            4
/gate/blockDetector/linear/setRepeatVector            0.0 0.0 55 mm

/gate/crystalUnit/repeaters/insert                    cubicArray
/gate/crystalUnit/cubicArray/setRepeatNumberX         1
/gate/crystalUnit/cubicArray/setRepeatNumberY         12
/gate/crystalUnit/cubicArray/setRepeatNumberZ         12
/gate/crystalUnit/cubicArray/setRepeatVector          0.0 4.5 4.5 mm



#
/gate/systems/ecat/block/attach     blockDetector
/gate/systems/ecat/crystal/attach   crystalUnit


/gate/crystalUnit/attachCrystalSD
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opengatecollaboration.org/pipermail/gate-users/attachments/20201107/5cb95d1e/attachment.html>


More information about the Gate-users mailing list