Move from float to double
This commit is contained in:
@@ -575,7 +575,7 @@ App::DocumentObjectExecReturn* Feature::execute(void)
|
||||
str << "Inspecting " << this->Label.getValue() << "...";
|
||||
Base::SequencerLauncher seq(str.str().c_str(), count);
|
||||
|
||||
std::vector<float> vals(count);
|
||||
std::vector<double> vals(count);
|
||||
for (unsigned long index = 0; index < count; index++) {
|
||||
Base::Vector3f pnt = actual->getPoint(index);
|
||||
|
||||
@@ -599,7 +599,7 @@ App::DocumentObjectExecReturn* Feature::execute(void)
|
||||
|
||||
float fRMS = 0;
|
||||
int countRMS = 0;
|
||||
for (std::vector<float>::iterator it = vals.begin(); it != vals.end(); ++it) {
|
||||
for (std::vector<double>::iterator it = vals.begin(); it != vals.end(); ++it) {
|
||||
if (fabs(*it) < FLT_MAX) {
|
||||
fRMS += (*it) * (*it);
|
||||
countRMS++;
|
||||
|
||||
@@ -293,7 +293,7 @@ void ViewProviderInspection::setDistances()
|
||||
}
|
||||
|
||||
// distance values
|
||||
const std::vector<float>& fValues = ((App::PropertyFloatList*)pDistances)->getValues();
|
||||
const std::vector<double>& fValues = ((App::PropertyFloatList*)pDistances)->getValues();
|
||||
if ((int)fValues.size() != this->pcCoords->point.getNum()) {
|
||||
pcMatBinding->value = SoMaterialBinding::OVERALL;
|
||||
return;
|
||||
@@ -308,7 +308,7 @@ void ViewProviderInspection::setDistances()
|
||||
float * tran = pcColorMat->transparency.startEditing();
|
||||
|
||||
unsigned long j=0;
|
||||
for (std::vector<float>::const_iterator jt = fValues.begin(); jt != fValues.end(); ++jt, j++) {
|
||||
for (std::vector<double>::const_iterator jt = fValues.begin(); jt != fValues.end(); ++jt, j++) {
|
||||
App::Color col = pcColorBar->getColor(*jt);
|
||||
cols[j] = SbColor(col.r, col.g, col.b);
|
||||
if (pcColorBar->isVisible(*jt))
|
||||
|
||||
Reference in New Issue
Block a user