4 ms·
It's all fun and games until you leave the euclidean plane and calculate the real distance.
by Rhapso 3y ago
It's all fun and games until you leave the euclidean plane and calculate the real distance.
- amelius 3y agoDistance isn't so much a problem. The real problem is that the surface is closed.
- Rhapso 3y agoBeing closed really isn't an obstacle. For example you can solve a euclidean modulus toroid by just tiling the space once more around itself, running a vanilla euclidean solver and then unioning the 9 copies of the space.
- amelius 3y agoIf the pointset is degenerate (e.g. 4 points on a circle), then you may get different local results in different copies of the space and the unioning may be difficult.
- Rhapso 3y agoAh, I'm an engineer not a theorist. Such degenerate input is unlikely to be a valid use case, can be detected, and I can reject it. Wait until you see the actual heuristic I use for solving voronoi/delaunay in arbitrary topologies. I need to write a blog post on it anyways.
- amelius 3y agoIt's very easy to get 4 points on a circle. In 2d space just the four corners of a unit square would do it.