Merge pull request #11927 from bdieterm/fix-path-profile

Path: fix wire midpoint calculation
This commit is contained in:
sliptonic
2024-01-08 14:00:03 -06:00
committed by GitHub

View File

@@ -1449,8 +1449,7 @@ class ObjectProfile(PathAreaOp.ObjectOp):
wL = wire.Length
midW = wL / 2
for e in range(0, len(wire.Edges)):
E = wire.Edges[e]
for E in Part.sortEdges(wire.Edges)[0]:
elen = E.Length
d_ = dist + elen
if dist < midW and midW <= d_: