I see how this is done in this post. Unfortunately this not really what I want because the markers do not form a nice surface.
I found that using OpenGL is heading in the right direction. It looks like I want to do the exact same thing as here. I found a way that is very close to want I want:
If hist is my TH3F*, I do
double max=hist->GetMaximum()+1;
hist->SetMinimum(max+1); //do not show any bins
hist->Draw(“glbox”);
Now, I can move slices through the volume on which cuts are shown in colors.There are only three things missing:
- I would like to set the positions of the planes programmatically
- I would like to add more than only one slice per axis
- I need the color palette that was used to create the cuts
Do you have any ideas how to this this?