Manuscript Offprint
arXiv:2609.01472Efficient K-Visibility Query in Polygons
Yeganeh Bahoo [0000-0001-5349-4946] and Roni
Sherman [0009-0004-0542-3480]
Toronto Metropolitan University, Toronto, ON M5B 2K3, Canada
{bahoo,roni.sherman}@torontomu.ca
Abstract. This paper investigates k-visibility, where a line of sight can penetrate up to k obstacles. While computing the k-visibility polygon from a single query point is well-studied, existing spatial preprocessing approaches rely on full line arrangements through all vertex pairs without characterizing the minimal set of topological boundaries. We present a refined cell decomposition framework that isolates the exact geometric events governing k-visibility: primary vertex horizon lines and secondary mutually critical hinge lines. We prove that this minimal set of partition lines yields a spatial decomposition of cells within which the combinatorial structure of the k-visibility polygon remains strictly invariant. By leveraging a combinatorial -compression scheme across cell boundaries, we achieve an overall storage complexity of while supporting optimal query time to reconstruct explicit k-visibility polygons of size . Our framework naturally extends to polygons containing holes.
1 Introduction
Given a simple polygon with vertices and an integer , two points are said to be -visible to each other if the open line segment intersects the boundary at most times. The integer represents the visibility depth (or the number of obstacle walls penetrated). The -visibility polygon of a query point , denoted , is the set of all points in that are -visible from . A central goal in computational geometry is to preprocess into a spatial partition called a cell decomposition—a division of into open, connected regions (cells) such that as a query point moves within a single cell, the combinatorial structure of its visibility polygon remains invariant. Such decompositions allow efficient point-location query data structures to report for any query point .
Computing the visibility region of a point within a geometric domain is a classic problem in computational geometry, with foundational linear-time algorithms established for standard 0-visibility in simple polygons with n vertices [13, 11]. Several algorithms have been proposed to calculate the k-visibility polygon of
We acknowledge the support of the Natural Sciences and Engineering Research Council of Canada (NSERC).
Y. Bahoo et al.
a point—the region visible when allowing up to obstacle intersections—from scratch, including an initial time framework by Martins et al. [10], an approach, and an asymptotically faster parameterized algorithm by Bahoo et al [4]. Complementary research investigated time-space trade-offs under severe memory constraints [3]. Efficient query data structures for 0-visibility have also seen significant development. Early methods achieved query time—where is the number of vertices in the reported visibility region—with space [9], while recent advancements utilize space to optimize visibility queries [8]. In dynamic settings, extensive research has targeted kinetic visibility algorithms [2]. Concurrently, generalized -cell decompositions have been studied to track shadow transitions and prevent the split or merge of unseen regions in pursuit-evasion games [6, 7]. While these structures share the goal of partitioning the domain into invariant visibility regions, key technical differences exist: the framework in [6] introduces redundant partition lines, whereas the exact decomposition in [7] focuses specifically on shadow-level events for shadows defined strictly within . In contrast, our new decomposition explicitly tracks boundaries where the generating tuples of the visibility windows change and accounts for shadows defined outside of as well, yielding a tight, non-redundant cell arrangement tailored for exact point-location queries. This decomposition also takes into account windows of the and visibility polygons of vertices.
Beyond theoretical exploration, k-visibility structures have gained significant traction in modern applications, most notably in solving the wireless k-modem or illumination problem, where guards act as transmitters capable of penetrating up to k walls [1]. Furthermore, recent developments have leveraged inverse k-visibility for real-time RSSI-based indoor geometric mapping and autonomous path-planning [14, 15]. k-visibility has also been recently studied in relation to M-guarding [5].
While k-visibility query structures exist, constructing a tight, minimal cell decomposition without redundant partition boundaries remains unresolved. In their work exploring static structures, Bahoo et al. [4] proposed a data structure requiring space to support k-visibility queries. However, their model relies on a global, unrefined arrangement formed by extending lines through all pairs of vertices. While this guarantees topological completeness, it creates an oversized -cell arrangement populated by redundant, spurious boundaries where no actual visibility changes occur. Post-merging these cells is computationally expensive and fails to reveal the underlying structural geometry. Fully resolving this challenge requires a tight classification of the minimal spatial arrangement that triggers discrete topological mutations—abrupt structural changes in the combinatorial state of the k-visibility polygon that a point sees.
In this work, we generalize the cell-decomposition query framework of Bose et al. [9] and Guibas et al. [12] to k-visibility environments. We establish the minimal set of primary and secondary horizon lines required for structural invariance, directly constructing a tight arrangement of cells without redundant lines. Furthermore, by introducing a delta-compressed dual arrangement tree that stores only atomic mutations along tree edges, our scheme reduces total space complexity from to while supporting optimal query reconstruction time.
Preprocessing Phase: Given a polygon P and the parameter k, construct a data structure that partitions P into a cell-decomposition arrangement such that the combinatorial representation of the k-visible region of any point in a cell of the decomposition remains invariant.
Query Phase: Given a query point , utilize the preprocessed data structure to efficiently locate the cell containing q and retrieve the k-visibility polygon of q, denoted as .
We assume general position and that no three vertices can be colinear.
3 The Geometric Structure of the k-Visibility Polygon
For a query point , the k-visibility polygon is a subset of whose boundary comprises two distinct types of geometric features: k-visible boundary chains and visibility windows. The k-visible boundary chains consist of continuous sequences of vertices and edges belonging to —the polygon boundary—or the bounding box (the box outside that bounds it) that possess a visibility depth of from . These disconnected visible chains are topologically connected by visibility windows—line segments acting as artificial horizons that bound the occluded regions of the polygon. An example of a 2-visibility polygon is illustrated in Figure 1, where is represented by the shaded blue region.

