-
Notifications
You must be signed in to change notification settings - Fork 53
Implement PolygonSelector #837
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
base: main
Are you sure you want to change the base?
Conversation
Next up, add morphing 😎 |
That's worthy of a separate lib :) |
You already have gfxmorph 🤣 |
This is nearly done, but the ux needs some thought and work. I'm thinking something like this:
|
All this sounds good to me!
I think this should be explicitly called, or via imgui right click menu. Or clicking on the fill area selects the polygon and presing the "Del" key deletes it. |
Interaction done! Slightly different than I said earlier:
edit: in the above, a snapping visualization is applied to help the user understand that the vertex will be "merged" with the vertex under the mouse. |
I just learned about bermuda, a triangulation lib implemented in Rust, a spin-off of the Napari project. We could try and see if it helps here. It would mean an extra dependency, so maybe not use it unless we need it. But we can at least do some quick benchmarks and add a note, so that in case we do need more speed, we know how to get it. |
Uh oh!
There was an error while loading. Please reload this page.