[PartDesign] Improve Helix calculation for straight shape (#7674)

This commit is contained in:
Flachy Joe
2022-10-31 23:26:10 +01:00
committed by GitHub
parent 4ff19f343e
commit b2eb67e806

View File

@@ -241,8 +241,11 @@ App::DocumentObjectExecReturn* Helix::execute()
mkPS.SetTolerance(Precision::Confusion());
mkPS.SetTransitionMode(BRepBuilderAPI_Transformed);
//mkPS.SetMode(true); //This is for frenet
mkPS.SetMode(TopoDS::Wire(auxpath), true); // this is for auxiliary
if (Angle.getValue() == 0) {
mkPS.SetMode(true); //This is for frenet
} else {
mkPS.SetMode(TopoDS::Wire(auxpath), true); // this is for auxiliary
}
for (TopoDS_Wire& wire : wires) {
wire.Move(invObjLoc);