高级检索

基于变窗口过滤技术的线段裁剪中点分割算法

Midpoint-Subdivision Line Clipping Algorithm Based on Filtering Technique

  • 摘要: 提出变窗口裁剪的新概念,通过改变线段与变窗口的相对位置,从而快速滤去冗余线段,避免没有必要的求交运算.变窗口由变化斜率的窗口边构成,窗口对边保持平行.单层过滤技术的窗口边斜率分别为+1和-1,适合于软件和硬件实现;在此基础上,多层过滤技术的窗口边斜率分别以2的负整数次幂改变,以充分发挥硬件实现的特点,不断地快速舍弃冗余线段.算法既保持了传统中点分割算法的特有优点:无需乘除、硬件实现简单,又大大降低了冗余线段的裁剪计算量.软件实现清楚地表明该算法能明显提高线段裁剪效率.可以推断,若用硬件并行结构实现该算法,裁剪效率的提高将更为显著.

     

    Abstract: M idpoint subdivision algorithm uses the line end point codes and associated tests to immediately identify totally visible lines and trivially invisible lines.In order to fully use this simple algorithm to reject most invisible lines,two sets of inclined parallel orthogonal lines passing through four corners of the original window are constructed,forming a filtering window to carry out the midpoint subdivision algorithm.Repeatedly tilting the filtering window ,i.e.changing the inclined angle of its bounding edges in certain way,trivially invisible lines are rejected successively.Theoretical analysis and running test of the new algorithm verified its high efficiency.Parallel architecture could further raise the speed of clipping greatly.

     

/

返回文章
返回