Fig. 1: 2-visibility polygon (blue region) of point q
Definition 1 (Critical Vertex). Let be the line passing through a vertex a and a point b. The vertex a is critical to b if both edges incident to a lie strictly
Y. Bahoo et al.
on the same side of . For example, in Figure 1 is critical to q. Geometrically, a critical vertex a acts as an obstacle reflex corner relative to b, causing the ray emanating from b through a to extend into the interior of P beyond a. This extension forms a local topological boundary (a visibility window) that separates an occluded shadow region—a subregion of P immediately behind vertex a where points lose direct visibility from b—from the region that is visible from b.
Definition 2 (k-Visibility). Let be a simple polygon and denote its boundary. Two points are -visible to each other if the open line segment intersects in at most distinct boundary crossings.
Definition 3 (k-Visibility Polygon). Given a point and an integer , the k-visibility polygon of q in P, denoted , is the set of all points that are k-visible from q:
A non-polygonal edge of the k-visibility polygon of q is called a window. Combinatorially, every visibility window W is uniquely generated by a single critical vertex , which acts as a geometric hinge that terminates the direct line of sight from the point q. A window W is completely characterized by a three-tuple consisting of the following geometric elements:
-
The critical vertex c responsible for inducing the shadow or occlusion boundary (e.g., for window ).
-
The proximal edge of the window, which corresponds to the boundary edge closest to the critical vertex c where the obstruction originates (e.g., the edge for the window in Figure 1).
-
The distal edge of the window, which represents the background boundary edge of P where the extended ray from q through c ends (e.g., the edge for the window in Figure 1).
Definition 4. A visibility window W within the k-visibility polygon is a line segment collinear to the query point and a critical vertex , uniquely characterized by a c, a proximal (start) edge, and a distal (end) edge. The window W acts as a local topological boundary separating a k-visible subregion from an occluded shadow region. Formally, a neighborhood intersected by W contains an interior subset belonging strictly to on one side, and an exterior subset belonging to on the opposite side.
4 Combinatorial Cell Data and Storage Representation
To facilitate rapid query execution, the polygon P is decomposed into a finite spatial arrangement of cells. Within each cell, the topological structure (the combinatorial visibility sequence) of the k-visibility polygon remains strictly invariant. However, while the ordered sequence of visible elements is fixed throughout a cell, the precise geometric coordinates of the visibility window endpoints depend on the exact position of the query point q. Thus, to output the exact spatial boundary of at query time, a dynamic geometric reconstruction is required:
the cell's stored combinatorial sequence is traversed, and the actual geometric positions of window endpoints are computed dynamically by shooting rays from q through each critical vertex c onto its corresponding proximal edge and distal edge .
To support this dynamic query reconstruction, each cell explicitly stores its invariant combinatorial sequence, ordered counter-clockwise along . This sequence comprises an alternating chain of two distinct entry types:
– A k-visible vertex: A standalone vertex whose visibility depth from any point within the cell is k.
– A window generator tuple: A structural descriptor representing a visibility window, characterized as or .
The bounding box environment may also contribute to the sequence: a vertex v of the bounding box is included if it is visible, and an edge of the bounding box may serve as the distal edge within a window generator tuple if the occlusion ray terminates on it. We assume that any visible parts of the bounding box are k-visible.
During the offline preprocessing phase, this structural sequence is computed for each cell by executing the topological labeling algorithm introduced by Martins et al. [10]. By selecting and traversing only the edge and vertex labels whose computed visibility depths satisfy the threshold equal to k and connecting them via windows, the precise sequence of visible vertices and window parameters can be extracted and mapped directly to the cell.
5 Spatial Partition Lines: Classification and Correctness
The construction of the cell decomposition relies on identifying the exact geometric boundaries where the combinatorial structure of the k-visibility polygon undergoes a topological mutation. To guarantee that the stored structural sequence remains invariant within each cell, we overlay a set of critical curves classified into two distinct categories of visibility event lines:
-
Primary Vertex Horizon Lines (Type 1a): Window edges within P belonging to the individual k-visibility polygon of each vertex, governing the entry and exit of vertices from the shadow into the visibility sequence.
-
Primary Vertex Horizon Lines (Type 1b): Window edges within P belonging to the individual -visibility polygon of each vertex, governing the entry and exit of vertices from the visibility polygon into the visibility sequence.
-
Secondary Hinge Transition Lines (Type 2): Collinear extensions passing through pairs of mutually critical vertices, governing a combinatorial change in window generators.
Below, we formally prove that these two categories of boundaries are both necessary and sufficient to isolate distinct combinatorial states.
Theorem 1. The cell decomposition strictly requires primary vertex horizon lines (Type 1a) derived from the window extensions of for every vertex .
Y. Bahoo et al.
Proof. Let be an arbitrary vertex, and let be a visibility window of anchored by a critical vertex . We define the corresponding horizon line, , as the active segment of restricted to ( ). Let be two query points in arbitrarily small open neighborhoods situated on opposite sides of , such that the segment intersects transversally at a point . By definition of , crossing this horizon boundary alters the obstacle penetration depth of the line segment connecting the query point to :
(or vice versa). Consequently,
Since , the sequence undergoes a discrete topological mutation at . Therefore, the interior segment acts as a mandatory cell partition boundary.

