Message: Re: G4UnionSolid: problem with dimensions of constituents(Replay from Ivana Hrivnacova) Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: G4UnionSolid: problem with dimensions of constituents(Replay from Ivana Hrivnacova) 

Forum: Geometry
Re: Question G4UnionSolid: problem with dimensions of constituents (Angela Lucaci-Timoce)
Date: 23 Oct, 2008
From: Tatiana Nikitina <Tatiana Nikitina>

Dear Angela,

The second constituent solid in your union
is not of G4Trap type, but of G4DisplacedSolid type,
which holds both the info about solid and its displacement
(transformation wrt to the first solid).
That's why you have to access your trapezoid in this
way:
   G4DisplacedSolid* topDisplaced
     = (G4DisplacedSolid*)union->GetConstituentSolid(1);
   G4Trap *top = (G4Trap*)topDisplaced->GetConstituentMovedSolid();

Best regards,

Ivana

 Add Message Add Message
to: "Re: G4UnionSolid: problem with dimensions of constituents(Replay from Ivana Hrivnacova)"

 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 ]