[Gate-users] visualization of a volume for second time
open researcher
openresearcher90 at gmail.com
Wed Aug 15 09:01:30 CEST 2012
Hi gate users,
I have written a macro file for defining a NaI crystal. According to the
commands in the macro i should see only two volumes (world and crystal). I
am seeing two volumes only when i run the macro for the first time, when i
run it for the second time or more i am seeing a third volume (a small gray
color box at the center) and getting an error --
Warning: the selected insertion name ('crystal') was already in use.
Name 'crystal2' will be used instead.
is gate storing 'crystal' after running for the second time also (is it not
deleting the previous one)?
if i want to simulate, should i have to run a macro only once ?
the macro is given below-
/vis/open OGLIX
/vis/viewer/set/viewpointThetaPhi 60 60
/vis/viewer/set/style surface
/vis/drawVolume
/tracking/storeTrajectory 1
/vis/scene/add/trajectories
/vis/scene/endOfEventAction accumulate
/gate/geometry/setMaterialDatabase GateMaterials.db
/gate/world/geometry/setXLength 80. cm
/gate/world/geometry/setYLength 80. cm
/gate/world/geometry/setZLength 20. cm
/gate/world/daughters/name crystal
/gate/world/daughters/insert box
/gate/crystal/geometry/setXLength 59.4 cm
/gate/crystal/geometry/setYLength 44.5 cm
/gate/crystal/geometry/setZLength 25.4 cm
/gate/crystal/setMaterial NaI
/gate/crystal/vis/setColor yellow
/gate/crystal/vis/forceWireframe
/vis/viewer/zoom 3
/gate/geometry/rebuild
More information about the Gate-users
mailing list