Message: Re: Visualization Problems with Examples B3 and B4? Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: Visualization Problems with Examples B3 and B4? 

Forum: Documentation and Examples
Re: None Visualization Problems with Examples B3 and B4? (Kirk Bertsche)
Re: Question Re: Visualization Problems with Examples B3 and B4? (Nikhat Shaikh)
Date: 19 Dec, 2014
From: Kirk Bertsche <Kirk Bertsche>

This sounds like the same problem that I had trying to run the "HandsOn" examples on Windows. For some reason, my Windows build of GEANT didn't like "SetVisAttributes (G4VisAttributes::Invisible)"

Try changing the "Visualization attributes" lines near the bottom of the "DetectorConstruction.cc" file.

E.g., here's the original line in B4dDetectorConstruction:

  //                                        
  // Visualization attributes
  //
  worldLV->SetVisAttributes (G4VisAttributes::Invisible);

try changing it to:

  //                                        
  // Visualization attributes
  //
  //worldLV->SetVisAttributes (G4VisAttributes::Invisible);
  G4VisAttributes* worldAttributes =
        new G4VisAttributes(G4Colour::White());
  worldAttributes->SetVisibility(false);
  worldLV->SetVisAttributes(worldAttributes);

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

1 None: Re: Visualization Problems with Examples B3 and B4?   (garnier - 12 Jan, 2015)
 Add Message Add Message
to: "Re: Visualization Problems with Examples B3 and B4?"

 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 ]