Message: Re: rotation of volume obout global origin rather than local origin Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: rotation of volume obout global origin rather than local origin 

Forum: Geometry
Re: None rotation of volume obout global origin rather than local origin (Greg Thom)
Date: 23 Oct, 2017
From: Greg Thom <Greg Thom>

Hi All,

After giving it some thought, I solved with it with calculating the translation needed after applying the rotation about the local center.

/control/multiply ZSinGantryAngle {GantryZPlacement} {SineGantryAngle} /control/multiply ZCosGantryAngle {GantryZPlacement} {CosineGantryAngle}

/gate/linac_gantry/placement/setTranslation {ZSinGantryAngle} 0 {ZCosGantryAngle} mm /gate/linac_gantry/placement/setRotationAxis 0 1 0 # /gate/linac_gantry/placement/setRotationAngle {GantryAngle} deg

Thanks

GT

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 Ok: Re: rotation of volume obout global origin rather than local origin   (Michael H. Kelsey - 24 Oct, 2017)
 Add Message Add Message
to: "Re: rotation of volume obout global origin rather than local origin"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]