PartDesign Helix: update NbTurns in Pitch-Height-Angle mode

This commit is contained in:
tomate44
2021-03-28 12:20:05 +02:00
committed by wwmayer
parent dfd683d464
commit 415034d1eb

View File

@@ -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!");