[Path] Adaptive - improve 'use outline' logic

Path_Adaptive attempts to find the outline of a face using
face.Wires[0], change to use face.OuterWire instead
This commit is contained in:
Jon Escombe
2023-02-20 17:44:22 +00:00
parent b6d186ef73
commit ff74e3cd6c

View File

@@ -839,7 +839,7 @@ def _get_working_edges(op, obj):
face = base.Shape.getElement(sub)
# get outline with wire_A method used in PocketShape, but it does not play nicely later
# wire_A = TechDraw.findShapeOutline(face, 1, FreeCAD.Vector(0.0, 0.0, 1.0))
wire_B = face.Wires[0]
wire_B = face.OuterWire
shape = Part.Face(wire_B)
else:
shape = base.Shape.getElement(sub)