Log in FemMesh view provider and some warnings fixed
This commit is contained in:
@@ -416,7 +416,7 @@ float QuadraticFit::Fit()
|
||||
if (CountPoints() > 0) {
|
||||
std::vector< Wm4::Vector3<double> > cPts;
|
||||
GetMgcVectorArray( cPts );
|
||||
fResult = Wm4::QuadraticFit3<double>( CountPoints(), &(cPts[0]), _fCoeff );
|
||||
fResult = (float) Wm4::QuadraticFit3<double>( CountPoints(), &(cPts[0]), _fCoeff );
|
||||
_fLastResult = fResult;
|
||||
|
||||
_bIsFitted = true;
|
||||
@@ -520,7 +520,7 @@ float SurfaceFit::Fit()
|
||||
float fResult = FLOAT_MAX;
|
||||
|
||||
if (CountPoints() > 0) {
|
||||
fResult = PolynomFit();
|
||||
fResult = (float) PolynomFit();
|
||||
_fLastResult = fResult;
|
||||
|
||||
_bIsFitted = true;
|
||||
@@ -684,7 +684,7 @@ double SurfaceFit::Value(double x, double y) const
|
||||
float z = 0.0f;
|
||||
if (_bIsFitted) {
|
||||
FunctionContainer clFuncCont(_fCoeff);
|
||||
z = clFuncCont.F(x, y, 0.0f);
|
||||
z = (float) clFuncCont.F(x, y, 0.0f);
|
||||
}
|
||||
|
||||
return z;
|
||||
|
||||
@@ -413,7 +413,7 @@ public:
|
||||
Base::Vector3f GetGradient( double x, double y, double z ) const
|
||||
{
|
||||
Wm4::Vector3<double> grad = pImplSurf->GetGradient( Wm4::Vector3<double>(x, y, z) );
|
||||
return Base::Vector3f( grad.X(), grad.Y(), grad.Z() );
|
||||
return Base::Vector3f( (float)grad.X(), (float)grad.Y(), (float)grad.Z() );
|
||||
}
|
||||
|
||||
Base::Matrix4D GetHessian( double x, double y, double z ) const
|
||||
|
||||
Reference in New Issue
Block a user