From b2eb67e8062189ed737b74c98fdbc0989735ab3a Mon Sep 17 00:00:00 2001 From: Flachy Joe Date: Mon, 31 Oct 2022 23:26:10 +0100 Subject: [PATCH] [PartDesign] Improve Helix calculation for straight shape (#7674) --- src/Mod/PartDesign/App/FeatureHelix.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/Mod/PartDesign/App/FeatureHelix.cpp b/src/Mod/PartDesign/App/FeatureHelix.cpp index 3586537a32..c2504cf7aa 100644 --- a/src/Mod/PartDesign/App/FeatureHelix.cpp +++ b/src/Mod/PartDesign/App/FeatureHelix.cpp @@ -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);