Coverity issues: fix Mesh, Points and Inspection module

This commit is contained in:
wmayer
2016-08-17 14:08:47 +02:00
parent d4368eb186
commit cc97241969
18 changed files with 124 additions and 83 deletions

View File

@@ -751,8 +751,11 @@ App::DocumentObjectExecReturn* Feature::execute(void)
}
}
fRMS = fRMS / countRMS;
fRMS = sqrt(fRMS);
if (countRMS > 0) {
fRMS = fRMS / countRMS;
fRMS = sqrt(fRMS);
}
Base::Console().Message("RMS value for '%s' with search radius=%.4f is: %.4f\n",
this->Label.getValue(), this->SearchRadius.getValue(), fRMS);