[Gate-users] Use of setRotationAxis and setRotationAngle

Christian Wietholt cwietholt at nhri.org.tw
Thu Dec 21 09:59:49 CET 2006


Dear GATE users, 

I am trying to use GATE to simulated data of a SPECT
system with a misaligned detector. I would like to be
able to rotate the detector around its three axes at 
different angles with the commands: 

setRotationAxis
setRotationAngle

Using the following sequence:

/gate/crystal/placement/setRotationAxis 1 0 0
/gate/crystal/placement/setRotationAngle 3 deg
/gate/crystal/placement/setRotationAxis 0 1 0
/gate/crystal/placement/setRotationAngle 2.5 deg
/gate/crystal/placement/setRotationAxis 0 0 1
/gate/crystal/placement/setRotationAngle 5.3 deg

only the last rotation is considered and the previous
rotations are ignored.

If I uses something like this:

/gate/crystal/placement/setRotationAxis 1 1 1
/gate/crystal/placement/setRotationAngle 5.3 deg

I can rotate around all three axes, but only by 
"5.3" degrees for each angle, not at different angles.
What would be the sequence to rotate for example:

x = 3.0 deg
y = 2.5 deg
z = 5.3 deg

Unfortunately, I am unable to figure it out from the 
users manual and was unable to find anything in the 
GATE User Talk archives. 

Thank you for your suggestions. 

Christian



More information about the Gate-users mailing list