Re: pyROOT - viewing geometry

From: Michal Dwuznik <Michal.Dwuznik_at_cern.ch>
Date: Fri, 7 Mar 2008 11:03:27 +0100


Hi Wim,
thank you for you efforts.

> > I was probably hit some TGeoMatrix creation error.
>
> the two scripts don't really look alike, but I was eventually able to
> reproduce the problem: in PyROOT there are two threads active, one for
> the prompt, one for updating canvases. The second Draw("ogl") destroys
> the old OpenGL scene, and then sometimes an update is still underway,
> resulting in a double delete.
>

Well, I just blind tried what is working in plain ROOT and got the non-expected result. I realized afterwards that deleting the whole scene is not the best solution, as there is TGLViewer::UpdateScene() method, which works flawless both in plain ROOT and pythonized version...

>
> > Invoking Draw() on the top volume after aligning the contents yields:
> > Info in <TGLSceneBase::RemoveViewer>: scene 'unnamed-1' not used -
> > autodestructing.
>

I attach the minimal examples for both python and ROOT, just as a proof of "that was wrong way of doing it with double Draw()"...

Thank you Wim, and sorry bothering you

Regards
Michal Received on Fri Mar 07 2008 - 11:03:40 CET

This archive was generated by hypermail 2.2.0 : Fri Mar 07 2008 - 11:50:02 CET