M. Deberg et al., SIMPLE TRAVERSAL OF A SUBDIVISION WITHOUT EXTRA STORAGE, International journal of geographical information science, 11(4), 1997, pp. 359-373
In this paper we show how to traverse a subdivision and to report all
cells, edges and vertices, without making use of mark bits in the stru
cture or a stack. We do this by performing a depth-first search on the
subdivision, using local criteria for deciding what is the next cell
to visit. Our method is extremely simple and provably correct. The alg
orithm has applications in the held of geographic information systems
(GIS), where traversing subdivisions is a common operation, but modify
ing the database is unwanted or impossible. We show how to adapt our a
lgorithm to answer related queries, such as windowing queries and repo
rting connected subsets of cells that have a common attribute. Finally
, we show how to extend our algorithm such that it can handle convex t
hree-dimensional subdivisions.