fixes #0004286: PartDesign hole: angle of the tapered hole does not match the tapered angle specified [skip ci]

See https://forum.freecadweb.org/viewtopic.php?f=13&t=44056#p375915
This commit is contained in:
wmayer
2020-03-12 11:39:09 +01:00
parent 4db6d7cafa
commit e91c2d6afd

View File

@@ -1019,7 +1019,7 @@ App::DocumentObjectExecReturn *Hole::execute(void)
bool isCountersink = (holeCutType == "Countersink" || holeCutType == "Countersink socket screw");
bool isCounterbore = (holeCutType == "Counterbore" || holeCutType == "Cheesehead" || holeCutType == "Cap screw");
double hasTaperedAngle = Tapered.getValue() ? Base::toRadians( TaperedAngle.getValue() ) : Base::toRadians(90.0);
double radiusBottom = Diameter.getValue() / 2.0 - length * cos( hasTaperedAngle );
double radiusBottom = Diameter.getValue() / 2.0 - length * 1.0 / tan( hasTaperedAngle );
double radius = Diameter.getValue() / 2.0;
double holeCutRadius = HoleCutDiameter.getValue() / 2.0;
gp_Pnt firstPoint(0, 0, 0);