From cbf96d83a954f64219946dd07ccc0273d8a536c9 Mon Sep 17 00:00:00 2001 From: DeepSOIC Date: Tue, 14 Mar 2017 02:07:07 +0300 Subject: [PATCH] Part.BOPTools: fix wire making Use Part.sortEdges instead of Part.getSortedClusters. Thanks @realthunder! --- src/Mod/Part/BOPTools/ShapeMerge.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mod/Part/BOPTools/ShapeMerge.py b/src/Mod/Part/BOPTools/ShapeMerge.py index 484f144017..dcf34a3eda 100644 --- a/src/Mod/Part/BOPTools/ShapeMerge.py +++ b/src/Mod/Part/BOPTools/ShapeMerge.py @@ -157,7 +157,7 @@ def mergeWires(list_of_edges_wires, flag_single = False, split_connections = []) return Part.Wire(edges) else: groups = splitIntoGroupsBySharing(edges, lambda sh: sh.Vertexes, split_connections) - return Part.makeCompound([Part.Wire(Part.getSortedClusters(group)[0]) for group in groups]) + return Part.makeCompound([Part.Wire(Part.sortEdges(group)[0]) for group in groups]) def mergeVertices(list_of_vertices, flag_single = False, split_connections = []): # no comprehensive support, just following the footprint of other mergeXXX()