[Gate-users] OpenGL Visualization

Prasheel LILLANEY plillane at gmail.com
Wed Jul 28 20:48:25 CEST 2010


Dear Users,

I am trying to visualize my scanner geometry as I build it in Gate using
OGLSX.  When I add daughter volumes to my world, then proceed to describe
their geometry and finally try to visualize the changes I keep getting a
warning and my viewer does not update the changes to the geometry.

For example after running the following set of commands in Gate:

/vis/open OGLSX
/vis/viewer/reset
/vis/viewer/viewpointThetaPhi 60 60
/vis/viewer/zoom 1
/vis/viewer/set/style surface
/vis/drawVolume
/tracking/storeTrajectory 1
/vis/scene/endOfEventAction accumulate
/vis/viewer/update

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

/gate/world/daughters/name cylindricalPET
/gate/world/daughters/insert cylinder
/gate/cylindricalPET/setMaterial Water
/gate/cylindricalPET/geometry/setRmax 100 mm
/gate/cylindricalPET/geometry/setRmin 86 mm
/gate/cylindricalPET/geometry/setHeight 18 mm
/gate/cylindricalPET/vis/forceWireframe


I get the following output:

G4PhysicalVolumeModel::Validate() called.
   Volume of the same name and copy number ("world_phys", copy 0) still
exists and is being used.
   Warning:  This does not necessarily guarantee it's the same volume you
originally specified in /vis/scene/add/.

Anyone experienced anything similar to this?

Thanks
Prasheel Lillaney


More information about the Gate-users mailing list