Message: Re: Hollow box without top Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: Hollow box without top 

Forum: Geometry
Re: Question Hollow box without top (Davinder Siwal)
Re: None Re: Hollow box without top (Vladimir Grichine)
Date: 25 Jul, 2010
From: Davinder Siwal <Davinder Siwal>

Hii Valdmir

I tried to create the hollow geometry by taking the volume difference of the two boxes by using G4SubtractionSolid

G4VSolid *b1 = new G4Box("b1",100*mm/2,100*mm/2,100*mm/2);
  G4VSolid *b2 = new G4Box("b2",50*mm/2,50*mm/2,50*mm/2);
  G4VSolid* subtract= new G4SubtractionSolid("b1_minus_b2", b1, b2);

but when i visualize it the it show me only one box as shown in the attachment

   Attachment:
      http://hypernews.slac.stanford.edu/HyperNews/geant4/get/AUX/2010/07/25/10.49-21478-fig.jpg

can anybody tell me what wrong i am doing

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

1 None: Re: Hollow box without top   (Joseph Perl - 25 Jul, 2010)
 Add Message Add Message
to: "Re: Hollow box without top"

 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 ]