Re: Python & OpenGL geometry

From: Andrei Gheata <Andrei.Gheata_at_cern.ch>
Date: Fri, 18 Jul 2008 13:57:58 +0200


Hi Michal,

After Align() the aligned branch of volumes is duplicated - new volumes are created. Accessing by name or UID does not work because this will access the non-aligned ones (that we have to keep due to replication). The way to access the newly created volumes is either via TGeoPhysicalNode::GetVolume(i) or by full path : gGeoManager->cd(path); gGeoManager->GetCurrentVolume();

Regards,
Andrei

Michal Dwuznik wrote:
>
>
>
> -----Original Message-----
> From: Andrei Gheata
> Sent: Fri 7/18/2008 10:37 AM
> To: Michal Dwuznik
> Cc: roottalk (Mailing list discussing all aspects of the ROOT system)
> Subject: Re: [ROOT] Python & OpenGL geometry
> Hi Andrei,
>
> my mistake sorry,
> unfortunately after building from different media and using proper names
> after Align() I lose the possibility of changing attributes -
> both using already created TGeoVolume references and recreating them
> via gGeoManager.GetListOfUVolumes().
> Is that 'by design'?
> Regards
> Michal
>
> >Hi Michal,
> >
> > >box1 = ROOT.gGeoManager.MakeBox('box1', solid1, 10, 20, 30)
> > >box2 = ROOT.gGeoManager.MakeBox('box2', solid1, 20, 20, 20)
> >
> >Looks for me the 2 volumes have the same medium, therefore material. Try
> > solid2 for the second line. Also, create a TGeoManager using:
> >
> >ROOT.TGeoManager('geom','comment')
> >
> >Cheers,
> >Andrei
> >
> >Michal Dwuznik wrote:
> >> Hi,
> >>
> <cut>
>
Received on Fri Jul 18 2008 - 13:58:12 CEST

This archive was generated by hypermail 2.2.0 : Fri Jul 18 2008 - 17:50:01 CEST