[Gate-users] Problems with visualization

Pietrzyk, Uwe u.pietrzyk at fz-juelich.de
Fri Feb 3 15:32:18 CET 2017


HI Alessandro,

you have to specify the path to the file:

GateMaterials.db 

If you copy it into the same directory  then the following
line should be sufficient:

/gate/geometry/setMaterialDatabase ./GateMaterials.db
	
Hope this helps.

Kind regards,

Uwe Pietrzyk

/----------------------------------------------------------------------
Prof. Dr. Uwe Pietrzyk
Diplom-Physiker
Institut für Neurowissenschaften und Medizin / INM-4
Forschungszentrum Jülich GmbH
52425 Jülich
Tel: +49-2461-61 4763
Fax: +49-2461-61 2820
Mobil: +49-162-103-4871
eMail: U.Pietrzyk at fz-juelich.de
http://www.fz-juelich.de/inm/inm-4/DE/Home/home_node.html
&
Bergische Universität Wuppertal
Fakultät für Mathematik und Naturwissenschaften
Büro:  D.08.01
Gaußstr. 20
42097 Wuppertal
Tel: +49-(0)202-439-3523
Fax: +49-(0)202-439-2811
eMail: Uwe.Pietrzyk at uni-wuppertal.de
http://www.medizinphysik.uni-wuppertal.de
----------------------------------------------------------------------/

On 03 Feb 2017, at 15:02, Alessandro Bellini <ale.notc at gmail.com> wrote:

> 
> 
> 2017-02-03 15:01 GMT+01:00 Alessandro Bellini <ale.notc at gmail.com>:
> Thanks a lot!
> I continued the examples, I receive the following error when I add the first level of the system
> 
> Idle> /control/execute pet.mac
> 
> WARNING: The vis manager will keep up to 100 events.
> 
>   This may use a lot of memory.
> 
>   It may be changed with, e.g., "/vis/scene/endOfEventAction accumulate 10".
> 
>  CREATED THE COMMAND /gate/systems/cylindricalPET/addAnewRsector
> 
> /gate/box1/vis/forceWireframe> *****setMaterial Water
> 
> 
> 
> ***** Batch is interrupted!! *****
> 
> Idle> 
> 
> I think that it is due to the following line (the error shows up with this line
> /gate/box1/setMaterial Water
> 
> I've attached pet.mac
> 
> Thanks a lot
> 
> Alessandro
> 
> 
> 
> 2017-02-03 13:34 GMT+01:00 Pietrzyk, Uwe <u.pietrzyk at fz-juelich.de>:
> 
> Hi Alesandro,
> 
> there were some commands missing. Please see the test.mac file in the attachment.
> Maybe it would be a good idea to use one of the examples which come with the GATE
> distribution or also the EduGATE examples, were you can learn , how to arrange
> a simulation.
> 
> Kind regards, and best wishes,
> 
> Uwe Pietrzyk 
> 
> 
> 
> 
> 
> /----------------------------------------------------------------------
> Prof. Dr. Uwe Pietrzyk
> Diplom-Physiker
> Institut für Neurowissenschaften und Medizin / INM-4
> Forschungszentrum Jülich GmbH
> 52425 Jülich
> Tel: +49-2461-61 4763
> Fax: +49-2461-61 2820
> Mobil: +49-162-103-4871
> eMail: U.Pietrzyk at fz-juelich.de
> http://www.fz-juelich.de/inm/inm-4/DE/Home/home_node.html
> &
> Bergische Universität Wuppertal
> Fakultät für Mathematik und Naturwissenschaften
> Büro:  D.08.01
> Gaußstr. 20
> 42097 Wuppertal
> Tel: +49-(0)202-439-3523
> Fax: +49-(0)202-439-2811
> eMail: Uwe.Pietrzyk at uni-wuppertal.de
> http://www.medizinphysik.uni-wuppertal.de
> ----------------------------------------------------------------------/
> 
> On 03 Feb 2017, at 12:48, Alessandro Bellini <ale.notc at gmail.com> wrote:
> 
>> Dear GATE users,
>> 
>> I've just installe GATE v7.2 on Mac OSX 10.11 and I'm trying the very first step using Gate User's Guide, and I have problems after very few lines
>> 
>> #	TEST GATE MANUAL
>> 
>> # V I S U A L I Z A T I O N
>> /vis/open OGLSX
>> /vis/viewer/reset
>> /vis/viewer/set/viewpointThetaPhi 60 60
>> /vis/viewer/zoom 1
>> /vis/viewer/set/style surface
>> /vis/drawVolume
>> /tracking/storeTrajectory 1
>> /vis/scene/endOfEventAction accumulate 10
>> /vis/viewer/update
>> 
>> # G E O M E T R Y
>> /gate/geometry/setMaterialDatabase GateMaterials.db		
>> 
>> # 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/setColor red
>> /gate/cylindricalPET/vis/setVisible 1
>> /gate/cylindricalPET/vis/forceWireframe
>> /vis/viewer/zoom 3
>> 
>> I do not see the cylinder in the viewer, I only see the zoomed world.
>> Sorry for the very newbie question
>> 
>> Thanks a lot
>> 
>> Alessandro
>> _______________________________________________
>> Gate-users mailing list
>> Gate-users at lists.opengatecollaboration.org
>> http://lists.opengatecollaboration.org/mailman/listinfo/gate-users
> 
> 
> 
> 
> <pet.mac>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opengatecollaboration.org/mailman/private/gate-users/attachments/20170203/9b1055e7/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4925 bytes
Desc: not available
URL: <http://lists.opengatecollaboration.org/mailman/private/gate-users/attachments/20170203/9b1055e7/attachment.bin>


More information about the Gate-users mailing list