kopia lustrzana https://github.com/inkstitch/inkstitch
bugfix in is_same_run
rodzic
290f5cd1da
commit
8f9e6028f9
|
@ -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)
|
||||||
|
|
Ładowanie…
Reference in New Issue