|Message: Re: Interaction of solid with a Fresnel Lens||Not Logged In (login)|
Click on the Forum title, e.g. on the "Forums by Category" page, to read a sequence of postings to the Forum and its threads all in one page. If you are only interested in one thread or the thread following a specific posting, click the thread or the posting, which takes you to a smaller page, which contains only the part you are interested in and may be easier to navigate.
Messages are "chained" if there are only replies at the first level, i.e. 1/1.html, 1/1/1.html etc. In case of "chained" messages the message number is replaced by the icon and there is no indentation.
Inline: Display the subject line only or also the text of the posting(s); for the choice "All" the "Outline" choices are switched off.
|1||0||1||no text / full text of posting|
|2||1||All||text for level 1 only / text for All postings|
Outline: Choose the depth of the posting thread, successive toggle controls provide increasing detail.
|1||2||1||2 levels / 1 level (original posting)|
|2||3||2||3 levels / 2 levels|
|3||3||All||3 levels / all levels (all postings)|
On Mon, 01 Jul 2013 16:04:54 GMT, Beatrice Panico wrote:
> For example : > > //standard box > G4Box * FLBox = new G4Box("FLBox",(500.0)*mm, (500.0)*mm, (thin)/2.*mm); > //standard tube > G4Tubs* FCyl = new G4Tubs ("FCyl",0., (600.0)*mm, (thin)/2.*mm, 0., twopi ); > > //this works well > G4SubtractionSolid* FLQuad = new G4SubtractionSolid("FLBox-FCyl",FLBox,FCyl); > G4IntersectionSolid* Int = new G4IntersectionSolid("FLBox*FCyl",FLBox, > FCyl,FrontLensRot,G4ThreeVector(0.,0.,0)); > > //then I ask for > G4IntersectionSolid* FLIntR= new G4IntersectionSolid("FLBox*FrontLensMoved",FLBox,FrontLens_solid,FrontLensRot,G4ThreeVector(0.,0.,0)); > > G4LogicalVolume* FLIntR_log = new G4LogicalVolume(FLIntR,fPMMA,"FrontLens",0,0,0); > > // here there is the crash > G4VPhysicalVolume* FLIntR_phys= new G4PVPlacement(0,G4ThreeVector(0.,0.,(fLensDistance+thin)/2.*mm),FLIntR_log,"FrontLens",OpticalSystem_log,false,0); > > The lens is constructed by the class ShapeOfLens, but I don't thik that > the problem is there because without the intersection the lens works > well. I need intersection to modify lens shape. > > ShapeOfLens* FrontLens_solid = new ShapeOfLens("FrontLens", > (thin+0.5)*0.5*mm, (r_wall+1.)*mm, upsurf1, downsurf1); >FrontLensRot? The ShapeOfLens is not clear. Are you sure that the intersection is not null?
|Inline Depth:||Outline Depth:||Add message:|