PartDesign: Use std::numeric_limits and std::numbers instead of defines
This commit is contained in:
@@ -121,7 +121,7 @@ void ViewProviderAddSub::updateAddSubShapeIndicator() {
|
||||
Standard_Real deflection = ((xMax-xMin)+(yMax-yMin)+(zMax-zMin))/300.0 * Deviation.getValue();
|
||||
|
||||
// create or use the mesh on the data structure
|
||||
Standard_Real AngDeflectionRads = AngularDeflection.getValue() / 180.0 * M_PI;
|
||||
Standard_Real AngDeflectionRads = AngularDeflection.getValue() / 180.0 * std::numbers::pi;
|
||||
BRepMesh_IncrementalMesh(cShape, deflection, Standard_False, AngDeflectionRads, Standard_True);
|
||||
|
||||
// We must reset the location here because the transformation data
|
||||
|
||||
Reference in New Issue
Block a user