首页 | 本学科首页   官方微博 | 高级检索  
     检索      

简单多边形间最大距离的求解算法
引用本文:崔先国,毛定山.简单多边形间最大距离的求解算法[J].测绘科学,2008,33(6):139-140.
作者姓名:崔先国  毛定山
作者单位:山东科技大学测绘科学与工程学院,山东青岛,266510;北京山海经纬信息技术有限公司,北京,100086
摘    要:求解任意两个简单多边形间的最大距离,在几何图形计算中,一直是一个基本问题。在对多边形自身的特性以及两多边形间关系进行深入分析的基础上,提出了一个基于折线凸包的单调性的简单多边形间最大距离的求解算法。根据封闭折线内部所具有的特性,把封闭折线拆分成两个断开的折线,使一条折线在另一条折线左边。两个多边形分别被拆分成四条折线,两个分为一组。分别求出每组中两条折线的凸包,利用凸包的单调性可以快速地找出两个距离最远的顶点,其中较大的是两个简单多边形间的最大距离。算法的时间复杂度是线性的。

关 键 词:多边形  中轴线  凸包  单调性

An algorithm for computing the maximum distance between two simple polygons
Abstract:In the computer graphics,spatial analysis of geographic information system(GIS) and computer aided design(CAD),it is a fundamental problem to compute the maximum distance between two polygons.A simple and fast algorithm is presented for computing the maximum distance between two polygons based on the monotonicity of convex hull.According to the interior relationship of closed polygonal line,a closed polygonal line is split to two open polygonal lines,so that one is at the left of the other one.Two polygons are split to four open polygonal lines,and they are grouped in two.Then the convex hulls of each group are constructed to find likely farthest two vertices which are on respective convex hull.So nearly half sum of polygon vertices is excluded by splitting closed polygonal lines,and many vertices which are on open polygonal line,are also excluded while constructing convex hulls,which results in an efficient algorithm.The algorithm's time complexity is linear in the size of two polygons.
Keywords:simple polygon  middle-line  convex hull  monotonicity  
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号