Use Base::toRadians() instead of manually converting
This commit is contained in:
@@ -981,7 +981,7 @@ void ViewProviderPartExt::updateVisual()
|
||||
//deflection = std::min(deflection, 20.0);
|
||||
|
||||
// create or use the mesh on the data structure
|
||||
Standard_Real AngDeflectionRads = AngularDeflection.getValue() / 180.0 * std::numbers::pi;
|
||||
Standard_Real AngDeflectionRads = Base::toRadians(AngularDeflection.getValue());
|
||||
|
||||
IMeshTools_Parameters meshParams;
|
||||
meshParams.Deflection = deflection;
|
||||
|
||||
Reference in New Issue
Block a user