Fri, 03/04/2022 - 05:55
Forums:
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:
Fri, 03/04/2022 - 11:59
You are zooming into an empty scene?
Fri, 03/04/2022 - 12:37
No,I only changed the size of the view window, which is easy to happen when the height is getting smaller and smaller!
Fri, 03/04/2022 - 15:23
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.
Mon, 03/07/2022 - 05:28
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?
Mon, 03/07/2022 - 20:01
Your code changes V3d_View::DefaultCamera(), not active camera (V3d_View::Camera()). Not sure that your code makes any change.
Tue, 03/08/2022 - 03:09
I use active camera,the problem also occurs.