fix debug build

This commit is contained in:
Seth Alves 2015-06-17 14:54:13 -07:00
parent 9a51a4c5b1
commit 44bb220130
2 changed files with 3 additions and 1 deletions

View file

@ -283,9 +283,11 @@ void MeshMassProperties::computeMassProperties(const VectorOfPoints& points, con
uint32_t numTriangles = triangleIndices.size() / 3;
for (uint32_t i = 0; i < numTriangles; ++i) {
uint32_t t = 3 * i;
#ifdef DEBUG
assert(triangleIndices[t] < numPoints);
assert(triangleIndices[t + 1] < numPoints);
assert(triangleIndices[t + 2] < numPoints);
#endif
// extract raw vertices
tetraPoints[0] = p0;

View file

@ -125,7 +125,7 @@ public:
f();
pop();
#ifdef DEBUG
assert(startingDepth = size());
assert(startingDepth == size());
#endif
}