[vtkusers] vtkCamera question...

de Boer Ingo I.deBoer at polytec.de
Fri Jun 13 04:31:02 EDT 2003


Hi...

I have a small problem with setting a new angle to the camera...
I have this piece of code...

float fElevation = 90.0f;
float* angles = m_pvtkCamera->GetOrientation();
m_pvtkCamera->Elevation(-angles[0]);
m_pvtkCamera->Elevation(fElevation);
m_pvtkCamera->Modified();
angles = m_pvtkCamera->GetOrientation();

Why is angels[0] in the end not 90.0f ??
Instead every angels[i] changes to some weired value ?!

greets
  Ingo



More information about the vtkusers mailing list