If you remove the nodes on the convex vertices of the outer shell of the mesh, and nodes on the concave vertices from the holes of the mesh, you can get an optimized graph, since no shortest path will ever go trough those nodes.
Before: 882 nodes, 3522 connections
After: 439 nodes, 1226 connections
No comments:
Post a Comment