(a) Right of

(b) Left of

(c) Left of
Fig. 2: Vertex horizon lines of and
Consider the vertex and its Type 1a partition line, (the dashed purple line closest to ). Crossing from to (Figures 2a–2b) brings out of shadow into 2-visibility, adding to and updating the distal edge of window from to . Because crossing alters the combinatorial sequence, Type 1a lines are strictly required as cell partition boundaries.
Theorem 2. The cell decomposition strictly requires primary vertex horizon lines (Type 1b) derived from the window extensions of for every vertex .
Proof. By definition of a visibility window of , crossing the horizon segment (part of the window that is within ) alters the obstacle penetration depth of relative to the query point:
-
At , lies on the boundary (with ). Here, a vertex acts as a window generator anchoring a visibility window in with proximal edge . Thus, the structural sequence contains a generator tuple .
-
Upon crossing to , the obstacle depth drops to points, causing to transition directly into the interior of the visible region . The adjacent proximal edge descriptor shifts from to .
Because while , and the recorded proximal edge descriptor updates from to , the combinatorial visibility sequences satisfy . Thus, forms a necessary cell partition boundary.
Consider the vertex and its Type 1b partition line, (the dashed purple line closest to ). Crossing to (Figures 2b–2c) moves into the interior of , removing it from the boundary sequence and shifting the proximal edge descriptor from to . This combinatorial shift necessitates Type 1b lines as partition boundaries.
Theorem 3. The cell decomposition does not require horizon lines from the windows of where or (when v is not critical to the vertex responsible for the window).
The proof is in Appendix A.
Theorem 4. The cell decomposition strictly requires the secondary hinge transition lines (Type 2) generated by mutually critical vertex configurations.
Proof. Let be two mutually critical vertices, and let be the line passing through them. Let denote the active hinge transition line segment defined between boundary points and . Let be two interior query points situated in small open neighborhoods on opposite sides of , such that the open line segment intersects transversally at a single point.
Depending on the specific obstacle depth configuration (Z and W relative to k as defined in section 6), crossing induces a discrete combinatorial mutation in
Y. Bahoo et al.
the window generator tuples associated with the critical pair. Without loss of generality, consider the configuration where a visibility window is projected beyond and (corresponding to the representative subcase in Figure 5 for W, i.e. where is):
-
When (situated above ), the line-of-sight orientation establishes as the anchor for the first window generator tuple (corresponding to the dashed red line) , while anchors the second window generator tuple (here ).
-
Upon crossing to (situated below ), the relative line-of-sight orientation flips. This structural inversion swaps the primary anchors across both windows: and (as illustrated in the representative subcase of Figure 5).
An analogous dual-tuple mutation occurs across for all other valid subcases of mutually critical pairs (detailed in Appendix B). Because dynamic window reconstruction at query time evaluates the ray passing from q through the specific anchor vertex recorded in and , the stored generator tuples satisfy , which implies . Therefore, a and b cannot share the same topological cell, establishing that is a mandatory cell partition boundary.
6 Hinge Transition Lines
To determine where hinge transition lines are needed, we look at what happens to the visibility polygon in relation to two vertices that are mutually critical, similarly to [7], with the difference being that in that work, the shadow is defined only within the polygon, whereas here the shadow is also defined outside. To do this, we define the following: let be the line through two critical vertices and (from left to right). Let be a point to the left of on and be the point on immediately subsequent to also on the polygon. Let be a point after on that touches the polygon and the point immediately preceding it which also the touches the polygon. Let the query point be denoted when it is above and when it is below. Let be the line through the query point through . Let be the line from the query point through . To see where the combinatorial structure of the -visibility polygon changes due to the two critical vertices, we vary values of and obstruction count. For this, we use two variables, the first one is , which is the number of edges between and in terms of not including the edges incident to and , and , which is the number of edges between and in terms of not including the edges incident to and . There are eight basic cases of how two critical vertices may be arranged:
• CCS (Convex - Convex - Same)
• CCO (Convex - Convex - Opposite)
• CRS (Convex - Reflex - Same)
• CRO (Convex - Reflex - Opposite)
• RCS (Reflect - Convex - Same)
• RCO (Reflex - Convex - Opposite)
• RRS (Reflex - Reflex - Same)
• RRO (Reflex - Reflex - Opposite)
There are also four more special cases (CC, CR, RC, RR). These occur when and are adjacent to each other. These cases are necessary because the visibility polygon behaves differently compared to the first eight basic cases.
Completeness of Case Analysis. To establish that the 8 generic subcases (along with the 4 adjacent-vertex special cases) exhaustively capture all secondary topological events, we observe the following structural properties:
-
General Position Assumption: Assuming no three vertices of P are collinear guarantees that any partition line lies on a line that passes through at most two vertices .
-
Decoupling Primary vs. Secondary Events: Single-vertex critical events—such as changes to a window's proximal ( ) or distal ( ) edge —are already governed by primary horizon lines generated by the k-visibility and -visibility polygons of individual vertices. If a line passes through a vertex and another vertex that is not critical to it, no mutation occurs upon crossing .
-
Exhaustive Parameter Bounding for Mutually Critical Pairs: For mutually critical pairs, the obstruction variables Z and W represent boundary crossings based on a constant k that change in increments of 2. The parameter space is bounded at the lower extreme when and are fully visible and at the upper extreme when they are permanently occluded from both query positions a and b. Because all intermediate state transitions are either analyzed or ruled out by parity constraints, no topological mutations are omitted.
-
Geometric Coincidence and Line Sufficiency: Certain secondary transition lines coincide geometrically with primary horizon lines (e.g., when a vertex comes in and out of a shadow region, and both window generator tuple also change) or with other secondary cases (e.g., when one case shows a mutation in while a complementary case shows a mutation in along the same window). While analyzed separately for combinatorial completeness, identifying either condition is sufficient to instantiate the partition line in the spatial arrangement, ensuring no line is omitted or spuriously duplicated.
Here we analyze only the case CCS, and the rest of the cases can be found in the appendix, summarized in Table 1. The subcases for each case are different from those in [7].
6.1 CCS
Lemma 1. When , , , or , the combinatorial structure of the visibility polygon changes as the query point moves from a to b, so there has to be a partition line at .
Proof. Consider the following subcases, which covers all possible values of Z and W. Since any continuous ray traversing an obstacle edge must both enter and
Y. Bahoo et al.
exit the obstacle interior to return to the polygon interior, Z and W change in increments of 2. Consequently, intermediate values such as are structurally impossible.
: In this case, the vertex and its local neighborhood are completely occluded from the query region, possessing a visibility depth strictly greater than . The same occlusion applies to the segment . Consequently, crossing the line between and induces no topological change to the boundaries of the -visibility polygon within these regions, rendering a partition line unnecessary.
: See Figure 3. Here, both and reside entirely within an occluded shadow region relative to the threshold , both when the query point is at and , so no structural mutation occurs within the -visibility polygon.

