[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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user