[Gate-users] autorotation not working in ring repeater

Lampros Theodorakis ltheodo at gmail.com
Sat Sep 7 15:21:38 CEST 2013


Hi,

An issue with the ring repeater in case anyone could help.
I create a trapezoid with an extruded box inside. The object is translated
and rotated, and then i use the ring repeater to repeat around z axes (all
is done to both trpd and box inside). The object is repeated but the
autorotate seems not to be working (pic1).
Strange thing is that when the object is repeated around the y axis, the
autorotate seems to follow correctly (pic2).
Gate v6.1

Thanks in advance,

Lampros


[image: Inline image 1]pic1
[image: Inline image 2]pic 2

---------MAC WITH Y ROTATION AND CORRECT AUTOROTATION-------------

#VISUALIZATION

 /vis/open OGLSX

/vis/viewer/reset

/vis/viewer/set/viewpointThetaPhi 60 60

/vis/viewer/zoomTo 2

/vis/viewer/set/style surface

/vis/drawVolume

/tracking/storeTrajectory 1

/vis/scene/endOfEventAction accumulate

/vis/viewer/refresh

/vis/scene/add/trajectories

/vis/viewer/update

 #/vis/open OGL 800x600-0+0

/vis/ogl/set/displayListLimit 8000000

/vis/viewer/set/viewpointThetaPhi 60 60

/vis/viewer/set/lightsMove camera

/vis/viewer/set/edge 1

/vis/viewer/set/hiddenEdge 1



#MATERIALS DB
/gate/geometry/setMaterialDatabase GateMaterials.db

 #WORLD

 /gate/world/geometry/setXLength 800. mm

/gate/world/geometry/setYLength 800. mm

/gate/world/geometry/setZLength 800. mm



/gate/world/daughters/name boxinside

/gate/world/daughters/insert box

/gate/boxinside/setMaterial Air

/gate/boxinside/geometry/setXLength 25.9375 mm

/gate/boxinside/geometry/setYLength 25.9375 mm

/gate/boxinside/geometry/setZLength 74.84 mm

/gate/boxinside/vis/forceWireframe

/gate/boxinside/vis/setColor blue

#/gate/boxinside/placement/alignToX

#/gate/boxinside/placement/setRotationAxis 0 1 0

#/gate/boxinside/placement/setRotationAngle 90. deg

/gate/boxinside/placement/setTranslation 0. 0. -200. mm

/gate/geometry/rebuild



#Boxinside repeater

 /gate/boxinside/repeaters/insert ring

/gate/boxinside/ring/setRepeatNumber 4

/gate/boxinside/ring/setPoint1 0. 1. 0. mm

/gate/boxinside/ring/setPoint2 0. 0. 0. mm

/gate/boxinside/ring/enableAutoRotation

/gate/geometry/rebuild



/gate/world/daughters/name detectorblock

/gate/world/daughters/insert trpd

/gate/detectorblock/setMaterial Aluminium

/gate/detectorblock/geometry/setX1Length 36.31 mm

/gate/detectorblock/geometry/setX2Length 26.5 mm

/gate/detectorblock/geometry/setY1Length 36.31 mm

/gate/detectorblock/geometry/setY2Length 26.5 mm

/gate/detectorblock/geometry/setXBoxLength 25.9375 mm

/gate/detectorblock/geometry/setYBoxLength 25.9375 mm

/gate/detectorblock/geometry/setZBoxLength 74.83 mm

/gate/detectorblock/geometry/setXBoxPos 0. mm

/gate/detectorblock/geometry/setYBoxPos 0. mm

/gate/detectorblock/geometry/setZBoxPos 0. mm

/gate/detectorblock/vis/forceWireframe

/gate/detectorblock/geometry/setZLength 74.84 mm

/gate/detectorblock/vis/setColor magenta

/gate/geometry/rebuild





#/gate/detectorblock/placement/alignToX

#/gate/detectorblock/placement/setRotationAxis 0 1 0

#/gate/detectorblock/placement/setRotationAngle 90 deg

/gate/detectorblock/placement/setTranslation 0. 0. -200. mm

/gate/geometry/rebuild



#Block ring repeater



/gate/detectorblock/repeaters/insert ring

/gate/detectorblock/ring/setRepeatNumber 4

/gate/detectorblock/ring/setPoint1 0. 1. 0. mm

/gate/detectorblock/ring/setPoint2 0. 0. 0. mm

/gate/detectorblock/ring/enableAutoRotation

/gate/geometry/rebuild



/gate/run/initialize


--------MAC WITH Z ROTATION AND NO AUTOROTATION-------------

#VISUALIZATION

/vis/open OGLSX

/vis/viewer/reset

/vis/viewer/set/viewpointThetaPhi 60 60

/vis/viewer/zoomTo 2

/vis/viewer/set/style surface

/vis/drawVolume

/tracking/storeTrajectory 1

/vis/scene/endOfEventAction accumulate

/vis/viewer/refresh

/vis/scene/add/trajectories

/vis/viewer/update

#/vis/open OGL 800x600-0+0

/vis/ogl/set/displayListLimit 8000000

/vis/viewer/set/viewpointThetaPhi 60 60

/vis/viewer/set/lightsMove camera

/vis/viewer/set/edge 1

/vis/viewer/set/hiddenEdge 1



#MATERIALS DB

/gate/geometry/setMaterialDatabase GateMaterials.db



#WORLD

/gate/world/geometry/setXLength 800. mm

/gate/world/geometry/setYLength 800. mm

/gate/world/geometry/setZLength 800. mm



#Detectorblock construction

/gate/world/daughters/name boxinside

/gate/world/daughters/insert box

/gate/boxinside/setMaterial Air

/gate/boxinside/geometry/setXLength 25.9375 mm

/gate/boxinside/geometry/setYLength 25.9375 mm

/gate/boxinside/geometry/setZLength 74.84 mm

/gate/boxinside/vis/forceWireframe

/gate/boxinside/vis/setColor blue

#/gate/boxinside/placement/alignToX

/gate/boxinside/placement/setRotationAxis 0 1 0

/gate/boxinside/placement/setRotationAngle 90. deg

/gate/boxinside/placement/setTranslation -200. 0. 0. mm

/gate/geometry/rebuild



#Boxinside repeater

/gate/boxinside/repeaters/insert ring

/gate/boxinside/ring/setRepeatNumber 4

#/gate/boxinside/ring/setPoint1 0. 1. 0. mm (z is default)

#/gate/boxinside/ring/setPoint2 0. 0. 0. mm (z is default)

/gate/boxinside/ring/enableAutoRotation

/gate/geometry/rebuild



/gate/world/daughters/name detectorblock

/gate/world/daughters/insert trpd

/gate/detectorblock/setMaterial Aluminium

/gate/detectorblock/geometry/setX1Length 36.31 mm

/gate/detectorblock/geometry/setX2Length 26.5 mm

/gate/detectorblock/geometry/setY1Length 36.31 mm

/gate/detectorblock/geometry/setY2Length 26.5 mm

/gate/detectorblock/geometry/setXBoxLength 25.9375 mm

/gate/detectorblock/geometry/setYBoxLength 25.9375 mm

/gate/detectorblock/geometry/setZBoxLength 74.83 mm

/gate/detectorblock/geometry/setXBoxPos 0. mm

/gate/detectorblock/geometry/setYBoxPos 0. mm

/gate/detectorblock/geometry/setZBoxPos 0. mm

/gate/detectorblock/vis/forceWireframe

/gate/detectorblock/geometry/setZLength 74.84 mm

/gate/detectorblock/vis/setColor magenta

/gate/geometry/rebuild



#/gate/detectorblock/placement/alignToX

/gate/detectorblock/placement/setRotationAxis 0 1 0

/gate/detectorblock/placement/setRotationAngle 90 deg

/gate/detectorblock/placement/setTranslation -200. 0. 0. mm

/gate/geometry/rebuild



#Block ring repeater

/gate/detectorblock/repeaters/insert ring

/gate/detectorblock/ring/setRepeatNumber 4

#/gate/detectorblock/ring/setPoint1 0. 1. 0. mm (z is default)

#/gate/detectorblock/ring/setPoint2 0. 0. 0. mm (z is default)

/gate/detectorblock/ring/enableAutoRotation

/gate/geometry/rebuild



/gate/run/initialize
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opengatecollaboration.org/mailman/private/gate-users/attachments/20130907/a7233300/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pic1.jpg
Type: image/jpeg
Size: 24605 bytes
Desc: not available
URL: <http://lists.opengatecollaboration.org/mailman/private/gate-users/attachments/20130907/a7233300/attachment-0002.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pic2.jpg
Type: image/jpeg
Size: 25360 bytes
Desc: not available
URL: <http://lists.opengatecollaboration.org/mailman/private/gate-users/attachments/20130907/a7233300/attachment-0003.jpg>


More information about the Gate-users mailing list