TGeoManager::Import("../data/spaceStation.root");
Info in <TGeoManager::Import>: Reading geometry from file: ../data/spaceStation.root Info in <TGeoManager::CloseGeometry>: Geometry loaded from file... Info in <TGeoManager::SetTopVolume>: Top volume is top. Master volume is top Info in <TGeoNavigator::BuildCache>: --- Maximum geometry depth set to 100 Info in <TGeoManager::Voxelize>: Voxelizing... Info in <TGeoManager::CountLevels>: max level = 1, max placements = 645 Info in <TGeoManager::CloseGeometry>: 0 nodes/ 645 volume UID's in Space Station Info in <TGeoManager::CloseGeometry>: ----------------modeler ready----------------
We now get the top volume of the geometry to which all volumes are attached and draw it. The visualisation is interactive Rotate and zoom it with your mouse!
auto topVolume = gGeoManager->GetTopVolume();
topVolume->Draw();
Info in <TCanvas::MakeDefCanvas>: created default TCanvas with name c1