kopia lustrzana https://github.com/inkstitch/inkstitch
Element info: take pattern into account (#3581)
* element info: take pattern into account * ensure multi-polygon for fill nonzero shapespull/3583/head
rodzic
732de4fecb
commit
89b472d319
|
@ -774,7 +774,7 @@ class FillStitch(EmbroideryElement):
|
|||
paths.sort(key=lambda point_list: shgeo.Polygon(point_list).area, reverse=True)
|
||||
shape = shgeo.MultiPolygon([(paths[0], paths[1:])])
|
||||
if self.node.style('fill-rule') == 'nonzero':
|
||||
shape = shape.buffer(0)
|
||||
shape = ensure_multi_polygon(shape.buffer(0))
|
||||
return shape
|
||||
|
||||
@property
|
||||
|
|
|
@ -40,7 +40,7 @@ class ElementInfo(InkstitchExtension):
|
|||
app.MainLoop()
|
||||
|
||||
def _element_info(self, element, previous_stitch_group, next_element):
|
||||
stitch_groups = element.to_stitch_groups(previous_stitch_group)
|
||||
stitch_groups = element.embroider(previous_stitch_group, next_element)
|
||||
stitch_plan = stitch_groups_to_stitch_plan(
|
||||
stitch_groups,
|
||||
collapse_len=self.metadata['collapse_len_mm'],
|
||||
|
|
Ładowanie…
Reference in New Issue