kopia lustrzana https://github.com/inkstitch/inkstitch
use buffer(0) when fill rule is nonzero (#3561)
rodzic
ba555c7ea3
commit
c2aeb39a44
|
@ -772,7 +772,10 @@ class FillStitch(EmbroideryElement):
|
||||||
# biggest path.
|
# biggest path.
|
||||||
paths = self.paths
|
paths = self.paths
|
||||||
paths.sort(key=lambda point_list: shgeo.Polygon(point_list).area, reverse=True)
|
paths.sort(key=lambda point_list: shgeo.Polygon(point_list).area, reverse=True)
|
||||||
return shgeo.MultiPolygon([(paths[0], paths[1:])])
|
shape = shgeo.MultiPolygon([(paths[0], paths[1:])])
|
||||||
|
if self.node.style('fill-rule') == 'nonzero':
|
||||||
|
shape = shape.buffer(0)
|
||||||
|
return shape
|
||||||
|
|
||||||
@property
|
@property
|
||||||
@cache
|
@cache
|
||||||
|
|
Ładowanie…
Reference in New Issue