Message: Re: GDML Not showing full visualization Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: GDML Not showing full visualization 

Forum: Geometry
Re: None GDML Not showing full visualization
Date: 18 May, 2016
From: Amar Munde <Amar Munde>

The problem is due to following line in geant4_9_6_p04\source\persistency\gdml\src\ Class Method: G4VPhysicalVolume* G4GDMLReadStructure:: GetWorldVolume(const G4String& setupName)


Following 2 solutions will work

Solution 1] Change as follows in G01 example

In file g01detectorconstruction.hh make changes in following class
class G01DetectorConstruction : public G4VUserDetectorConstruction
G01DetectorConstruction(G4VPhysicalVolume *setWorld = 0)
  fWorld = setWorld;  //  add next 2 lines
  const G4VisAttributes va(true);

PS : add #include "G4VisAttributes.hh" at the top

Solution 2] Change as follows in GEANT4 library (Not tested by me)

Delete or comment out following line in in GetWorldVolume method


 Add Message Add Message
to: "Re: GDML Not showing full visualization"

 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 ]