The Triedron changes position

Hi,
I use OCC to display a coordinate system. When I zoom the window, the coordinate system shifts!
This problem also exists in the OCC sample androidqt Who can help me?

The code below:
V3d_View::TriedronDisplay(Aspect_TOTP_LEFT_LOWER,Quantity_NOC_RED, 0.1, V3d_ZBUFFER);

Attachments: 
Kirill Gavrilov's picture

You are zooming into an empty scene?

xu weibin's picture

No,I only changed the size of the view window, which is easy to happen when the height is getting smaller and smaller!

Kirill Gavrilov's picture

If you application is not expected to work as a tiny horizontal viewer, then it makes sense preventing window resize smaller than predefined values.

Otherwise, you may override Graphic3d_Camera::FOV2d() default value (set to 180 degrees) to something less reliable like 360 degrees.

xu weibin's picture

Thank you for your reply.
I modified the value and it didn't take effect.
The code below:
myView->DefaultCamera()->SetFOV2d(360.0);

Is there something wrong?

Kirill Gavrilov's picture

Your code changes V3d_View::DefaultCamera(), not active camera (V3d_View::Camera()). Not sure that your code makes any change.

xu weibin's picture

I use active camera,the problem also occurs.