Skip to content
Permalink
Browse files

Path: sort shapes in PathAreaOp before executing

  • Loading branch information...
m0n5t3r committed Mar 14, 2019
1 parent bb6e4e6 commit 0da226b2e6d7faff8af6785783bb2a8c5acc21a4
Showing with 10 additions and 0 deletions.
  1. +10 −0 src/Mod/Path/PathScripts/PathAreaOp.py
@@ -249,6 +249,16 @@ def opExecute(self, obj, getsim=False):

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:

0 comments on commit 0da226b

Please sign in to comment.
You can’t perform that action at this time.