Changeset View
Changeset View
Standalone View
Standalone View
intern/elbeem/intern/mvmcoords.cpp
| Context not available. | |||||
| #include "mvmcoords.h" | #include "mvmcoords.h" | ||||
| #include <algorithm> | #include <algorithm> | ||||
| #include <cmath> | |||||
| #if defined(_MSC_VER) && _MSC_VER > 1600 | #if defined(_MSC_VER) && _MSC_VER > 1600 | ||||
| // std::greater | // std::greater | ||||
| Context not available. | |||||
| using std::vector; | using std::vector; | ||||
| using std::isfinite; | |||||
| void MeanValueMeshCoords::clear() | void MeanValueMeshCoords::clear() | ||||
| { | { | ||||
| Context not available. | |||||
| for (vector<mvmIndexWeight>::iterator viter = tds.weights.begin(); | for (vector<mvmIndexWeight>::iterator viter = tds.weights.begin(); | ||||
| viter != tds.weights.end(); ++viter) { | viter != tds.weights.end(); ++viter) { | ||||
| viter->weight *= invTotalWeight; | viter->weight *= invTotalWeight; | ||||
| //assert(finite(viter->weight) != 0); | //assert(isfinite(viter->weight) != 0); | ||||
| if(!finite(viter->weight)) viter->weight=0.; | if(!isfinite(viter->weight)) viter->weight=0.; | ||||
| } | } | ||||
| } | } | ||||
| Context not available. | |||||