Message: Re: using G4SubtractionSolid correctly for complex geometry Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: using G4SubtractionSolid correctly for complex geometry 

Forum: Geometry
Re: None using G4SubtractionSolid correctly for complex geometry (Anthony Villano)
Date: 15 Jan, 2016
From: John Allison <John Allison>

There's no reason changing geometry should cause an otherwise working vis system to fail - unless memory is being corrupted, perhaps. I notice you keep creating solids of the same name - "botPlate_S" - and reusing the pointer botPlate. The latter will really confuse Geant4 because a G4SubtractionSolid keeps pointers to its components. Try giving each solid a different name, e.g.,

  std::ostringstream oss;
  oss << i;
  G4String same = "botPlate_S1_" + oss.str();

and keeping separate pointers:

  typedef G4VSolid* SPointer;
  SPointer smallHoles[7];
  for (i=0;i<7;i++) {
    smallHoles[i] = new G4SubtractionSolid...

I've not worked it out completely but you get the idea?

John

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

1 None: Re: using G4SubtractionSolid correctly for complex geometry   (John Allison - 15 Jan, 2016)
(_ Agree: Re: using G4SubtractionSolid correctly for complex geometry   (Michael H. Kelsey - 15 Jan, 2016)
(_ None: Re: using G4SubtractionSolid correctly for complex geometry   (John Allison - 16 Jan, 2016)
1 None: Re: using G4SubtractionSolid correctly for complex geometry   (Anthony Villano - 16 Jan, 2016)
2 None: Re: using G4SubtractionSolid correctly for complex geometry   (Anthony Villano - 16 Jan, 2016)
1 None: Re: using G4SubtractionSolid correctly for complex geometry   (Anthony Villano - 16 Jan, 2016)
... 2 Message(s)
 Add Message Add Message
to: "Re: using G4SubtractionSolid correctly for complex geometry"

 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 ]