PartDesign_Helix: use computed wires

use the wires of the computed face instead of the selected ones.
This commit is contained in:
Florian Foinant-Willig
2024-01-30 22:24:57 +01:00
committed by Adrián Insaurralde Avalos
parent 1215301e59
commit d7a95b4e90

View File

@@ -218,7 +218,12 @@ App::DocumentObjectExecReturn* Helix::execute()
std::vector<TopoDS_Wire> 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());