(a) Above
(b) Below
Fig. 3: CCS; ,
: See Figure 4. When the query point is positioned at (above ), a visibility window is projected along the ray . When the query point is at (below ), the window along terminates on the edge incident to , while a new visibility window originates from along the ray . This represents a structural mutation of the -visibility polygon, dictating that the segment must be explicitly integrated as a partition line.
: See Figure 4. At point , the local visibility boundary contains a window generated by the critical vertex that terminates on the distal edge near . Upon crossing to point , the generator of this window transitions to the critical vertex while still terminating near . Because the stored window generator tuple changes, acts as a necessary hinge transition boundary.
. See Figure 5. When at , the window near is defined by . At , the window near is defined by . Therefore, there needs to be a partition line on .
. See Figure 5. At , the window near is defined by . At , the window is defined by . Therefore, there needs to be a partition line on .
– . See Figure 6. The neighbourhood of is entirely visible at both a and b, so no partition line is needed.
– . See Figure 6. At a, the window near is defined by . At b, the window is defined by . Therefore, there needs to be a partition line on .
– . The entire region near is visible, so nothing happens to the visibility polygon there.
– . The entire region near is visible, so nothing happens to the visibility polygon there.

(a) Above

(b) Below
Fig. 4: CCS; ,

(a) Above

(b) Below
Fig. 5: CCS; ,
Y. Bahoo et al.

(a) Above

