PartDesign_Helix: use computed wires
use the wires of the computed face instead of the selected ones.
This commit is contained in:
committed by
Adrián Insaurralde Avalos
parent
1215301e59
commit
d7a95b4e90
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user