void yy() { TEveManager::Create(); TEveGeoShape* s = 0; s = new TEveGeoShape("Tube"); s->SetShape(new TGeoTube(0, 10, 200)); s->SetMainColor(kRed); // s->SetMainTransparency(50); // s->SetNSegments(12); gEve->AddElement(s); s = new TEveGeoShape("Cone"); s->SetShape(new TGeoCone(20, 0, 40, 0, 0)); s->SetMainColor(kRed); // s->SetMainTransparency(50); // s->SetNSegments(12); s->RefMainTrans().MoveLF(3, 200 + 10); // See docs of TEveTrans. gEve->AddElement(s); gEve->Redraw3D(kTRUE); }