Abstract
Fast hidden line elimination algorithms can be obtained by minor modifications to algorithms developed for reporting intersections of polygons. We show how the same modifications which have been applied to segment trees can be applied to the data structure of Swart and Ladner as well, leading to anO((n+k)logn) time hidden line elimination algorithm (n is the number of boundary edges of the input polygons andk is the number of intersections of the edges on the projection plane). The algorithm improves the fastest previous line-sweep algorithm for the problem by a factorO(logn).
Similar content being viewed by others
References
Brown, K. Q.,Comments on “Algorithms for reporting and counting geometric intersections”. IEEE Transactions on Computers, C-30 (1981), 147–148.
Bentley, J. L. and Th. Ottmann,Algorithms for reporting and counting geometric intersections. IEEE Transactions on Computers, C-28 (1979), 643–647.
Bentley, J. L. and D. Wood,An optimal worst-case algorithm for reporting intersections of rectangles. IEEE Transactions on Computer, C-29 (1980) 571–577.
Edelsbrunner, H.,Dynamic data structures for orthogonal intersection queries. Report 59, Institut für Informationsverarbeitung, University of Graz, Austria, 1980.
Hamlin, G. and C. W. Gear,Raster-scan hidden surface algorithm techniques. Computer Graphics 11 (1977), 206–213.
McCreight, E. M.,Efficient algorithms for enumerating intersecting intervals and rectangles. Report CSL-80-9, Xerox PARC, 1980.
Ottmann, Th. and P. Widmayer,Solving visibility problems by using skeleton structures. Proceedings of the 11th Symposium on the Mathematical Foundations of Computer Science (1984), 459–470.
Sechrest, S. and D. P. Greenberg,A visible polygon reconstruction algorithm. Computer Graphics 15 (1981), 17–21.
Swart, G. and R. Ladner,Efficient algorithms for reporting intersections. Technical Report No. 83-07-03, Computer Science Department, University of Washington, Seattle, 1983.
Author information
Authors and Affiliations
Additional information
This work was supported by the grant Ot 64/4-2 from the Deutsche Forschungsgemeinschaft.
On leave from the Department of Computer Science, University of Helsinki, Finland.
Rights and permissions
About this article
Cite this article
Nurmi, O. A fast line-sweep algorithm for hidden line elimination. BIT 25, 466–472 (1985). https://doi.org/10.1007/BF01935366
Received:
Revised:
Issue Date:
DOI: https://doi.org/10.1007/BF01935366