20 namespace REX = ROOT::Experimental;
22 void show_extract(
const char* file=
"csg.root")
27 auto eveMng = REX::REveManager::Create();
31 TIter next(gDirectory->GetListOfKeys());
33 const TString extract_class(
"ROOT::Experimental::REveGeoShapeExtract");
35 REX::REveGeoShape *eve_shape =
nullptr;
37 while (
auto key = (TKey *)next())
39 if (extract_class == key->GetClassName())
41 auto gse = (REX::REveGeoShapeExtract*) key->ReadObj();
42 eve_shape = REX::REveGeoShape::ImportShapeExtract(gse, 0);
43 eveMng->AddGlobalElement(eve_shape);
49 Error(
"show_extract.C",
"No keys of class '%s'.", extract_class.Data());
53 eve_shape->GetShape()->Draw(
"ogl");