Merge pull request #20496 from hyarion/refactor/cppify-constants
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user