Path: sort shapes in PathAreaOp before executing

This commit is contained in:
Sabin Iacob
2019-03-14 22:02:26 +02:00
committed by wmayer
parent 5419db56dc
commit 6cc1628286

View File

@@ -249,6 +249,16 @@ class ObjectOp(PathOp.ObjectOp):
shapes = self.areaOpShapes(obj)
jobs = [{
'x': s[0].BoundBox.XMin,
'y': s[0].BoundBox.YMin,
'shape': s
} for s in shapes]
jobs = PathUtils.sort_jobs(jobs, ['x', 'y'])
shapes = [j['shape'] for j in jobs]
sims = []
for (shape, isHole) in shapes:
try: