mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 18:23:54 +02:00
fix warning
This commit is contained in:
parent
dcb70aa504
commit
da404ce2ce
2 changed files with 3 additions and 7 deletions
|
@ -81,7 +81,7 @@ void TriangleSet::balanceOctree() {
|
|||
|
||||
// insert all the triangles
|
||||
|
||||
for (int i = 0; i < _triangles.size(); i++) {
|
||||
for (size_t i = 0; i < _triangles.size(); i++) {
|
||||
_triangleOctree.insert(i);
|
||||
}
|
||||
|
||||
|
@ -153,10 +153,6 @@ void TriangleSet::TriangleOctreeCell::reset(const AABox& bounds, int depth) {
|
|||
clear();
|
||||
_bounds = bounds;
|
||||
_depth = depth;
|
||||
if (depth <= MAX_DEPTH) {
|
||||
int childDepth = depth + 1;
|
||||
_children.clear();
|
||||
}
|
||||
}
|
||||
|
||||
void TriangleSet::TriangleOctreeCell::debugDump() {
|
||||
|
@ -176,7 +172,7 @@ void TriangleSet::TriangleOctreeCell::debugDump() {
|
|||
}
|
||||
}
|
||||
|
||||
void TriangleSet::TriangleOctreeCell::insert(int triangleIndex) {
|
||||
void TriangleSet::TriangleOctreeCell::insert(size_t triangleIndex) {
|
||||
const Triangle& triangle = _allTriangles[triangleIndex];
|
||||
_population++;
|
||||
// if we're not yet at the max depth, then check which child the triangle fits in
|
||||
|
|
|
@ -22,7 +22,7 @@ class TriangleSet {
|
|||
_allTriangles(allTriangles)
|
||||
{ }
|
||||
|
||||
void insert(int triangleIndex);
|
||||
void insert(size_t triangleIndex);
|
||||
void reset(const AABox& bounds, int depth = 0);
|
||||
void clear();
|
||||
|
||||
|
|
Loading…
Reference in a new issue