Use Base::toRadians() instead of manually converting
This commit is contained in:
@@ -721,8 +721,8 @@ App::DocumentObjectExecReturn* FeatureExtrude::buildExtrusion(ExtrudeOptions opt
|
||||
Part::ExtrusionParameters params;
|
||||
params.dir = dir;
|
||||
params.solid = makeface;
|
||||
params.taperAngleFwd = this->TaperAngle.getValue() * pi / 180.0;
|
||||
params.taperAngleRev = this->TaperAngle2.getValue() * pi / 180.0;
|
||||
params.taperAngleFwd = Base::toRadians(this->TaperAngle.getValue());
|
||||
params.taperAngleRev = Base::toRadians(this->TaperAngle2.getValue());
|
||||
if (L2 == 0.0 && Midplane.getValue()) {
|
||||
params.lengthFwd = L / 2;
|
||||
params.lengthRev = L / 2;
|
||||
|
||||
Reference in New Issue
Block a user