Note that with C++ you can do directly
TGeoManager::Import("http://zeus32.cyf-kr.edu.pl/~mdwuznik/SCTandPIX_L123.root")
gGeoManager->GetTopVolume()->Draw("ogl")
ie
-no need to create a TGeoManager. This is done automatically by the static function TGeoManager::Import -you can access directly the original file via http as shown above. No need
to make a local copy.
In case of pyroot, you can do the same. However after top.Draw you must exit python to get the mouse control in the GL viewer.
Rene Brun
Michal Dwuznik wrote:
> Hi Rooters and Pythonians,
>
> I do observe a different behaviour of the 3D opengl viewer under plain
> ROOT and pyROOT.
> Could someone have a look at the geometry provided here:
> http://zeus32.cyf-kr.edu.pl/~mdwuznik/SCTandPIX_L123.root
> and Import it into ROOT and pyROOT sessions
> in ROOT:
>
> new TGeoManager()
> gGeoManager->Import("SCTandPIX_L123.root")
> gGeoManager->GetTopVolume()->Draw("ogl")
>
> works as intended, though in python
>
> import ROOT
> ROOT.TGeoManager()
> ROOT.gGeoManager.Import("SCTandPIX_L123.root")
> top = ROOT.gGeoManager.GetTopVolume()
> top.Draw("ogl")
>
> yields hordes of
> TGLLogicalShape::Draw:0: RuntimeWarning: display-list registration failed.
>
>
> ROOT version 5.19/01, python 2.5.2 on ubuntu.
>
> Regards
> Michal
>
> PS:(yes, all the overlaps and volumes inside each other are
> intentional, just in case someone digs inside the geom presented).
>
>
Received on Thu Mar 27 2008 - 15:47:14 CET
This archive was generated by hypermail 2.2.0 : Thu Mar 27 2008 - 17:50:01 CET