[Gate-users] Visualization

P. T. ptpphysics at gmail.com
Sat Aug 11 15:00:42 CEST 2012


Dear All

When I running benchSPECT.mac, the process have been shown with OpenGL
and simulation has been done.
I would like to know, after making the geometry; I would only like to
view it with running GATE. How can I Do it? I am using OpenGL for
viewing.

For example
When I ran following simple macro file:

/gate/geometry/setMaterialDatabase GateMaterials.db
/vis/open OGLSX
/vis/viewer/reset
/vis/viewer/set/viewpointThetaPhi 45 45
/vis/viewer/zoom 1
/vis/viewer/set/style surface
/vis/drawVolume
/tracking/storeTrajectory 1
/vis/scene/endOfEventAction accumulate 100000
/vis/viewer/update
# W O R L D
/gate/world/geometry/setXLength 40. cm
/gate/world/geometry/setYLength 40. cm
/gate/world/geometry/setZLength 40. cm
#  S Y S T E M
/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
/vis/viewer/zoom 3

Following message is appeared and world geometry only is shown in OpenGL:

Idle> /control/execute viewer.mac
G4OpenGLXViewer: XLoadQueryFont failed for font
  -adobe-courier-bold-r-normal--10-100-75-75-m-60-iso8859-1
G4OpenGLXViewer: XLoadQueryFont failed for font
  -adobe-courier-bold-r-normal--11-80-100-100-m-60-iso8859-1
G4OpenGLXViewer: XLoadQueryFont failed for font
  -adobe-courier-bold-r-normal--12-120-75-75-m-70-iso8859-1
G4OpenGLXViewer: XLoadQueryFont failed for font
  -adobe-courier-bold-r-normal--14-100-100-100-m-90-iso8859-1
G4OpenGLXViewer: XLoadQueryFont failed for font
  -adobe-courier-bold-r-normal--17-120-100-100-m-100-iso8859-1
G4OpenGLXViewer: XLoadQueryFont failed for font
  -adobe-courier-bold-r-normal--18-180-75-75-m-110-iso8859-1
G4OpenGLXViewer: XLoadQueryFont failed for font
  -adobe-courier-bold-r-normal--20-140-100-100-m-110-iso8859-1
G4OpenGLXViewer: XLoadQueryFont failed for font
  -adobe-courier-bold-r-normal--24-240-75-75-m-150-iso8859-1
G4OpenGLXViewer: XLoadQueryFont failed for font
  -adobe-courier-bold-r-normal--25-180-100-100-m-150-iso8859-1
G4OpenGLXViewer: XLoadQueryFont failed for font
  -adobe-courier-bold-r-normal--34-240-100-100-m-200-iso8859-1
WARNING: The vis manager will keep up to 100000 events.
  This may use a lot of memory.
  It may be changed with, e.g., "/vis/scene/endOfEventAction accumulate 10".
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/.
***** Can not open a macro file <visu.mac>


With Regards
Pat


More information about the Gate-users mailing list