Disable auto-fit in the viewer #1929
Answered
by
alecjacobson
BBBBBbruce
asked this question in
Q&A
Replies: 2 comments
-
I found in viewer.core() has a function align_camera_center(), that is called also in launch_init(). I will just comment out it in the launch_init() at the moment |
Beta Was this translation helpful? Give feedback.
0 replies
-
yeah, that's the default behavior. I think you could load your mesh after
initialization to avoid that.
The camera controls are a bit hairy... Another hack would be to load
another mesh of a bounding box that you'd like to center the camera on.
…On Wed, Dec 1, 2021 at 12:10 PM BBBBBbruce ***@***.***> wrote:
I found in viewer.core() has a function align_camera_center(), that is
called also in launch_init(). I will just comment out it in the
launch_init() at the moment
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#1929 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AARDJGN7MU24X3V3K5Q3PXTUOZJJXANCNFSM5JE7OFRA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
BBBBBbruce
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I wonder how can I view the mesh as the size I defined.
What I have is a .msh file, I load it, and use the example in 110, I pass the V and F to set_mesh in the viewer. But when I multiply the scaler matrix for example MatrixXd(10,10,10)(before set_mesh()), I check the V, it has been enlarged, but the result shown in the viewer window is still the same as before enlargement.
My guess is the viewer has a fit-the-screen function, I wonder if I could disable it without changing the source code?
Thanks for the help.
Beta Was this translation helpful? Give feedback.
All reactions