[PD] add tooltip for Hole feature

- tooltip makes clear what the depth means for countersinks
- add comment why a calculation cannot be performed
- shorten some long lines
This commit is contained in:
Uwe
2023-03-10 04:08:12 +01:00
parent fac0a1740f
commit d27e69bdc9
3 changed files with 55 additions and 36 deletions

View File

@@ -456,7 +456,7 @@ void TaskHoleParameters::holeCutDepthChanged(double value)
// store current depth
double DepthDifference = value - pcHole->HoleCutDepth.getValue();
// new diameter is the old one + 2*tan(angle/2)*DepthDifference
// new diameter is the old one + 2 * tan(angle / 2) * DepthDifference
double newDiameter = pcHole->HoleCutDiameter.getValue()
+ 2 * tan(Base::toRadians(pcHole->HoleCutCountersinkAngle.getValue() / 2)) * DepthDifference;
// only apply if the result is not smaller than the hole diameter