How to set orientation of geometry in 3D viewer

Dear rooters,

by default, z axis is set to be horizontal in 3D viewer. I guess this is because ROOT is designed mainly for high energy physics, where the detector frame is alway like this. I am wondering how to change this in my own code.

Cheers, Jing

root.cern.ch/root/htmldoc/TGLVie … rentCamera

Cheers,
Matevz

[quote=“matevz”]http://root.cern.ch/root/htmldoc/TGLViewer.html#TGLViewer:SetCurrentCamera

Cheers,
Matevz[/quote]

Yes, that works for me. Thank you, Matevz!

Cheers, Jing