TGeo questions

Hello ROOTers,

I have a couple of questions concerning the geometry package.

  1. In v5 (to be precise v5.08.00, binaries were taken from ROOT FTP) geometry painter (by default ?) draws only the lowest level of the volume hierarchy. For example, the output of the following example is the red cube, though I would expected all three. How this could be fixed ? For comparison, in v3.05.07 (taken also in binary from from FTP) the script executes as expected.

  2. Is there anything like “hidden surface removal” option ?

The example for 1.

[code]{
new TGeoManager(“test”, “test”);

TGeoVolume* v1 = gGeoManager->MakeBox(“v1”, 0, 100, 100, 100);
v1->SetLineColor(kBlack);

TGeoVolume* v2 = gGeoManager->MakeBox(“v2”, 0, 50, 50, 50);
v2->SetLineColor(kGreen);

TGeoVolume* v3 = gGeoManager->MakeBox(“v3”, 0, 20, 20, 20);
v3->SetFillColor(kBlue);
v3->SetLineColor(kRed);

gGeoManager->SetTopVolume(v1);
v1->AddNode(v2, 101);
v2->AddNode(v3, 102);

gGeoManager->SetTopVisible(kTRUE);
gGeoManager->CloseGeometry();

v1->Draw();
}[/code]

By default only the leaves are visible. To show what you want add the statement

gGeoManager->ViewLeaves(kFALSE);before drawing v1

Rene