More warnings fixed
This commit is contained in:
@@ -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>
|
|||||||
// 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:
|
|||||||
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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user