Use Base::toRadians() instead of manually converting

This commit is contained in:
Benjamin Nauck
2025-04-09 09:14:54 +02:00
parent 1f8c8043fc
commit 21fbf8e539
43 changed files with 129 additions and 106 deletions

View File

@@ -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;