Merge pull request #20496 from hyarion/refactor/cppify-constants

This commit is contained in:
Chris Hennes
2025-03-29 18:43:40 -05:00
committed by GitHub
322 changed files with 1791 additions and 1654 deletions

View File

@@ -75,7 +75,10 @@ using Adaptor3d_HSurface = Adaptor3d_Surface;
using BRepAdaptor_HSurface = BRepAdaptor_Surface;
#endif
static const App::PropertyFloatConstraint::Constraints scaleConstraint = {0.0, DBL_MAX, 0.1};
static const App::PropertyFloatConstraint::Constraints scaleConstraint = {
0.0,
std::numeric_limits<double>::max(),
0.1};
PROPERTY_SOURCE(Fem::Constraint, App::DocumentObject)

View File

@@ -116,12 +116,14 @@ namespace
Base::Rotation anglesToRotation(double xAngle, double yAngle, double zAngle)
{
using std::numbers::pi;
static Base::Vector3d a(1, 0, 0);
static Base::Vector3d b(0, 1, 0);
static int count = 0;
double xRad = xAngle * D_PI / 180.0;
double yRad = yAngle * D_PI / 180.0;
double zRad = zAngle * D_PI / 180.0;
double xRad = xAngle * pi / 180.0;
double yRad = yAngle * pi / 180.0;
double zRad = zAngle * pi / 180.0;
if (xAngle != 0) {
a[1] = 0;
a[2] = 0;