[Gate-users] 1. repeaters/insert ring works with box but not trpd (Anne Sauve)

Anne Sauve ACSauve at lbl.gov
Fri May 7 18:01:51 CEST 2010


Hello Marcin,

Thank you for your reply.
Since I don't know how to create my trpd along the x axis but only along the z axis
I found an other trick which is to include my trpd into a box. Then the rest
works.
My only problem now is to make this box invisible.
I tried
/gate/Boxhead/vis/setDaughtersInvisible but it does not work.

Thank you,
Anne

----- Original Message -----
From: Marcin Balcerzyk <mbalcerzyk at us.es>
Date: Friday, May 7, 2010 5:44 am
Subject: RE: 1. repeaters/insert ring works with box but not trpd (Anne Sauve)
To: 'Anne Sauve' <ACSauve at lbl.gov>
Cc: 'Simon Stute' <gate.stute at gmail.com>, gate-users at lists.opengatecollaboration.org

> Dear Anne.
> 
> Good you spotted it! The thing never worked since version 3.0.0. 
> Now I
> understand you have the problem in version 6 patch 1?
> 
> The problem is if you rotate the principal axis of trpd shape, the 
> ringrepeater goes mad. There is a patch for version 3.0.0, never 
> tested in
> v.6p1. The trick is to create the trpd already oriented as you 
> want, and not
> to touch the principal axis orientation.
> 
> Maybe some of the developers of Gate can look into the problem and 
> fix it in
> the next patch. I would be extremely grateful!!
> 
> Marcin Balcerzyk
> Universidad de Sevilla.
> 
> 
> -----Original Message-----
> From: gate-users-bounces at lists.opengatecollaboration.org
> [mailto:gate-users-bounces at lists.opengatecollaboration.org] On 
> Behalf Of
> gate-users-request at lists.opengatecollaboration.org
> Sent: Friday, May 07, 2010 12:00 PM
> To: gate-users at lists.opengatecollaboration.org
> Subject: Gate-users Digest, Vol 48, Issue 6
> 
> Send Gate-users mailing list submissions to
> 	gate-users at lists.opengatecollaboration.org
> 
> To subscribe or unsubscribe via the World Wide Web, visit
> 	http://lists.opengatecollaboration.org/mailman/listinfo/gate-users
> or, via email, send a message with subject or body 'help' to
> 	gate-users-request at lists.opengatecollaboration.org
> 
> You can reach the person managing the list at
> 	gate-users-owner at lists.opengatecollaboration.org
> 
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Gate-users digest..."
> 
> 
> Today's Topics:
> 
>   1. repeaters/insert ring works with box but not trpd (Anne Sauve)
> 
> 
> --------------------------------------------------------------------
> --
> 
> Message: 1
> Date: Thu, 06 May 2010 16:06:28 -0800
> From: Anne Sauve <ACSauve at lbl.gov>
> Subject: [Gate-users] repeaters/insert ring works with box but not
> 	trpd
> To: gate-users at lists.opengatecollaboration.org
> Message-ID: <f0ac05b76be7.4be2e904 at lbl.gov>
> Content-Type: text/plain; charset=us-ascii
> 
> Hello the collaboration,
> 
> I am designing a SPECThead that is trapezoidal so I am using trpd.
> my code is below:
> /gate/world/daughters/name SPECThead
> /gate/world/daughters/insert trpd
> /gate/SPECThead/geometry/setX1Length  22.75 cm
> /gate/SPECThead/geometry/setY1Length  16.25 cm
> /gate/SPECThead/geometry/setX2Length 0.8 cm
> /gate/SPECThead/geometry/setY2Length 0.8 cm
> /gate/SPECThead/geometry/setZLength 10. cm
> /gate/SPECThead/setMaterial Air
> /gate/SPECThead/placement/setRotationAxis 0 1 0
> /gate/SPECThead/placement/setRotationAngle -90 deg
> /gate/SPECThead/placement/setTranslation  8.0 0. 0. cm
> #
> /gate/SPECThead/repeaters/insert ring
> /gate/SPECThead/ring/setRepeatNumber 4
> 
> The problem is that the trapezoid is not rotated around the ring it 
> is just
> translated.
> 
> If I do instead:
> /gate/world/daughters/name SPECThead
> /gate/world/daughters/insert box
> /gate/SPECThead/geometry/setXLength  7. cm
> /gate/SPECThead/geometry/setYLength 21. cm
> /gate/SPECThead/geometry/setZLength 30. cm
> /gate/SPECThead/placement/setTranslation  20.0 0. 0. cm
> /gate/SPECThead/setMaterial Air
> /gate/SPECThead/repeaters/insert ring
> /gate/SPECThead/ring/setRepeatNumber 4
> 
> Then the box is rotated just fine.
> 
> Is there something that I am missing ?
> 
> Thank you very much for your help.
> Anne
> 
> 
> 
> Anne Sauve, Ph.D
> Lawrence Berkeley National Laboratory
> 1 Cyclotron Road., Mail Stop 55R-0121
> Berkeley, CA 94720-8119
> Email:  ACSauve at lbl.gov
> Phone:  510-486-7131 
> Fax: 510-486-4768
>       
> 
> 
> 
> ------------------------------
> 
> _______________________________________________
> Gate-users mailing list
> Gate-users at lists.opengatecollaboration.org
> http://lists.opengatecollaboration.org/mailman/listinfo/gate-users
> 
> End of Gate-users Digest, Vol 48, Issue 6
> *****************************************
> 
> 


More information about the Gate-users mailing list