Abstract
We present a modification and extension of the (linear time) visibility polygon algorithm of Lee. The algorithm computes the visibility polygon of a simple polygon from a viewpoint that is either interior to the polygon, or in its blocked exterior (the cases of viewpoints on the boundary or in the free exterior being simple extensions of the interior case). We show by example that the original algorithm by Lee, and a more complex algorithm by El Gindy and Avis, can fail for polygons that wind sufficiently. We present a second version of the algorithm, which does not extend to the blocked exterior case.
Similar content being viewed by others
References
H. El Gindy and D. Avis:A linear algorithm for computing the visibility polygon from a point, J. Algorithms, 2, (1981), pp. 186–197.
H. Freeman and P. P. Loutrel:An algorithm for the solution of the two-dimensional hidden-line problem, IEEE Trans. on Electronic Computers, EC-16, (1967), pp. 784–790.
P. Henrici:Applied and Computational Complex Analysis, Vol. 1, John Wiley & Sons, (1974).
B. Joe and R. B. Simpson:Visibility of a simple polygon from a point, Technical Report CS-85-38. Dept. of Computer Science, Univ. of Waterloo, (1985).
B. Joe and R. B. Simpson:Triangular meshes for regions of complicated shape, Int. J. for Num. Meth. in Eng., 23 (1986), pp. 751–778.
B. Joe and R. B. Simpson:Algorithms and correctness proofs for visibility polygon computations, Technical Report CS-87-03, Dept. of Computer Science, Univ. of Waterloo, (1987).
D. T. Lee:Visibility of a simple polygon, Computer Vision, Graphics, and Image Processing, 22 (1983), pp. 207–221.
B. Schachter:Decomposition of polygons into convex sets, IEEE Trans. on Comp., C-27, (1978), pp. 1078–1082.
Author information
Authors and Affiliations
Additional information
This work was partially supported by grants from the Central Research Fund of the University of Alberta and the Natural Sciences and Engineering Research Council of Canada.
Rights and permissions
About this article
Cite this article
Joe, B., Simpson, R.B. Corrections to Lee's visibility polygon algorithm. BIT 27, 458–473 (1987). https://doi.org/10.1007/BF01937271
Received:
Revised:
Issue Date:
DOI: https://doi.org/10.1007/BF01937271