Skip to content

Commit

Permalink
PartDesign Helix: update NbTurns in Pitch-Height-Angle mode
Browse files Browse the repository at this point in the history
  • Loading branch information
tomate44 authored and wwmayer committed Mar 28, 2021
1 parent dfd683d commit 415034d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Mod/PartDesign/App/FeatureHelix.cpp
Expand Up @@ -117,6 +117,7 @@ App::DocumentObjectExecReturn *Helix::execute(void)
return new App::DocumentObjectExecReturn("Error: Pitch too small");
if (Height.getValue() < Precision::Confusion())
return new App::DocumentObjectExecReturn("Error: height too small!");
Turns.setValue(Height.getValue()/Pitch.getValue());
} else if (mode == "pitch-turns-angle") {
if (Pitch.getValue() < Precision::Confusion())
return new App::DocumentObjectExecReturn("Error: pitch too small!");
Expand Down

0 comments on commit 415034d

Please sign in to comment.