<div dir="ltr"><div>Hi Gate-users,</div><div><br></div><div>I posted this problem ~ a month ago but received no response. And I still could not figure out what was wrong. Could someone who is familiar with generic move or phantom setup help me out?</div><div>Many thanks in advance,</div><div>Howard<br></div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">---------- Forwarded message ---------<br>From: <b class="gmail_sendername" dir="auto">Howard</b> <span dir="auto"><<a href="mailto:lomahu@gmail.com">lomahu@gmail.com</a>></span><br>Date: Sun, May 15, 2022 at 12:59 PM<br>Subject: volume/phantom orientation and generic move<br>To: Gate-users <<a href="mailto:gate-users@lists.opengatecollaboration.org">gate-users@lists.opengatecollaboration.org</a>><br></div><br><br><div dir="ltr"><div>Hi Gate Users,</div><div><br></div><div>I encountered an issue of the volume/phantom orientation when using generic move. Here is the detail.</div><div><br></div><div>The phantom is rotated upright along the y-axis (vertical direction) using the following script:<br></div><div><br></div><div>/gate/world/daughters/name waterCylinder<br>/gate/world/daughters/insert cylinder<br>/gate/waterCylinder/geometry/setRmin 0. mm<br>/gate/waterCylinder/geometry/setRmax 8. mm<br>/gate/waterCylinder/geometry/setHeight 20. mm<br>/gate/waterCylinder/setMaterial Water<br>/gate/waterCylinder/vis/forceWireframe<br>/gate/waterCylinder/vis/setColor cyan<br>/gate/waterCylinder/placement/setRotationAxis 1 0 0<br>/gate/waterCylinder/placement/setRotationAngle 90. deg<br></div><div><br></div><div>1. I could make the rotation around y-axis using the following script. Everything is working well (see the first attached figure).<br></div><div># Apply a rotation (1 deg/sec) to the cylinder so that it will finally rotate around the Y axis<br># Note: the moves commands are applied onto the original orientation of the object (before rotations are applied)<br>/gate/waterCylinder/moves/insert rotation<br>/gate/waterCylinder/rotation/setSpeed 1. deg/s<br>/gate/waterCylinder/rotation/setAxis 0 0 1</div><div><br></div><div>2. If i comment out the three lines above<br></div><div><br></div><div><div>#/gate/waterCylinder/moves/insert rotation<br>#/gate/waterCylinder/rotation/setSpeed 1. deg/s<br>#/gate/waterCylinder/rotation/setAxis 0 0 1</div><div><br></div><div>and instead use the generic move (see the following script which is placed in a placement file of course), the phantom shows its alignment with the z-axis. In other words, the action around the x-axis to rotate 90 degrees takes no effect. It seems like the generic move overrides the phantom placement action. I cannot think why unless I did not use the generic move correctly<br></div><div><br></div><div>###### List of placement (translation and rotation) according to time<br>###### Column 1 is Time in s (second)<br>###### Column 2 is rotationAngle in degree<br>###### Columns 3,4,5 are rotation axis<br>###### Columns 6,7,8 are translation in mm<br><br>Time s<br>Rotation deg<br>Translation mm<br><br>0 0 0 0 1 0 0 0<br>1 1 0 0 1 0 0 0<br>2 2 0 0 1 0 0 0<br>3 3 0 0 1 0 0 0 <br>4 4 0 0 1 0 0 0<br>5 5 0 0 1 0 0 0<br>6 6 0 0 1 0 0 0<br>7 7 0 0 1 0 0 0<br>8 8 0 0 1 0 0 0 <br>9 9 0 0 1 0 0 0 <br>10 10 0 0 1 0 0 0<br>11 11 0 0 1 0 0 0 <br>12 12 0 0 1 0 0 0 </div><div>...</div><div><br></div><div>Is there a way to fix the issue I am encountering? Many thanks.</div><div><br></div><div>Howard<br></div></div><div><br></div></div>
</div></div></div>