Message: Re: Rotating a cylinder Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: Rotating a cylinder 

Forum: Geometry
Re: None Rotating a cylinder (Jonathan Porter)
Date: 21 Jul, 2012
From: michel maire <michel maire>

On Fri, 20 Jul 2012 19:58:05 GMT, Jonathan Porter wrote:
> I'm trying to rotate a cylinder by 90 degrees in the YZ plane. Here's my
> code:
> 
> G4VSolid * tubeSolid = new
> G4Tubs("tubeSolid",0*cm,19.2*cm,1247.4*cm,0*deg,360*deg);
> 
> G4LogicalVolume* tubeLogical = new G4LogicalVolume(tubeSolid, Air,
> "tubeLog");
> 
> G4VPhysicalVolume* fronttube2Phys = new
> G4PVPlacement((0*deg,90*deg,0),G4ThreeVector(536.3*cm,536.3*cm,1247.4*cm),fronttube2Logical,"Air",DETR_log,false,0);
> 
> When I visualize this in OpenGl, my cylinder does not appear to be
> rotated.
> 
> Any suggestions?
> 

 I admit that User Guide is brief on rotation matrix.
 See simple example in basic/B3, and more complete in extended/geometry/transforms 

 Add Message Add Message
to: "Re: Rotating a cylinder"

 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 ]