[Gate-users] Parameterization of a Parallelepiped
Sebastien JAN
sebastien.jan at cea.fr
Thu Mar 20 17:27:24 CET 2008
Gilberto,
Patch your Gate version with the attached file. It should work.
I will fixed the official release ASAP
Cheers
Sebastien
> Hi,
>
> Certainly:
>
> ## 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 2
> /vis/viewer/zoom 1
> /vis/viewer/set/style surface
> /vis/drawVolume
> /tracking/storeTrajectory 0
> /vis/scene/endOfEventAction accumulate
> /vis/viewer/update
> /gate/geometry/enableAutoUpdate
>
> #WORLD
> /gate/world/geometry/setXLength 100. cm
> /gate/world/geometry/setYLength 100. cm
> /gate/world/geometry/setZLength 100. cm
> /gate/world/daughters/insert 3axes
>
> #SYSTEM
> /gate/world/daughters/name SPECThead
> /gate/world/daughters/insert box
> /gate/SPECThead/geometry/setXLength 133.1 mm
> /gate/SPECThead/geometry/setYLength 411.2 mm
> /gate/SPECThead/geometry/setZLength 322.1 mm
> /gate/SPECThead/placement/setTranslation 226.55 0. 0. mm
> /gate/SPECThead/repeaters/insert ring
> /gate/SPECThead/ring/setRepeatNumber 2
> /gate/SPECThead/setMaterial Air
> /gate/SPECThead/vis/forceWireframe
>
>
> #COLLIMATOR
> /gate/SPECThead/daughters/name collimator
> /gate/SPECThead/daughters/insert parallelepiped
> /gate/collimator/geometry/setDx 100. mm
> /gate/collimator/geometry/setDy 411.2 mm
> /gate/collimator/geometry/setDz 322.1 mm
> /gate/collimator/geometry/setAlpha 0. deg
> /gate/collimator/geometry/setTheta 0. deg
> /gate/collimator/geometry/setPhi 45. deg
>
> I pretend to have a box tilted 45 degrees in XZ plane.
>
> Thank you very much for the help
>
> Best regards,
>
> Gilberto Almeida
> Instituto de Biofísica e Engenharia Biomédica
> Faculdade de Ciências da Universidade de Lisboa
> Campo Grande
> 1749-016 Lisboa, Portugal
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: GateParallelepipedCreatorMessenger.cc
Type: text/x-c++src
Size: 5018 bytes
Desc: not available
URL: <http://lists.opengatecollaboration.org/mailman/private/gate-users/attachments/20080320/48e06d0c/attachment.cc>
More information about the Gate-users
mailing list