Message: CSG problem Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question CSG problem 

Forum: Geometry
Date: 12 Oct, 2010
From: Nickolay Smirnov <Nickolay Smirnov>

I want to construct a boolean solid using torus and box. And I encountered such a problem: when I set dPhi of torus less than 1.0*rad subtraction stops work. Here is my portion of code:

G4Torus* torus = new G4Torus("torus", 10*m, 12*m, 280.93*m, 0*rad, 0.9*rad);
G4Box* box = new G4Box("box", 295.0*m, 200.0*m, 5*m);

G4SubtractionSolid* sub = new G4SubtractionSolid("Torus-Box", torus, box);


Maybe there is some kind of variable I need to set in order for CSG algorithm to start working with angles less than 1.0 radians?

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

1 None: Re: CSG problem   (Vladimir Grichine - 13 Oct, 2010)
(_ None: Re: CSG problem   (Nickolay Smirnov - 13 Oct, 2010)
1 None: Re: CSG problem   (Vladimir Grichine - 13 Oct, 2010)
2 None: Re: CSG problem   (Nickolay Smirnov - 13 Oct, 2010)
1 None: Re: CSG problem   (Vladimir Grichine - 14 Oct, 2010)
... 1 Message(s)
2 None: Re: CSG problem   (Vladimir Grichine - 14 Oct, 2010)
... 11 Message(s)
 Add Message Add Message
to: "CSG problem"

 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 ]