[vtkusers] How to view Front, Top, Bottom, etc views of an object?

Nelson gnjoseph at gmail.com
Wed May 11 03:36:51 EDT 2011


Shashwath,

I used the following code:

m_pRenderer->GetActiveCamera()->SetPosition( 1.0, 0, 0.0 );
m_pRenderer->GetActiveCamera()->SetViewUp( 0, 0, 1 );
m_pRenderer->ResetCamera();

It sets the view direction to +X.
But it does not set the view direction to +X for various objects. (it works
only for some objects)

Could you tell, anything should I add to this code?

-----
Regards,
Nelson
--
View this message in context: http://vtk.1045678.n5.nabble.com/How-to-view-Front-Top-Bottom-etc-views-of-an-object-tp3759132p4386686.html
Sent from the VTK - Users mailing list archive at Nabble.com.



More information about the vtkusers mailing list