arXiv:2610.16795cs.CGOct 2026

Manuscript Offprint

arXiv:2610.16795

Hypergeometric Bridges for Multidimensional Grid Visibility

Ibrahim Ibrahim, Wilm Decré

Abstract

Established interpolation-based methods efficiently compute visibility from one source to every grid cell using values computed closer to the source. Interpolation yields fractional values even on binary grids of free or fully blocking cells. Two-dimensional path-counting theory interprets these values as fractions of unobstructed grid paths, but three-dimensional methods use different predecessor structures. Interpreting these values consistently across dimensions and on nonbinary grids remains unresolved.

We provide a unified mathematical account that gives every visibility value a precise meaning in any dimension. We establish when grid refinement yields eventual agreement with continuous visibility, implement parallel solvers, and compare four three-dimensional methods in accuracy and throughput.

We define cell transmission: zero blocks visibility, one preserves it, and intermediate values attenuate it proportionally. We prove each computed value equals the uniform finite-path average of transmission products over finitely many source-to-cell grid paths. It is the fraction of clear paths on binary grids and the mean path transmission on nonbinary grids. For a source–target query, the fractions of paths passing through cells at each step form a hypergeometric distribution in 2D, which we call the hypergeometric bridge. On the last step into the target, these probabilities equal the interpolation weights. Higher-dimensional interpolation weights arise from products of hypergeometric bridges. For any fixed dimension, the full-field algorithm remains linear in grid size. Exact path enumeration reproduces every checked visibility value. NumPy, OpenMP, and CUDA agree numerically, and our OpenMP solver achieves the highest throughput in the four-method CPU comparison at every tested resolution.

Keywords: multidimensional grid visibility, hypergeometric distributions, path counting, multilinear interpolation, dynamic programming, parallel computing

arXiv:2610.16795v1

1. Introduction

At its simplest, continuous visibility asks whether an obstacle blocks the straight line segment from a source point to a target point. On a grid, many applications need that answer at every target rather than at only one: a robot may evaluate visibility at every candidate location, a sensor study may compare coverage throughout a room, and an architect may examine visibility throughout a voxel model of a building. Casting an independent ray to every target is direct, but the ray-by-ray calculation solves each query in isolation, whereas the full-field approach studied here assigns one scalar visibility value to every cell and computes all cell values together. Figure 1 previews the computed full-volume visibility field in two three-dimensional scenes. Such a field should do more than save work: every propagated value should have a precise meaning.

A causal grid sweep constructs this field from the source outward. Cells are grouped into layers by their largest absolute coordinate displacement from the source, with a coordinate attaining that maximum designated as dominant for the cell. Under this dominant-axis ordering, processing the layers outward ensures that every cell value on the immediately preceding layer is available when the sweep reaches a target. For each target, the interpolation point is where the ray from the source through that target crosses the immediately preceding layer. The intersection need not coincide with a cell centre, so linear interpolation in two dimensions (2D), or bilinear interpolation in three dimensions (3D), combines nearby, already computed cell-centre values into the field value carried to the target.

The target then applies its prescribed cell transmission as a scalar multiplier: zero blocks the carried value, one preserves it, and any transmission between zero and one attenuates it. Together, the interpolation step and the target-cell multiplication define the dominant-axis visibility recurrence: beginning from an initial visibility value assigned to the source cell, this recursive rule expresses each non-source visibility value in terms of values on the preceding layer, while the causal sweep evaluates those dependencies layer by layer from the source outward. Even when every cell transmission is binary—either zero or one—interpolation can produce a field value strictly between those limits, whereas the original straight-line question has only a yes-or-no answer. The resulting scalar field is therefore not self-interpreting: a value between zero and one does not by itself specify either the fraction of the source–target segment that is clear or the probability that the entire segment is clear. The

*Corresponding author

Email address: ibrahim.ibrahim@kuleuven.be (Ibrahim Ibrahim)

1^{1}ORCID: 0000-0001-6840-558X

2^{2}ORCID: 0000-0002-9724-8103

Figure

(a) Scene A: volumetric view

Figure

(b) Scene A: plane views

Figure

(c) Scene B: volumetric view

Figure

(d) Scene B: plane views

