bugfix in is_same_run

pull/4/head
Lex Neva 2017-02-05 20:37:03 +00:00
rodzic 290f5cd1da
commit 8f9e6028f9
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -395,7 +395,7 @@ class Fill(EmbroideryElement):
return shgeo.Polygon((segment1[0], segment1[1], segment2[1], segment2[0], segment1[0])) return shgeo.Polygon((segment1[0], segment1[1], segment2[1], segment2[0], segment1[0]))
def is_same_run(self, segment1, segment2): def is_same_run(self, segment1, segment2):
if shgeo.LineString(segment1).distance(shgeo.LineString(segment1)) > self.row_spacing * 1.1: if shgeo.LineString(segment1).distance(shgeo.LineString(segment2)) > self.row_spacing * 1.1:
return False return False
quad = self.make_quadrilateral(segment1, segment2) quad = self.make_quadrilateral(segment1, segment2)