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
评论列表
文章目录