Figure 1: Illustrative outputs of the three-dimensional full-field computation studied here. The yellow sphere marks the source, and the pink surfaces mark opaque obstacles. The left column shows cells below an illustrative visibility threshold throughout each volume. The right column shows the corresponding field on the floor, rear boundary, and right boundary. For display only, the colour scale rescales values below the threshold so that zero denotes the threshold and one denotes a computed visibility value of zero.

mathematical interpretation assigned to that fractional value determines what can be claimed about exactness, thresholds, and agreement with continuous visibility. Interpreting a fractional field value begins with a basic question: what exactly does the dominant-axis interpolation average?

Several parts of the answer are established. Tsai et al. formulated visibility through a source-centred transport equation and showed how the equation's radial ordering supports one-pass interpolation in two and three dimensions [1]. Kao and Tsai later developed the dynamic-programming and Hamilton-Jacobi analysis of source-centred radial visibility [2]. Together, the source-centred transport equation and the dynamic-programming and Hamilton-Jacobi analyses establish why a one-pass grid sweep can proceed causally from the source and how each local interpolation is constructed. Goldstein et al. later gave the 2D scalar visibility value for a binary map a direct grid-path interpretation: in SpaceAnalysis it is the fraction of shortest grid paths that remain unobstructed as they advance one layer outward from the source at each step. Their later path-counting analysis proved that the dominant-axis visibility recurrence they analysed computes the same fraction of unobstructed paths. Goldstein et al. also expressed the number of paths through an intermediate cell as the product of the number of shortest grid paths from the source to the cell and the number of shortest continuations from the cell to the target [3, 4].

Fisher-Gewirtzman et al. used voxel-based volumetric visibility for map-wide 3D analysis in urban environments [5]. Goldstein et al. later incorporated 3D visibility into the broader Voxel-based Architectural Space Analysis (VASA) system [6]. Both Fisher-Gewirtzman et al.'s urban visibility analysis and VASA treat a complete visibility volume, rather than one source–target query, as the object of analysis.

Tsai et al.'s source-centred transport equation and its causal radial ordering, Goldstein et al.'s binary 2D interpretation in terms of unobstructed grid paths, and the full-volume 3D analyses of Fisher-Gewirtzman et al. and VASA establish essential pieces of the answer. What remains is one account that connects the source-centred radial transport derivation and the established 2D path counts to an endpoint-conditioned discrete distribution over the cells on each intermediate layer. For each cell on that layer, the distribution gives the probability that a uniformly selected path passes through that cell. Such an account would keep the field interpretable when the recurrence extends to 3D, cell transmissions become nonbinary, and computation scales to full volumes. Without that connection, "exact," "probabilistic," and even "visibility" can refer to different mathematical objects.

This paper supplies that connection by identifying the grid paths averaged by the recurrence and deriving the probability law governing how those paths pass through each intermediate layer. To interpret a stored visibility value, treat an arbitrary non-source grid cell as the target. We define an explicit finite family of monotone grid paths from the source to that target, which we call canonical paths. Each canonical path advances without reversing any coordinate and contributes the product of the prescribed cell transmissions it encounters. We prove that the scalar visibility value computed at the target by the dominant-axis visibility recurrence is the finite-path average: the value assigned to the source cell multiplied by the uniform average of those path-transmission products. The finite family of canonical paths and its finite-path average together form the finite-path model. Since the target is arbitrary, every non-source grid cell has its own source-to-cell canonical path family, so the same interpretation applies to every scalar visibility value in the full field. When the visibility field is initialized to one at the source cell, the average is the fraction of canonical paths that remain clear for binary transmissions and the mean of their transmission products for deterministic nonbinary transmissions. The causal sweep evaluates the recurrence as a dynamic program, computing the average for every target without enumerating paths and requiring constant work per grid cell in 2D and 3D.

To study a different quantity, now keep one source and one target fixed and ask how the corresponding source-to-target canonical path family is distributed before reaching the target. On each 2D grid layer between the endpoints, every path passes through exactly one cell. We call the probability that a uniformly selected path passes through a particular cell the cell's path-incidence probability. Unlike the scalar visibility value stored at that cell, which averages transmission products over paths ending there, the path-incidence probability concerns paths continuing to the fixed target. On a given layer, the number of transverse, or nondominant, steps already taken identifies the cell reached. Because the fixed endpoints prescribe the total number of transverse steps, that count follows a discrete sampling-without-replacement distribution conditioned on both endpoints—the hypergeometric bridge. The bridge thus describes how the fixed path family is distributed across each layer. These path-incidence probabilities arise from uniform path selection, not map uncertainty about whether cells are free or occupied.

