void show_geo_extract(const char *file = "testShapeExtract.root") { auto eveMng = ROOT::Experimental::REveManager::Create(); // eveMng->AllowMultipleRemoteConnections(false, false); TFile::Open(file); TIter next(gDirectory->GetListOfKeys()); TKey *key; TString seName("ROOT::Experimental::REveGeoShapeExtract"); while ((key = (TKey *)next())) { std::cout << "calss name " << key->GetClassName() << "\n"; if (seName == key->GetClassName()) { std::cout << "got the extract name " << key->GetClassName() << "\n"; auto gse = (ROOT::Experimental::REveGeoShapeExtract *)key->ReadObj(); auto gs = ROOT::Experimental::REveGeoShape::ImportShapeExtract(gse, 0); eveMng->AddGlobalElement(gs); } } eveMng->Show(); }