(b) Below
Fig. 6: CCS; ,
The rest of the cases are in Appendix B.
7 Algorithm: Constructing the Cell Decomposition
The preprocessing phase constructs the cell decomposition arrangement and populates each cell with its invariant visibility sequence, as detailed in Algorithm 1.
Algorithm 1 Cell Decomposition Preprocessing
Require: Simple polygon with vertices; threshold parameter .
Ensure: Planar arrangement where each cell stores a counter-clockwise sequence .
Phase 1: Arrangement Geometry Construction
Collect primary horizon lines .
Collect hinge transition lines .
Remove duplicate lines
Construct the planar arrangement .
Split each non-convex cell into a convex one by extending the edges of reflex vertices.
Phase 2: Combinatorial Sequence Propagation
for each face (cell) do
Sample an arbitrary representative point .
Label the boundary and identify visibility windows as in [10].
Initialize cell sequence .
for each individual vertex, edge, or connecting window within the -labeled chains of encountered during the counter-clockwise traversal defined in [10] do
if a -visible vertex is encountered then
.
else if a visibility window ray is encountered then
Identify its critical generator , proximal edge , and distal edge from .
Set before ? .
.
end if
end for
Assign permanent descriptor to cell .
end for
8 Extension to Polygons with Holes
Efficiently querying the k-visibility polygon of a polygon with holes requires first computing it from a single point. While the algorithm in [10] targets simple polygons, it extends to those with holes: Shoot rays from the query point through critical vertices. Label the resulting polygonal chains with their k-visibility values. Traverse the k-visible chains and connect them with windows.
9 Query Processing and Visibility Reconstruction
To dynamically reconstruct the k-visibility polygon for a query point , the retrieval procedure executes in two sequential phases: an point-location phase followed by a linear-time boundary construction phase.
First, an optimal planar point-location query is performed on the arrangement A to identify the unique cell containing q. Once the target cell is located, the algorithm retrieves its precalculated invariant visibility sequence . The geometric boundary of is then reconstructed by performing a single linear-time traversal over and mapping its entries to physical coordinates:
– Vertex Entries: If an entry is a standalone k-visible vertex , it is connected directly to the evolving boundary chain of the visibility polygon.
– Window Generator Tuple: If an entry is a tuple of the form , it encodes both boundary edges intersected by the window's ray in the order they are encountered during the traversal. The physical endpoints of the visibility window are determined by computing ray-boundary intersections. Specifically, the algorithm calculates the intersection points between the directed line —passing through the query point and the critical vertex —and the specified boundary edges and . Because this reduces to a standard line-segment intersection operation, both endpoints of the window can be evaluated in constant time.
By connecting these calculated vertices and boundary segments in the order prescribed by , the explicit geometry of is successfully outputted in time.
10 Complexity of the Cell Decomposition
The geometric boundaries of the cell decomposition are formed by the intersections of partition lines generated by primary vertex visibility windows and secondary hinge transition lines. Based on the arrangement properties of k-star-shaped polygons established by Evans and Sember [16], the total number of distinct spatial cells in this planar arrangement is tightly bounded at . There is no dependence on .
While the spatial partition itself contains cells, each individual cell must explicitly store its invariant visibility sequence . In the worst case, a query point inside a cell can see a linear fraction of the polygon, meaning each visibility sequence can contain up to vertices and window generator tuples. Consequently, naively populating every cell with its corresponding sequence yields a total storage footprint of space for the preprocessed data structure.
Y. Bahoo et al.
11 Complexity of the Query Phase
The runtime complexity of answering a dynamic k-visibility query is divided into two distinct steps: structural identification and geometric reconstruction.
-
Structural Sequence Retrieval: Given a dynamic query point , locating the unique cell containing a requires an optimal planar point-location query. Using standard hierarchical or trapezoidal decomposition methods, this location step is completed in time. Because the combinatorial sequence is directly linked to the cell, identifying the underlying visibility structure adds no extra overhead once the cell is found.
-
Geometric Polygon Reconstruction: To reconstruct and output the explicit physical geometry of , the algorithm must iterate through the retrieved sequence . In the worst case, the -visibility polygon can consist of a linear fraction of the entire polygon, meaning the sequence contains vertices and window generator tuples. Since each entry is processed and mapped to physical coordinates via constant-time geometric operations ( per entry), traversing and constructing the final visibility polygon takes time.
Consequently, the total query time to fully reconstruct the k-visibility polygon is , where is the size of the output sequence, bounded in the worst case by .
12 Delta-Compressed Dual Arrangement Tree
To eliminate redundant sequence storage across adjacent arrangement cells, we construct a spanning tree T of the dual cell graph via Breadth-First Search (BFS) starting from a central root cell :
-
Root Storage: The root cell explicitly stores its full, uncompressed visibility sequence .
-
Edge Deltas: For each directed tree edge , we store only the combinatorial mutation required to transform into .
-
Compound Delta Encoding: Across any single cell boundary, a structural transition may induce multiple simultaneous local changes (e.g., an vertex insertion coupled with window generator replacements). We encode each edge delta as an ordered sequence of m atomic edit operations:
where in general position, and each atomic operation takes one of three forms:
– REPLACE(idx, descriptor): Overwrites an existing window generator tuple or vertex descriptor at index idx (e.g., swapping anchor identities or updating proximal/distal edges).
– INSERT(idx, descriptor): Inserts a new k-visible vertex or newly formed window generator into the sequence at index idx.
– DELETE(idx): Removes a vertex or window generator.
At query time, point-location identifies the target cell . The uncompressed visibility sequence is dynamically reconstructed in-memory by walking down the unique tree path from to in and sequentially applying the sequence of compound deltas, where is the depth of in .
While the naive representation requires space ( cells, each storing a sequence of size ), the delta-compressed tree reduces total space to , as the dual tree contains edges each storing a compound delta of size . Reconstructing the visibility sequence at query time requires edit applications, where is the depth of in .
13 Conclusion and Future Work
In this paper, we introduced the first complete framework for answering k-visibility queries within polygons, successfully generalizing the classic 0-visibility cell decomposition model. By identifying, analyzing, and exhaustively classifying the exact geometric conditions that govern topological mutations—specifically primary vertex horizons and secondary hinge transition lines arising from pairs of mutually critical vertices—we established a tight spatial partition of cells. Within each cell, the combinatorial sequence of the k-visibility polygon remains strictly invariant. Furthermore, by exploiting the local combinatorial changes across adjacent cell boundaries, we introduced a -compression scheme that reduces the overall storage requirement to , while maintaining optimal query time to reconstruct explicit k-visibility polygons. Crucially, our approach naturally accommodates polygons with holes, expanding its applicability to complex environments. Several intriguing avenues remain open for future investigation. Extending this cell decomposition paradigm to 3D polyhedral environments or investigating dynamic settings where polygon vertices are allowed to move present compelling challenges for future research in higher-order visibility.
References
-
O. Aichholzer, R. Fabila-Monroy, D. Flores-Peñaloza, T. Hackl, J. Urrutia, and B. Vogtenhuber. Modem illumination of monotone polygons. Computational Geometry, 68:101–118, 2018. Special Issue in Memory of Ferran Hurtado.
-
B. Aronov, L. J. Guibas, M. Teichmann, and L. Zhang. Visibility queries and maintenance in simple polygons. Discrete & Computational Geometry, 27(4):461–483, 2002.
-
Y. Bahoo, B. Banyassady, P. K. Bose, S. Durocher, and W. Mulzer. A time-space trade-off for computing the k-visibility region of a point in a polygon. Theoretical Computer Science, 789:13–21, 2019.
-
Y. Bahoo, P. Bose, S. Durocher, and T. C. Shermer. Computing the k-visibility region of a point in a polygon. Theory of Computing Systems, 64(7):1292–1306, 2020.
-
Y. Bahoo and A. Kamaludeen. M-guarding in k-visibility. In Proceedings of the 32nd Fall Workshop on Computational Geometry (FWCG 2025), 2025. Also available as arXiv preprint arXiv:2510.25567.
Y. Bahoo et al.
-
Y. Bahoo, S. Saeedi, and R. Sherman. Generalized k-cell decomposition for visibility planning in polygons. In Proceedings of the 32nd Fall Workshop on Computational Geometry (FWCG 2025), 2025. Also available as arXiv preprint arXiv:2511.03642.
-
Y. Bahoo, S. Saeedi, and R. Sherman. An exact generalized k-cell decomposition. In Proceedings of the 38th Canadian Conference on Computational Geometry (CCCG 2026), 2026.
-
S. Bhore, C.-H. Liu, A. M. Naredla, Y. Nekrich, E. Oh, A. van Renssen, F. Staals, H. Wang, and J. Xue. Visibility queries in simple polygons. In Proceedings of the 53rd International Colloquium on Automata, Languages and Programming (ICALP 2026), 2026. Also available as arXiv preprint arXiv:2605.03334.
-
P. Bose, A. Lubiw, and J. I. Munro. Efficient visibility queries in simple polygons. Computational Geometry, 23(3):313–335, 2002.
-
A. M. de Oliveira Martins. Geometric optimization on visibility problems: Metaheuristic and exact solutions. PhD thesis, Universidade de Aveiro (Portugal), 2009.
-
L. Guibas, J. Hershberger, D. Leven, M. Sharir, and R. E. Tarjan. Linear-time algorithms for visibility and shortest path problems inside triangulated simple polygons. Algorithmica, 2(1):209–233, 1987.
-
L. J. Guibas, J.-C. Latombe, S. M. LaValle, D. Lin, and R. Motwani. Visibility-based pursuit-evasion in a polygonal environment. In Workshop on algorithms and data structures, pages 17–30. Springer, 1997.
-
B. Joe and R. B. Simpson. Corrections to lee's visibility polygon algorithm. BIT Numerical Mathematics, 27(4):458–473, 1987.
-
J. Kim, M. Lisondra, Y. Bahoo, and S. Saeedi. Inverse k-visibility for rssi-based indoor geometric mapping. Autonomous Robots, 50(17):17, 2026.
-
J. Kim, J. A. Zalat, Y. Bahoo, and S. Saeedi. Structure from WiFi (SfW): RSSI-Based Geometric Mapping of Indoor Environments. In 2024 American Control Conference (ACC), pages 259–264, 2024.
-
J. Sember and W. S. Evans. k-star-shaped polygons. In Proceedings of the 22nd Canadian Conference on Computational Geometry (CCCG 2010), pages 215–218, 2010.
Appendix
A Redundancy of Windows of for and (when is not critical to the vertex responsible for the window)
Proof. Since we assume general position and that no three vertices are on the same line, then there can be three scenarios: 1) two collinear mutually critical vertices, 2) one vertex that is critical to another but not vice versa, and 3) two vertices that are not critical to each other.
– Case 1 is handled by the hinge transition lines in Section 6.
– Case 3 Draw a line through the two vertices and . Crossing does not cause a change in whether is visible/invisible.
– Case 2. Call the non-critical vertex and the vertex critical to it . Assume there is a horizon line made by the window of where . When the query point is to one side of the line, is in the shadow of the query point, and when the query point is to the other side of the line. is still in the shadow of the query point. Therefore, does not leave or enter the visibility sequence that defines the visibility polygon as the query point crosses this horizon line, so this horizon line is redundant. To see an example of this, consider Figure 7 for the case of 2-visibility. If there is a horizon line (dashed purple line) of the that acts as a partition line, crossing it does not make part of the visibility sequence, as it remains entirely in shadow (both at and ).

(a) Above H

(b) Below H
Fig. 7:
Assume there is a horizon line made by the window of where . When the query point is to one side of the line, is completely within the visibility polygon of the query point. When the query point is to the other side, is still completely within the visibility polygon of the query point. Therefore, does not leave or enter the visibility sequence that defines the visibility polygon, so this horizon line is redundant. The same example in Figure 7 can be used with 8-visibility, where (dashed purple line) is a
Y. Bahoo et al.
horizon line of . remains within the visibility polygon at both a and b.
B Cases for Two Mutually Critical Vertices
B.1 CCS
See Section 6.1
B.2 CCO
Lemma 2. A partition line is needed in the following cases:
• (Figure 8)
• (Figure 8)
• (Figure 9)
• (Figure 9)
• (Figure 10)
Proof. Consider Figures 8a - 10b.
Note: for , all of and its immediate neighbourhood would be in shadow. For , and its immediate neighbourhood is entirely in shadow.

(a) Above
(b) Below
Fig. 8: CCO (2); ,

(a) Above
(b) Below
Fig. 9: CCO (4); ,

(a) Above
(b) Below
Fig. 10: CCO; ,
for , and its surrounding is entirely visible, for , are entirely visible.
C CRS
Lemma 3. A partition line is needed in the following cases:
• (Figure 11)
• (Figure 12)
• (Figure 12)
• (Figure 13)
• (Figure 13)
• (Figure 14)
Proof. See Figures 11 - 14.
for , all of and its immediate neighbourhood are entirely in shadow. For , and its immediate neighbourhood is entirely in shadow.
Y. Bahoo et al.

(a) Above
(b) Below
Fig. 11: CRS; ;

(a) Above
(b) Below
Fig. 12: CRS; ;

(a) Above
(b) Below
Fig. 13: CRS; ,

(a) Above
(b) Below
Fig. 14: CRS; ,
For , and its surroundings are entirely visible. For , and its surroundings are entirely visible.
D CRO
Lemma 4. A partition line is needed in the following cases:
• (Figure 16)
• (Figure 17)
• (Figure 17)
• (Figure 18)
• (Figure 18)
• (Figure 19)
Proof. See Figures 15-19.
Note: for , and its surroundings are entirely in shadow. For , and its surroundings are entirely in shadow.

(a) Above
(b) Below
Fig. 15: CRO; ;
Y. Bahoo et al.

(a) Above
(b) Below
Fig. 16: CRO; and

(a) Above
(b) Below
Fig. 17: CRO; ,

(a) Above
(b) Below
Fig. 18: CRO; ,

(a) Above
(b) Below
Fig. 19: CRO; ,
For , and its surroundings are entirely visible. For , and its surroundings are entirely visible.
E RCS
Lemma 5. A partition line is needed in the following cases:
• (Figure 20)
• (Figure 20)
• (Figure 21)
• (Figure 21)
• (Figure 22)
Proof. See Figures 20-22.
Note: for , and its surroundings are entirely in shadow. For , and its surroundings are entirely in shadow.

(a) Above
(b) Below
Fig. 20: RCS; ,
Y. Bahoo et al.

(a) Above
(b) Below
Fig. 21: RCS; ,

(a) Above
(b) Below
Fig. 22: RCS; ,
For , and its surroundings are entirely visible. For , and its surroundings are entirely visible.
F RCO
Lemma 6. A partition line is needed in the following cases:
• (Figure 23)
• (Figure 23)
• (Figure 24)
• (Figure 24)
• (Figure 25)
Proof. See Figures 23-25.
Note: for , and its surroundings are entirely in shadow. For , and its surroundings are entirely in shadow.

(a) Above
(b) Below
Fig. 23: RCO; ,

(a) Above
(b) Below
Fig. 24: RCO; ,

(a) Above
(b) Below
Fig. 25: RCO; ,
Note: For , and its surroundings are entirely visible. For , and its surroundings are entirely visible.
Y. Bahoo et al.
G RRS
Lemma 7. A partition line at is needed in the following cases:
• (Figure 26)
• (Figure 27)
• (Figure 27)
• (Figure 28)
• (Figure 28)
• (Figure 29)
Proof. See Figures 26-29.
Note: for , and its surroundings are entirely in shadow. For , and its surroundings are entirely in shadow.

(a) Above
(b) Below
Fig. 26: RRS; ,

(a) Above
(b) Below
Fig. 27: RRS; ,

(a) Above
(b) Below
Fig. 28: RRS; ,

(a) Above
(b) Below
Fig. 29: RRS; ,
Note: For , and its surroundings are entirely visible. For , and its surroundings are entirely visible.
H RRO
Lemma 8. A partition line at is needed in the following cases:
• (Figure 30)
• (Figure 31)
• (Figure 31)
• (Figure 32)
• (Figure 32)
• (Figure 33)
Proof. See Figures 30-34.
Note: for , all of would be in shadow. For , and its surroundings is entirely in shadow.
Y. Bahoo et al.

