Commit 43778037 authored by Jan Möbius's avatar Jan Möbius

More warnings fixed

parent 4dd321bb
Pipeline #3414 passed with stage
in 70 minutes and 1 second
...@@ -214,7 +214,8 @@ public: ...@@ -214,7 +214,8 @@ public:
// the smaller the factor, the smaller normal_deviation_ gets // the smaller the factor, the smaller normal_deviation_ gets
// thus creating a stricter constraint // thus creating a stricter constraint
// division by error_tolerance_factor_ is for normalization // division by error_tolerance_factor_ is for normalization
Scalar normal_deviation = (normal_deviation_ * static_cast<Scalar>(180.0)/static_cast<Scalar>(M_PI) ) * _factor / this->error_tolerance_factor_; Scalar normal_deviation = normal_deviation_ * static_cast<Scalar>( 180.0 / M_PI * _factor / this->error_tolerance_factor_);
set_normal_deviation(normal_deviation); set_normal_deviation(normal_deviation);
this->error_tolerance_factor_ = _factor; this->error_tolerance_factor_ = _factor;
} }
......
...@@ -185,7 +185,7 @@ class ModRoundnessT : public ModBaseT<MeshT> ...@@ -185,7 +185,7 @@ class ModRoundnessT : public ModBaseT<MeshT>
// the smaller the factor, the smaller min_r_ gets // the smaller the factor, the smaller min_r_ gets
// thus creating a stricter constraint // thus creating a stricter constraint
// division by error_tolerance_factor_ is for normalization // division by error_tolerance_factor_ is for normalization
value_type min_roundness = min_r_ * _factor / this->error_tolerance_factor_; value_type min_roundness = min_r_ * static_cast<value_type>(_factor / this->error_tolerance_factor_);
set_min_roundness(min_roundness); set_min_roundness(min_roundness);
this->error_tolerance_factor_ = _factor; this->error_tolerance_factor_ = _factor;
} }
......
...@@ -231,7 +231,7 @@ private: ...@@ -231,7 +231,7 @@ private:
double t = (3.0 + 2.0 * cos( 2.0 * M_PI * inv_v) ); double t = (3.0 + 2.0 * cos( 2.0 * M_PI * inv_v) );
double alpha = (40.0 - t * t)/64.0; double alpha = (40.0 - t * t)/64.0;
return weight_t( 1.0-alpha, inv_v*alpha); return weight_t( static_cast<real_t>(1.0-alpha), static_cast<real_t>(inv_v*alpha) );
} }
return weight_t(0.0, 0.0); return weight_t(0.0, 0.0);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment