高级检索

一种基于局部坐标系的平面线段距离求解方法

An Algorithm to Compute the Distance of 2D Line Segments based on Local Coordinate System

  • 摘要: 基本几何元素距离的计算是CAD几何引擎中的核心算法, 其广泛应用到包括船舶设计和集成电路设计等CAD软件中. 作为底层高频算法, 距离计算的速度在很大程度上影响其上层CAD软件的效率. 特别是, 平面线段距离计算在VLSI设计、布尔运算和草图设计等功能模块中扮演非常重要的角色. 本文提出了一种基于局部坐标系的平面线段距离计算方法, 根据两个线段的位置关系将线段距离计算归纳分类成12种可以直接进行最近点线计算的情形.两条平面线段之间的最近距离计算转换为一个点和一条线段之间的最近距离计算. 文章最后将本文算法和现有算法进行了对比, 本文算法比现有效率最高算法效率提高23%-35%, 结果证明了本文方法的有效性.

     

    Abstract: The calculation of distances between basic geometric elements is a key algorithm in CAD geometry engines, which are widely applied in CAD software, including ship design and VLSI design. As the underlying high-frequency algorithm, the speed of distance calculation significantly affects the efficiency of the upper CAD software. In particular, distance calculation of planar line segments plays a very important role in VLSI design, Boolean operation and sketch design. In this paper, we propose a method for calculating the distance between two line segments based on the local coordinate system, and classify the distance calculation into 12 cases based on the end position of the two line segments. By calculating the position of the nearest point of two line segments, the distance calculation between two planar line segments is converted into the distance calculation between two nearest points. At the end of the paper, the efficiency of this algorithm is compared with the existing algorithms, and the efficiency of distance calculation between two line segments is improved by 23%-35% compared with the most efficient existing algorithm.

     

/

返回文章
返回