(a) Above
(b) Below
Fig. 30: RRO; ,

(a) Above
(b) Below
Fig. 31: RRO; ,

(a) Above
(b) Below
Fig. 32: RRO; ,

(a) Above
(b) Below
Fig. 33: RRO; ,

(a) Above
(b) Below
Fig. 34: RRO; ,
for , and its surroundings is entirely visible. For , and its surroundings is entirely visible.
I RC-SC
Lemma 9. A partition line is needed in the following cases:
• (Figure 35)
• (Figure 36)
• (Figure 36)
• (Figure 37)
Proof. See Figures 35-37.
Note: for , all of would be in shadow. For , and its surroundings is entirely in shadow as in Figure 35. for , , and are entirely visible as Figure 37.
Y. Bahoo et al.

(a) Above
(b) Below
Fig. 35: RC-SC; ,

(a) Above
(b) Below
Fig. 36: RC-SC; ,

(a) Above
(b) Below
Fig. 37: RC-SC; ,
J RR-SC
Lemma 10. A partition line is needed in the following cases:
• (Figure 38)
• (Figure 39)
• (Figure 39)
• (Figure 40)
Proof. See Figures 38-40.
Note: For , and its surroundings are completely invisible, For , and its surroundings are completely invisible.
for , and its surroundings are completely visible. For , and its surroundings are completely visible.

(a) Above
(b) Below
Fig. 38: RR-SC; ,

(a) Above
(b) Below
Fig. 39: RR-SC; ,
Y. Bahoo et al.

(a) Above
(b) Below
Fig. 40: RR-SC; ,
K CR-SC
Lemma 11. A partition line is needed in the following cases:
• (Figure 41)
• (Figure 42)
• (Figure 42)
• (Figure 43)
Proof. See Figures 41- 43.
For , and its surroundings are completely invisible, For , and its surroundings are completely invisible.
for , and its surroundings are completely visible. For , and its surroundings are completely visible.

(a) Above
(b) Below
Fig. 41: CR-SC; ,

(a) Above
(b) Below
Fig. 42: CR-SC; ,

(a) Above
(b) Below
Fig. 43: CR-SC; ,
L CC-SC
Lemma 12. A partition line is needed in the following cases:
• (Figure 44)
• (Figure 44)
• (Figure 45)
Proof. See Figures 44- 45. Note: For , and its surroundings are completely invisible, For , and its surroundings are completely invisible.
for , and its surroundings are completely visible. For , and its surroundings are completely visible.
Y. Bahoo et al.

(a) Above
(b) Below
Fig. 44: CC-SC; ,

(a) Above
(b) Below
Fig. 45: CC-SC; ,
Table 1: Comprehensive Mapping of Cases, Subcases, Lemmas, and Figures
| Case | Subcase | Lemma | Figure Reference |
|---|---|---|---|
| CCS | Figure 4 | ||
| Figure 4 | |||
| Lemma 1 | Figure 5 | ||
| Figure 5 | |||
| Figure 6 | |||
| CCO | Figure 8 | ||
| Figure 8 | |||
| Lemma 2 | Figure 9 | ||
| Figure 9 | |||
| Figure 10 | |||
| CRS | Figure 11 | ||
| Figure 12 | |||
| Lemma 3 | Figure 12 | ||
| Figure 13 | |||
| Figure 13 | |||
| Figure 14 | |||
| CRO | Figure 16 | ||
| Figure 17 | |||
| Lemma 4 | Figure 17 | ||
| Figure 18 | |||
| Figure 18 | |||
| Figure 19 | |||
| RCS | Figure 20 | ||
| Figure 20 | |||
| Lemma 5 | Figure 21 | ||
| Figure 21 | |||
| Figure 22 | |||
| RCO | Figure 23 | ||
| Figure 23 | |||
| Lemma 6 | Figure 24 | ||
| Figure 24 | |||
| Figure 25 | |||
| RRS | Figure 26 | ||
| Figure 27 | |||
| Lemma 7 | Figure 27 | ||
| Figure 28 | |||
| Figure 28 | |||
| Figure 29 |
Continued on next page...
Y. Bahoo et al.
Table 1 – Continued from previous page
| Case | Subcase | Lemma | Figure Reference |
|---|---|---|---|
| RRO | Lemma 8 | Figure 30 | |
| Figure 32 | |||
| Figure 31 | |||
| Figure 32 | |||
| Figure 32 | |||
| Figure 33 | |||
| RC-SC | Lemma 9 | Figure 35 | |
| Figure 36 | |||
| Figure 36 | |||
| Figure 37 | |||
| RR-SC | Lemma 10 | Figure 38 | |
| Figure 39 | |||
| Figure 39 | |||
| Figure 40 | |||
| CR-SC | Lemma 11 | Figure 41 | |
| Figure 42 | |||
| Figure 42 | |||
| Figure 43 | |||
| CC-SC | Lemma 12 | Figure 44 | |
| Figure 44 | |||
| Figure 45 |