In 3D, every ordered path step advances the dominant coordinate, and the transverse-advance schedule of each transverse coordinate is the subset of those steps on which that coordinate also advances. Selecting the two schedules independently and uniformly produces a uniformly selected path from the 3D family. Because the endpoint fixes the total number of advances in each schedule, the cumulative advance count for each coordinate follows a one-dimensional hypergeometric bridge, and the joint distribution of the two counts is the product of those bridges—the 3D product bridge. At the immediately preceding layer, the 3D product bridge gives the probabilities of four target-entry cases, according to whether neither, either, or both transverse coordinates advance on the final path step into the target. These four target-entry probabilities are exactly the coefficients with which the 3D bilinear interpolation combines the four surrounding cell-centre values on the preceding grid face. Because the dominant-axis recurrence equals the uniform average of the transmission products contributed by the canonical paths, evaluating every canonical path directly provides an independent check of the recurrence. Exact agreement between the resulting path average and the recurrence remains distinct from agreement with continuous visibility.

Together, four contributions establish a theory–algorithm– implementation chain for the established dominant-axis recurrence: a source-relative formulation, the finite-path model, explicit scalar and probability semantics, and reproducible full-volume computation.

  • We derive the 2D and 3D visibility recurrence in source-relative coordinates for every grid source position and source-target direction, and prove that the resulting outward sweep is causal and that every computed value remains in [0, 1].

  • We prove that the recurrence computes the finite-path average over the corresponding canonical path family. We identify the 2D intermediate-cell path-incidence law as the hypergeometric bridge and derive the 3D product bridge whose target-entry probabilities equal the four bilinear weights. We derive the multilinear recurrence and prove the path-average identity in any fixed spatial dimension, with work linear in the number of returned grid values.

  • We distinguish the path-incidence probability induced by uniform selection within the canonical path family from map uncertainty, and use the finite-path average to interpret scalar visibility under deterministic binary and nonbinary cell transmissions. When the visibility field is initialized to one at the source cell, classifying a binary-map target as visible at a chosen threshold requires at least that fraction of the target's canonical paths to remain clear. We also establish the grid-refinement conditions under which these thresholded classifications agree with continuous visibility on every sufficiently fine grid for fixed queries whose segments have positive obstacle clearance or enter an obstacle interior (Theorem 4).

  • We provide open-source GitHub code comprising exact-arithmetic evaluators of the recurrence in 2D, 3D, and any fixed spatial dimension and full-volume NumPy, OpenMP, and CUDA implementations of the four-parent 3D recurrence. Exact enumeration on tractable path families checks that the recurrence returns the finite-path average, while numerical agreement checks that the three full-volume implementations return the same visibility field up to the reported floating-point differences. We compare thresholded classifications with continuous visibility under grid refinement and CPU throughput with three 3D alternatives. In the CPU comparison on the benchmark laptop, the four-parent implementation achieves the highest throughput among all four methods at every tested resolution.

This article extends our earlier conference paper [7], which presented the two-parent 2D sweep and applied it to heuristic path planning. Relative to that work, the journal article supplies the corrected source-relative derivation and complete tie handling, establishes the sweep's finite-path and probabilistic interpretation, and extends the model to 3D and any fixed spatial dimension. It also states the scalar-transmission limits and the conditions for agreement with continuous visibility. Beyond these theoretical extensions, the journal article adds exact-arithmetic verification, full-volume CPU and GPU implementations, and evaluation against three 3D alternatives.

Section 2 positions this paper’s four-parent dominant-axis recurrence against prior work, and Section 3 derives the source-relative recurrence. Sections 4–6 develop the finite-path model and its transmission semantics from 2D through any fixed spatial dimension, derive the bridge laws, and establish eventual agreement with continuous visibility under grid refinement. Sections 7 and 8 present the full-volume algorithm and implementations, verify that they preserve the recurrence, and then evaluate classification accuracy under grid refinement and computational performance across all four methods. Section 9 closes with the model’s scope, limitations, and conclusions.