importer.py 文件源码

python
阅读 28 收藏 0 点赞 0 评论 0

项目:dxf2gcode 作者: cnc-club 项目源码 文件源码
def App_Cont_or_Calc_IntPts(self, geo=None, cont=None):
        """
        App_Cont_or_Calc_IntPts()
        Calculate and assign the start and end points
        """

        tol = g.config.point_tolerance
        points = []
        warning = 0
        for i in range(len(geo)):
            # logger.debug("geo: %s" %geo[i])
            warning = geo[i].App_Cont_or_Calc_IntPts(cont, points, i, tol, warning)

        if warning:
            QMessageBox.warning(g.window, self.tr("Short Elements"),
                                self.tr("Length of some Elements too short!"
                                "\nLength must be greater than tolerance."
                                "\nSkipped Geometries"))

        return points
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号