Part: Use std::numeric_limits and std::numbers instead of defines
This commit is contained in:
@@ -773,9 +773,9 @@ bool Part::Tools::isConcave(const TopoDS_Face &face, const gp_Pnt &pointOfVue, c
|
||||
|
||||
// check normals orientation
|
||||
gp_Dir dirdU(dU);
|
||||
result = (dirdU.Angle(direction) - M_PI_2) <= Precision::Confusion();
|
||||
result = (dirdU.Angle(direction) - std::numbers::pi/2) <= Precision::Confusion();
|
||||
gp_Dir dirdV(dV);
|
||||
result = result || ((dirdV.Angle(direction) - M_PI_2) <= Precision::Confusion());
|
||||
result = result || ((dirdV.Angle(direction) - std::numbers::pi/2) <= Precision::Confusion());
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user