检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
机构地区:[1]江苏科技大学计算机科学与工程学院,江苏镇江212003
出 处:《电子设计工程》2016年第16期187-190,共4页Electronic Design Engineering
摘 要:多边形内外点判定算法是图形学的基础型算法,目的是判定待测点是否在指定的多边形之内。由于传统的射线法与角度和法效率偏低,平均时间复杂度为O(n),当多边形边数或者待测点个数较多时,算法耗时较高。因此本文分析了传统的射线法与角度和法的缺点;提出了基于二分法的凸多边形内外点判别算法;最后进行实验仿真,证明该算法的平均时间复杂度为O(n/2)。该算法通过递归的分割凸多边形,判断待测点与分割线的相对位置,最终转化为三角形内外点的判别,具有快速、稳定、准确的优势。Point inclusion test is a basic algorithm of computer graphics, it's purpose is to determine whether a test point is in the specific polygon. Traditional ray-crossing method and angle algorithm have relative low efficiency, their average time complexity are O(n). So, if a polygon has a great many edges or test points, these algorithms will take much more time. This paper analyses the shortcomings of traditional ray-crossing method and angle algorithm, then proposes an efficient point-in-polygon test method based on dichotomy. At last, this paper uses many experiments to show that the average time complexity of this algorithm is O(n/2).By partitioning convex polygon recursively and judging the relative position between points and the line, this method eventually translate this problem into judging the relative position between triangle and points. Compared with the classic algorithms, such as the ray crossing method or the angle algorithm, this algorithm not only have the advantage rapid and stable, also can give which triangle region the points locate in.
分 类 号:TN0[电子电信—物理电子学]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:216.73.216.227