From 0f18e4971c070dda9ad0ec44b526530066895a04 Mon Sep 17 00:00:00 2001 From: ZappoMan Date: Wed, 25 Jun 2014 12:03:40 -0700 Subject: [PATCH] added more debug --- tests/octree/src/ModelTests.cpp | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/tests/octree/src/ModelTests.cpp b/tests/octree/src/ModelTests.cpp index 650ad40733..a223e229fd 100644 --- a/tests/octree/src/ModelTests.cpp +++ b/tests/octree/src/ModelTests.cpp @@ -289,9 +289,20 @@ void ModelTests::modelTreeTests(bool verbose) { quint64 endFind = usecTimestampNow(); totalElapsedFind += (endFind - startFind); + ModelTreeElement* containingElement = tree.getContainingElement(modelID); + AACube elementCube = containingElement ? containingElement->getAACube() : AACube(); + if (extraVerbose) { - qDebug() << "foundModelByRadius=" << foundModelByRadius; - qDebug() << "foundModelByID=" << foundModelByID; + qDebug() << "foundModelByRadius=" << foundModelByRadius; + qDebug() << "foundModelByID=" << foundModelByID; + qDebug() << "containingElement=" << containingElement; + qDebug() << "containingElement.box=" + << elementCube.getCorner().x * TREE_SCALE << "," + << elementCube.getCorner().y * TREE_SCALE << "," + << elementCube.getCorner().z * TREE_SCALE << ":" + << elementCube.getScale() * TREE_SCALE; + qDebug() << "elementCube.getScale()=" << elementCube.getScale(); + //containingElement->printDebugDetails("containingElement"); } // Every 1000th test, show the size of the tree...