From d7a95b4e908f74dcd71f2faf0c5581e3a7615f3a Mon Sep 17 00:00:00 2001 From: Florian Foinant-Willig Date: Tue, 30 Jan 2024 22:24:57 +0100 Subject: [PATCH] PartDesign_Helix: use computed wires use the wires of the computed face instead of the selected ones. --- src/Mod/PartDesign/App/FeatureHelix.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Mod/PartDesign/App/FeatureHelix.cpp b/src/Mod/PartDesign/App/FeatureHelix.cpp index b7e7d873d8..e9730b1a79 100644 --- a/src/Mod/PartDesign/App/FeatureHelix.cpp +++ b/src/Mod/PartDesign/App/FeatureHelix.cpp @@ -218,7 +218,12 @@ App::DocumentObjectExecReturn* Helix::execute() std::vector wires; try { - wires = getProfileWires(); + // Iterate over wires in sketch shape. + for (TopExp_Explorer explorer(sketchshape, TopAbs_WIRE); explorer.More(); explorer.Next()) + { + const TopoDS_Wire& aWire = TopoDS::Wire(explorer.Current()); + wires.push_back(aWire); + } } catch (const Base::Exception& e) { return new App::DocumentObjectExecReturn(e.what());