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

This commit is contained in:
Flachy Joe
2022-11-04 13:32:58 +01:00
committed by Uwe
parent a22a8a00a1
commit 0bd3f9d8a9
+5 -2
View File
@@ -241,8 +241,11 @@ App::DocumentObjectExecReturn* Helix::execute(void)
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);