FEM: Use std::numeric_limits and std::numbers instead of defines

This commit is contained in:
Benjamin Nauck
2025-03-27 19:00:41 +01:00
parent fd28d6f27f
commit d0dc4c00ef
22 changed files with 153 additions and 134 deletions

View File

@@ -82,7 +82,7 @@ void ViewProviderFemConstraintPressure::transformSymbol(const Base::Vector3d& po
SbMatrix& mat) const
{
auto obj = this->getObject<const Fem::ConstraintPressure>();
float rotAngle = obj->Reversed.getValue() ? F_PI : 0.0f;
float rotAngle = obj->Reversed.getValue() ? std::numbers::pi_v<float> : 0.0f;
float s = obj->getScaleFactor();
// Symbol length from .iv file
float symLen = 4.0f;