Advanced Search
Zhang Hangcheng, Liu Yi, Dai Kai, Song Tianqi, Wang Le, Zeng Wei, Yang Yijun. Algorithm for Solving the Distance of Planar Line Segments Based on Local Coordinate System[J]. Journal of Computer-Aided Design & Computer Graphics, 2023, 35(12): 1966-1976. DOI: 10.3724/SP.J.1089.2023.2023-00028
Citation: Zhang Hangcheng, Liu Yi, Dai Kai, Song Tianqi, Wang Le, Zeng Wei, Yang Yijun. Algorithm for Solving the Distance of Planar Line Segments Based on Local Coordinate System[J]. Journal of Computer-Aided Design & Computer Graphics, 2023, 35(12): 1966-1976. DOI: 10.3724/SP.J.1089.2023.2023-00028

Algorithm for Solving the Distance of Planar Line Segments Based on Local Coordinate System

  • Aiming at the lack of high-speed and high-precision planar line segment distance solving algorithms in the existing CAD geometry engine and VLSI design, we propose a planar line segment distance solving algorithm based on local coordinate system. First, a local coordinate system is established by coordinate transformation; then, according to the relative position relationship between two line segments, the planar line segment distance solving is classified into 12 kinds of nearest point solving cases; finally, the planar line segment distance is solved by computing the distance of the nearest points. The experiments are carried out with PCB line segments data and randomly generated line segments data, and the experiment results show that the algorithm is 23% to 35% more efficient than the compared algorithms. Moreover, the algorithm can still control the computational error in four critical cases, which proves its effectiveness.
  • loading

Catalog

    Turn off MathJax
    Article Contents

    /

    DownLoad:  Full-Size Img  PowerPoint
    Return
    Return