[Gate-users] Geometry Visualization
Marc Chamberland
MarcChamberland at cmail.carleton.ca
Mon Oct 20 17:48:09 CEST 2014
That looks fine to me. I don’t know if you should see the world dimensions or not, frankly.
Build your whole detector, then try to visualize it with the command:
/gate/geometry/rebuild
Let’s see what that gives you.
Also, you could try running Gate with the Qt visualization:
http://wiki.opengatecollaboration.org/index.php/Users_Guide_V7.0:How_to_run_Gate#Running_GATE_in_Qt_mode
You would need to make sure Gate is compiled with the Qt option, though. Again, see the User’s Guide for more details.
Cheers,
Marc
__________________________
Marc Chamberland, MSc
PhD candidate
Department of Physics
Carleton University
Ottawa (ON)
On Oct 20, 2014, at 11:42, André Miguel Monteiro <andremiguelmonteiro90 at gmail.com<mailto:andremiguelmonteiro90 at gmail.com>> wrote:
Hello Marc,
Thank you for pointing me out to the visualization guide.
To test the visualization I did the following
In terminal window I execute:
Gate
Idle> /vis/open OGL
/vis/viewer/set/viewpointThetaPhi 60 60
/vis/drawVolume
/tracking/storeTrajectory 1
/vis/scene/add/trajectories
/vis/scene/endOfEventAction accumulate
/gate/geometry/setMaterialDatabase ../GateMaterials.db
/gate/world/geometry/setXLength 4. m
/gate/world/geometry/setYLength 3. m
/gate/world/geometry/setZLength 4. m
/gate/world/setMaterial Air
/gate/world/daughters/name CTscanner
/gate/world/daughters/insert box
/gate/CTscanner/placement/setTranslation 0. 0. 150.5 mm
/gate/CTscanner/geometry/setXLength 50. mm
/gate/CTscanner/geometry/setYLength 50. mm
/gate/CTscanner/geometry/setZLength 1. mm
/gate/CTscanner/setMaterial Air
/gate/CTscanner/vis/forceWireframe
/gate/CTscanner/vis/setColor white
The result of the visualization is attached.
Is it normal? Shouldn't I see my world dimensions?
Cheers,
Andre
2014-10-20 15:50 GMT+01:00 Marc Chamberland <MarcChamberland at cmail.carleton.ca<mailto:MarcChamberland at cmail.carleton.ca>>:
Hi Andre,
Please read the User’s Guide carefully:
http://wiki.opengatecollaboration.org/index.php/Users_Guide_V7.0:Visualization
For example:
"The best method is to let Geant4 choose the best OpenGL mode with /vis/open OGL"
And:
"(…) manual geometry update has to be used instead. This can be done using the following command at any moment in the GATE command prompt environment:
/gate/geometry/rebuild
Otherwise the complete geometry building is done when /gate/run/initialize command is given."
Cheers,
Marc
__________________________
Marc Chamberland, MSc
PhD candidate
Department of Physics
Carleton University
Ottawa (ON)
> On Oct 20, 2014, at 10:34, André Miguel Monteiro <andremiguelmonteiro90 at gmail.com<mailto:andremiguelmonteiro90 at gmail.com>> wrote:
>
> Hello to all Gate users,
>
> I am pretty new at using GATE and now I want to visualize the geometry of the components I want to build. After I have set the world dimensions, how can I see the volumes I am drawing?
>
> I do /vis/open OGLSX and it remains black...
>
> Thank you,
>
> Andre
> _______________________________________________
> 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
<screenOGL.png>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opengatecollaboration.org/mailman/private/gate-users/attachments/20141020/706ac534/attachment-0001.html>
More information about the Gate-users
mailing list