Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add unit to viewer and config #190

Merged
merged 3 commits into from
Jul 12, 2024
Merged

add unit to viewer and config #190

merged 3 commits into from
Jul 12, 2024

Conversation

Licini
Copy link
Collaborator

@Licini Licini commented Jul 11, 2024

Alternative approach to #189 , by simply changing camera parameters. Also just realized we already had a scale attribute in camera to scale far, near, pandelta altogether, so we just need to set that value plus the grid size.

User can do either:

config.unit="mm"
viewer = Viewer(config)

or

viewer=Viewer()
viewer.unit="mm"

It does not yet allow switching unit after viewer started running, but that I can add later.

@Licini Licini requested a review from tomvanmele July 11, 2024 09:20
@Licini Licini merged commit 076e0b7 into main Jul 12, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant