Zoom to box size
#103
-
I created a container, but the data did not completely fill the container. There is still some space left. How can I make the container completely filled with data? |
Beta Was this translation helpful? Give feedback.
Answered by
vagran
Mar 20, 2024
Replies: 1 comment
-
It is intentional padding, used for automatic view when a scene is loaded. You can call FitView() with const bounds = viewer.GetBounds()
const origin = viewer.GetOrigin()
viewer.FitView(bounds.minX - origin.x, bound.maxX - origin.x, bounds.minY - origin.Y, bounds.maxY - origin.Y, 0) |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
ershuaili
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It is intentional padding, used for automatic view when a scene is loaded. You can call FitView() with
padding
argument set to0
like here. Something like: