Replicating the TOP volume with different volumes visible

Hi,

What is the best way to draw several views of the same geometry on different pads? I am struggling to get ‘DrawOnly()’ to work with my volume hierarchy (which consists mainly of 2 different shapes added numerous time to ‘top’). I wish to draw ‘top’ to pad1, then change to pad2 and draw ‘top’ again with a diffferent view and different volumes visible, but when I click in pad1 the visibility settings from pad2 are applied - is there a way to ‘freeze’ pad1 before changing to pad2?

I’m sorry I don’t have the full code available, but basically what I do at the moment is:

pad1->cd();
mirror ->SetVisibility(kFALSE);
camera->SetVisibility(kTRUE);
top->Draw();
TView *mirview = gpad->GetView();
if (mirview) {
//set the view I want of the ‘mirror’ volume
}

pad2->cd();
mirror ->SetVisibility(kTRUE);
camera->SetVisibility(kFALSE);
top->Draw();
TView *camview = gpad->GetView();
if (camview) {
//set the view I want of the ‘camera’ volume
}

Thanks, Rich

see example in the attachement

Rene
shapestwo.C (3.42 KB)