Rounding Voronoi Diagram
Résumé
Computational geometry classically assumes real-number arithmetic which does not exist in actual computers. A solution consists in using integer coordinates for data and exact arithmetic for computations. This approach implies that if the results of an algorithm are the input of another, these results must be rounded to match this hypothesis of integer coordinates. In this paper, we treat the case of two-dimensional Voronoi diagrams and are interested in rounding the Voronoi vertices at grid points while interesting properties of the Voronoi diagram are preserved. These properties are the planarity of the embedding and the convexity of the cells, we give a condition on the grid size to ensure that rounding to the nearest grid point preserve the properties. We also present heuristics to round vertices (not to the nearest) and preserve these properties.