Given Voronoi diagram, how to locate which polygon contains query point q? What if q is one of the Voronoi sites, would it make any difference?
Do we walk through each polygon and check point-in-polygon? It is too expensive and slow to do that.
Given Voronoi diagram, how to locate which polygon contains query point q? What if q is one of the Voronoi sites, would it make any difference?
Do we walk through each polygon and check point-in-polygon? It is too expensive and slow to do that.
This is a well-studied topic. Search for "point location within a convex subdivision." Here is one paper that can lead you to others:
Cheng, Siu-Wing, and Man-Kit Lau. "Adaptive point location in planar convex subdivisions." International Symposium on Algorithms and Computation. Springer, Berlin, Heidelberg, 2015. (Journal link.)
Or maybe this presentation is easier to penetrate:
Subhash Suri, "Point Location." (PDF download.)