mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 12:28:02 +02:00
fix debug build
This commit is contained in:
parent
9a51a4c5b1
commit
44bb220130
2 changed files with 3 additions and 1 deletions
|
@ -283,9 +283,11 @@ void MeshMassProperties::computeMassProperties(const VectorOfPoints& points, con
|
||||||
uint32_t numTriangles = triangleIndices.size() / 3;
|
uint32_t numTriangles = triangleIndices.size() / 3;
|
||||||
for (uint32_t i = 0; i < numTriangles; ++i) {
|
for (uint32_t i = 0; i < numTriangles; ++i) {
|
||||||
uint32_t t = 3 * i;
|
uint32_t t = 3 * i;
|
||||||
|
#ifdef DEBUG
|
||||||
assert(triangleIndices[t] < numPoints);
|
assert(triangleIndices[t] < numPoints);
|
||||||
assert(triangleIndices[t + 1] < numPoints);
|
assert(triangleIndices[t + 1] < numPoints);
|
||||||
assert(triangleIndices[t + 2] < numPoints);
|
assert(triangleIndices[t + 2] < numPoints);
|
||||||
|
#endif
|
||||||
|
|
||||||
// extract raw vertices
|
// extract raw vertices
|
||||||
tetraPoints[0] = p0;
|
tetraPoints[0] = p0;
|
||||||
|
|
|
@ -125,7 +125,7 @@ public:
|
||||||
f();
|
f();
|
||||||
pop();
|
pop();
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
assert(startingDepth = size());
|
assert(startingDepth == size());
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue