[Gate-users] Viewing Geometry in Gate

Marc Chamberland MarcChamberland at cmail.carleton.ca
Sun Aug 12 14:48:25 CEST 2012


Hi Pat!

I believe you need to initialize the simulation before you can visualize your geometry. Try the following command:

/gate/run/initialize

Your geometry should now show up.

I don't know why you cannot see the geometry before initialization anymore. If someone can tell me, I'll update the User's Guide.

Marc



__________________________

Marc Chamberland, MSc
PhD candidate
Department of Physics
Carleton University
Ottawa (ON)

Le 2012-08-12 à 5:35 AM, "P. T." <ptpphysics at gmail.com<mailto:ptpphysics at gmail.com>>
 a écrit :

Dear All

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

World geometry only is shown in OpenGL.
Totally, I couldn't view my custom geometry.
Pls. Help Me
Thanks

Best regards
Pat
_______________________________________________
Gate-users mailing list
Gate-users at lists.opengatecollaboration.org<mailto:Gate-users at lists.opengatecollaboration.org>
http://lists.opengatecollaboration.org/mailman/listinfo/gate-users




More information about the Gate-users mailing list