Hello,<br>I have a vtkCoordinate with world-Coordinate system initialized.<br><br>vtkCoordinate* m_coord = vtkCoordinate::New();<br>m_coord->SetCoordinateSystemToWorld();<br><br>CDataSpace* l_space = l_prop->GetBox().get();<br>
m_coord->SetValue(l_space->x_min,l_space->y_min, 0.0); <br>m_x_viewport_begin = *(m_coord->GetComputedViewportValue(m_renderer));<br>m_y_viewport_begin = *(m_coord->GetComputedViewportValue(m_renderer) + 1);<br>
<br>m_coord->SetValue(l_space->x_min,l_space->y_max, 0.0); <br>m_y_viewport_end = *(m_coord->GetComputedViewportValue(m_renderer) + 1);<br>m_coord->SetValue(l_space->x_max,l_space->y_min, 0.0); <br>
m_x_viewport_end = *(m_coord->GetComputedViewportValue(m_renderer));<br><br><br>The condition l_space.min < l_space.max is always true.<br>I am using parallel projection and the cameras rotation or its angle is<br>
not modified. The Z-Coordinate of the camera is ALWAYS positive.<br>However, after resizing the window, I get <br>mirrored coordinates, which means m_x_viewport_begin > m_x_viewport_end<br>in this case.<br><br>I am really lost with this and any help would be greatly appreciated.<br>
<br>Best regards,<br>Oliver<br><br><br>