From 2428f6798072b7a137589acb527e02ce98327a49 Mon Sep 17 00:00:00 2001 From: bdieterm Date: Sun, 7 Jan 2024 21:23:13 +0100 Subject: [PATCH] Path: fix wire midpoint calculation --- src/Mod/Path/Path/Op/Profile.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Mod/Path/Path/Op/Profile.py b/src/Mod/Path/Path/Op/Profile.py index 7a22572b55..7a74d41187 100644 --- a/src/Mod/Path/Path/Op/Profile.py +++ b/src/Mod/Path/Path/Op/Profile.py @@ -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_: