Higher Efficient Abandonment Line Clipping Algorithm Based On Self-Adapting Window Transformation

Gd Lu,Xh Wu,Qs Peng
2001-01-01
Abstract:Because of huge time consuming in intersection calculation, line clipping algorithm has two main directions to improve its efficiency, one of which is to avoid the unnecessary intersection calculation and the other is to make the intersection calculation itself more quickly. A new algorithm called By-Step algorithm is proposed here, which combines the, two directions in whole. The clipping process of By-Step algorithm is divided into four steps, Original Window Clipping, 45 degrees Rotated Window Abandoning, FirstSet(-adaptable Window Abandoning and Second Self-adaptable Window Clipping. Without intersection calculation, lines totally visible are accepted in the fu-st step and lines totally invisible are rejected in first three steps. And lines partly visible are clipped until the last step. In different steps, the algorithm adapts its clipping strategies by means of window's transformation that is determined by the position of the line relative to the window. By-Step algorithm proves its high efficiency when implemented in C language. The algorithm has general theoretic value as well as applied value, and contributes to the progressing of clipping algorithm in recent years.
What problem does this paper attempt to address?