摘要
本文的裁剪策略是,巧妙的利用窗口与线段的两种不同数学描述,将有效交点的判定、求交运算及包含性检验,归结为三个条件的判别。这三个条件形式简明,运算量小,整个裁剪过程,只有存在有效交点时才作一次除法,把除法减少到最低限度,从而大大提高了裁剪效率。
In this paper, an algorithm for clipping against a rectangular window is presented. By means of different mathematical representations of straight line segment, the process of clipping is reduced to the determination of three simple conditions. The idea of the algorithm is that in the entire process of clipping, determination is not more than that of other algorithms; division operations are needed only when the line segment to be clipped crosses the edges of the window; the edges of the window which do not cross the line segment to be clipped are quickly rejected. Thus, divisions and other calculations are reduced to their, min-mum and the efficiency of line clipping against a rectangular window is greatly improved.
出处
《纯粹数学与应用数学》
CSCD
1996年第1期44-49,共6页
Pure and Applied Mathematics
基金
陕西省科委基金资助项目
关键词
裁剪
矩形窗口
线段处理
计算机图形学
clipping
rectangular windows
line segment processing
visibility