[Gate-users] ring repeater: Auto Rotation

yannick grondin gate_yannick at yahoo.fr
Fri Aug 22 12:13:50 CEST 2014


Hi gaters,

I don't understand why I can't have the "enableAutoRotation" command doing what I expect in the case of a ring repeater. The particularity of my  macro is that the axis of the ring repeater is the line y=+/- x (+/-45° line in the X-Y plane @ Z=-500mm).
(when the axis of the ring is aligned with X, Y or Z, it works).

My macro is below and two images are attached : without AutoRotation and with AutoRotation: in this latter case, I expect the boxes to be oriented towards the ring axis but it is not what the image showed.

Any help would be appreciated!

Thanks,

Yannick Grondin



#My macro with  the two last lines to be commented or not


/gate/world/daughters/name lame2
/gate/world/daughters/insert box
/gate/lame2/geometry/setXLength 10 mm
/gate/lame2/geometry/setYLength 70. mm
/gate/lame2/geometry/setZLength 20. mm
/gate/lame2/placement/setTranslation  0. 0. -397. mm
/gate/lame2/placement/setRotationAxis 0 0 1
/gate/lame2/placement/setRotationAngle 45. deg
/gate/lame2/setMaterial Lead
/gate/lame2/vis/setColor white
/gate/lame2/vis/forceSolid


/gate/lame2/repeaters/insert ring
/gate/lame2/ring/setRepeatNumber 20
/gate/lame2/ring/setPoint1 0. 0. -500. mm
/gate/lame2/ring/setPoint2 -1. 1. -500. mm
/gate/lame2/ring/enableAutoRotation
#/gate/lame2/ring/disableAutoRotation
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opengatecollaboration.org/mailman/private/gate-users/attachments/20140822/0317c194/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: No AutoRotation.png
Type: image/png
Size: 26221 bytes
Desc: not available
URL: <http://lists.opengatecollaboration.org/mailman/private/gate-users/attachments/20140822/0317c194/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: AutoRotation.png
Type: image/png
Size: 11723 bytes
Desc: not available
URL: <http://lists.opengatecollaboration.org/mailman/private/gate-users/attachments/20140822/0317c194/attachment-0003.png>


More information about the Gate-users mailing list