Re: [ROOT] 29.The Geometry Shapes and the X3D viewer in ROOT tutorials

From: Rene Brun (Rene.Brun@cern.ch)
Date: Wed Jun 12 2002 - 11:49:23 MEST


Hi Takefumi,

I misunderstood your original question. Sorry.
If you execute multiple times this script, you must delete
the previous shapes/nodes definitions. This can be done with:

   //delete previous geometry objects in case this script is reexecuted
   if (gGeometry) {
      gGeometry->GetListOfNodes()->Delete();
      gGeometry->GetListOfShapes()->Delete();
   }

Put these statements at the beginning of the script.
I have added thses 3 lines to shapes.C in the CVS version.

Rene Brun

On Wed, 12 Jun 2002, Takefumi SORA wrote:

> 
> Hello Rene Brun
> 
> To be concrete I change the macro in tutrial like that:
> 
> before: tube = new TTUBE("TUBE","TUBE","void",150,200,400)
> after : tube = new TTUBE("TUBE","TUBE","void",150,200,0)
> 
> If the changed macro is reexecuted, tube's height should be 0.
> But in my environment it remains 400. Only after reboot ROOT
> I can change tube's height.
> 
> > Note that you should leave the X3D viewer to get a new X3D view.
> 
> leaving the X3D view to get a new X3D view give me the warning like that:
> "Can have only one X3D viewer active"
> 
> I think that my ROOT read not the changed macro but cash.
> 



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:56 MET