-
-
Notifications
You must be signed in to change notification settings - Fork 19
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
can build mesh from edge lists #38
Conversation
I feel like this might be more useful if the CDT was persisted, and users could modify it to add/remove obstacles. With that it'd be possible to add a module to It'd be nice to eventually get something similar to https://www.jdxdev.com/blog/2021/07/06/rts-pathfinding-2-dynamic-navmesh-with-constrained-delaunay-triangles/ edit: Though of course, doing a triangulation also leaves some pathfinding performance on the table since polyanya can work with ngons. |
Thanks for the link! Lots of interesting info I'm hoping to make this API nicer to reuse/update, I'm trying to build an interactive demo but didn't have much time lately. Hopefully I should have some soon! Going from triangles to polygons is possible, there are a few algorithms on how to merge them. My idea is to have pretty much three levels of navmesh:
"slow" and "fast" are very... nebulous for now. On the small example I added (and on my laptop), going from CDT to trimesh takes 140µs and finding a path on that trimesh 8µs |
an easier api to create meshes just from a list of edges: