[vtkusers] How to view Front, Top, Bottom, etc views of an object?
Shashwath T.R.
trshash at gmail.com
Wed May 11 04:19:55 EDT 2011
What's your focal point?
The view direction is the vector between position and focal point.
Shash
On Wed, May 11, 2011 at 1:06 PM, Nelson <gnjoseph at gmail.com> wrote:
> 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.
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20110511/145f5235/attachment.htm>
More information about the vtkusers
mailing list