检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
机构地区:[1]湖州师范学院信息工程学院,浙江湖州313000 [2]江苏大学图形技术研究所,江苏镇江212013
出 处:《计算机应用与软件》2005年第9期111-114,共4页Computer Applications and Software
摘 要:文中提出一种快速判别简单多边形方向与顶点凸凹性的新算法。通过对简单多边形的每一个顶点引入伴随坐标系,将平面划分为与该顶点相关的四个部分;由此可以得到简单多边形中与该顶点相邻的两个顶点在该平面划分中的16种配置关系;不同的配置关系对判别该顶点的凸凹性所需要的计算量是不同的,从而使大量凸凹性判别工作由“比较”运算来完成,只有在必要时才运用“乘/除法”运算;算法利用“假设-检测”方法,通过获取诸顶点中横坐标值最大的顶点,最终确定简单多边形的方向和诸顶点的凸凹性。文中算法的时间复杂度为O(n)。一般情况下,计算一个顶点的凸凹性所使用的乘法次数平均不超过一次,最坏时也仅为一次。In this paper, a new algorithm to rapidly identify the orientation of a simple planar polygon and convexity-concavity of its vertices is presented. For a given simple polygon in plane that all its edge vectors are connected sequentially in clockwise or counterclockwise sense,a local reference frame, which give the plane a division,is constructed at each vertex of the ploygon. According to the frame, 16 configurations of two vertices neighboring one vertex of the polygon are obtained. Because different case in the configurations has inconsistently need of expensive calculation, a few “product”operators, which are employed to determine convexity-concavity for each vertex in traditional algorithm, are replaced by “ relation” operators here. By obtaining the maximal X-coordinate vertex of the polygon,a “predicting-checking” method is used to finally determine the orientation of a simple planar polygon and convexity-concavity of its vertices. Our algorithm has time-complexity of O (n). Further, for each vertex,the approach uses averagely “product” operator no more than one times.
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:216.73.216.28