高级检索

矩形布局可行域的确定

An Algorithm for Rectangle's Feasible Region Calculation

  • 摘要: 通过研究布局问题,提出一种求解矩形布局问题可行域的方法.首先根据当前布局空间中顶点的形态,按待布矩形的尺寸对各顶点进行偏移计算,获得当前布局空间的偏移多边形;然后遍历偏移多边形各边,求解并标识所有交点;最后根据偏移多边形各边的方向,通过沿边界搜索直接获得可行域上的各点.该方法通过搜索偏移多边形边界,避免了处理偏移多边形中多条边互交的复杂情况.分析及实例表明该方法思路简洁、快速而高效.

     

    Abstract: For the packing problem, the paper presents a novel algorithm for calculating rectangle's feasible region. Firstly, according to vertices' configuration in the layout region and the current rectangle size, the offset polygon can be obtained by calculating every vertex's coordinates. Then, the algorithm tours each edge of the offset polygon to find out and mark all the intersections. Lastly, on the basis of boundary search in the directions of each edge, all the vertices on the feasible region can be directly attained. The algorithm avoids dealing with the complex cases in which several edges intersect with each other by searching the boundary polygon. Analysis and illustrations indicate that the algorithm is simple and efficient.

     

/

返回文章
返回