Abstract
This contribution presents a new coding scheme based on Cohen-Sutherland line segment clipping algorithm, which enables to distinguish all possible cases easily. It leads to more efficient algorithm for a line segment clipping in E2. It also presents importance of a detailed analysis in algorithm development, if the algorithm robustness and efficiency is required.
Supported by the University of West Bohemia - Institutional research support No. 1311.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
References
Andreev, R., Sofianska, E.: New algorithm for two-dimensional line clipping. Comput. Graph. 15(4), 519–526 (1991)
Bui, D., Skala, V.: Fast algorithms for clipping lines and line segments in E2. Vis. Comput. 14(1), 31–37 (1998)
Cyrus, M., Beck, J.: Generalized two- and three-dimensional clipping. Comput. Graph. 3(1), 23–28 (1978)
Day, J.: A new two dimensional line clipping algorithm for small windows. Comput. Graph. Forum 11(4), 241–245 (1992)
Duvanenko, V., Robbins, W., Gyurcsik, R.: Line-segment clipping revisited. Dr. Dobb’s J. 21(1), 107–110 (1996)
Dörr, M.: A new approach to parametric line clipping. Comput. Graph. 14(3–4), 449–464 (1990)
Foley, D., van Dam, A., Feiner, S., Hughes, J.: Computer Graphics: Principles and Practice. Addison-Wesley (1990)
Hughes, J.F., et al.: Computer Graphics: Principles and Practice, 3 edn. Addison-Wesley (2013)
Kaijian, S., Edwards, J., Cooper, D.: An efficient line clipping algorithm. Comput. Graph. 14(2), 297–301 (1990)
Krammer, G.: A line clipping algorithm and its analysis. Comput. Graph. Forum 11(3), 253–266 (1992)
Liang, Y.-D., Barsky, B.: A new concept and method for line clipping. ACM Trans. Graph. (TOG) 3(1), 1–22 (1984)
Nicholl, T.M., Lee, D., Nicholl, R.A.: Efficient new algorithm for 2D line clipping: its development and analysis. Comput. Graph. (ACM) 21(4), 253–262 (1987)
Nielsen, H.: Line clipping using semi-homogeneous coordinates. Comput. Graph. Forum 14(1), 3–16 (1995)
Rappoport, A.: An efficient algorithm for line and polygon clipping. Vis. Comput. 7(1), 19–28 (1991)
Skala, V.: Algorithm for 2D line clipping. In: Earnshaw, R.A., Wyvill, B. (eds.) New Advances in Computer Graphics, NATO ASI, pp. 121–128 (1989). https://doi.org/10.1007/978-4-431-68093-2_7
Skala, V.: Algorithms for clipping quadratic arcs. In: Chua, T.-S., Kunii, T.L. (eds.) CG International ’90. pp, pp. 255–268. Springer, Tokyo (1990). https://doi.org/10.1007/978-4-431-68123-6_16
Skala, V.: An efficient algorithm for line clipping by convex polygon. Comput. Graph. 17(4), 417–421 (1993)
Skala, V.: O(lg N) line clipping algorithm in E2. Comput. Graph. 18(4), 517–524 (1994)
Skala, V.: An efficient algorithm for line clipping by convex and non-convex polyhedra in E3. Comput. Graph. Forum 15(1), 61–68 (1996)
Skala, V.: Line clipping in E2 with O(1) processing complexity. Comput. Graph. (Pergamon) 20(4), 523–530 (1996)
Skala, V.: A fast algorithm for line clipping by convex polyhedron in E3. Comput. Graph. (Pergamon) 21(2), 209–214 (1997)
Skala, V.: A new approach to line and line segment clipping in homogeneous coordinates. Vis. Comput. 21(11), 905–914 (2005)
Skala, V.: Length, area and volume computation in homogeneous coordinates. Int. J. Image Graph. 6(4), 625–639 (2006)
Skala, V.: Barycentric coordinates computation in homogeneous coordinates. Comput. Graph. (Pergamon) 32(1), 120–127 (2008)
Skala, V.: Intersection computation in projective space using homogeneous coordinates. Int. J. Image Graph. 8(4), 615–628 (2008)
Skala, V.: Optimized line and line segment clipping in E2 and geometric algebra. Ann. Math. Inform. 52, 199–215 (2020)
Skala, V.: A novel line convex polygon clipping algorithm in E2 with parallel processing modification. In: Gervasi, O., et al. (eds.) ICCSA 2021. LNCS, vol. 12953, pp. 3–15. Springer, Cham (2021). https://doi.org/10.1007/978-3-030-86976-2_1
Skala, V., Bui, D.: Extension of the Nicholls-Lee-Nichols algorithm to three dimensions. Vis. Comput. 17(4), 236–242 (2001)
Sobkow, M., Pospisil, P., Yang, Y.-H.: A fast two-dimensional line clipping algorithm via line encoding. Comput. Graph. 11(4), 459–467 (1987)
Acknowledgment
The author would like to thank to colleagues at the University of West Bohemia in Plzen for fruitful discussions and to anonymous reviewers for their comments and hints, which helped to improve the manuscript significantly.
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2021 Springer Nature Switzerland AG
About this paper
Cite this paper
Skala, V. (2021). A New Coding Scheme for Line Segment Clipping in E2. In: Gervasi, O., et al. Computational Science and Its Applications – ICCSA 2021. ICCSA 2021. Lecture Notes in Computer Science(), vol 12953. Springer, Cham. https://doi.org/10.1007/978-3-030-86976-2_2
Download citation
DOI: https://doi.org/10.1007/978-3-030-86976-2_2
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-030-86975-5
Online ISBN: 978-3-030-86976-2
eBook Packages: Computer ScienceComputer Science (R0)