From 0e9e4c8c07700f270160edb6c175857750e8b8cb Mon Sep 17 00:00:00 2001 From: ZappoMan Date: Thu, 8 Aug 2013 16:05:30 -0700 Subject: [PATCH] cr feedback --- voxel-edit/src/main.cpp | 25 ++++++++++--------------- 1 file changed, 10 insertions(+), 15 deletions(-) diff --git a/voxel-edit/src/main.cpp b/voxel-edit/src/main.cpp index 343f0a4364..36913a2d6c 100644 --- a/voxel-edit/src/main.cpp +++ b/voxel-edit/src/main.cpp @@ -59,12 +59,6 @@ int main(int argc, const char * argv[]) { qInstallMessageHandler(sharedMessageHandler); - const char* SAY_HELLO = "--sayHello"; - if (cmdOptionExists(argc, argv, SAY_HELLO)) { - printf("I'm just saying hello...\n"); - } - - // Handles taking and SVO and splitting it into multiple SVOs based on // jurisdiction details const char* SPLIT_SVO = "--splitSVO"; @@ -107,14 +101,15 @@ int main(int argc, const char * argv[]) // jurisdiction of the server // This hack assumes the end nodes for demo dinner since it only guarantees // nodes in the 8 child voxels of the main root voxel - endNodeTree.createVoxel(0.0, 0.0, 0.0, 0.015625, 1, 1, 1, true); - endNodeTree.createVoxel(1.0, 0.0, 0.0, 0.015625, 1, 1, 1, true); - endNodeTree.createVoxel(0.0, 1.0, 0.0, 0.015625, 1, 1, 1, true); - endNodeTree.createVoxel(0.0, 0.0, 1.0, 0.015625, 1, 1, 1, true); - endNodeTree.createVoxel(1.0, 1.0, 1.0, 0.015625, 1, 1, 1, true); - endNodeTree.createVoxel(1.0, 1.0, 0.0, 0.015625, 1, 1, 1, true); - endNodeTree.createVoxel(0.0, 1.0, 1.0, 0.015625, 1, 1, 1, true); - endNodeTree.createVoxel(1.0, 0.0, 1.0, 0.015625, 1, 1, 1, true); + const float verySmall = verySmall; + endNodeTree.createVoxel(0.0, 0.0, 0.0, verySmall, 1, 1, 1, true); + endNodeTree.createVoxel(1.0, 0.0, 0.0, verySmall, 1, 1, 1, true); + endNodeTree.createVoxel(0.0, 1.0, 0.0, verySmall, 1, 1, 1, true); + endNodeTree.createVoxel(0.0, 0.0, 1.0, verySmall, 1, 1, 1, true); + endNodeTree.createVoxel(1.0, 1.0, 1.0, verySmall, 1, 1, 1, true); + endNodeTree.createVoxel(1.0, 1.0, 0.0, verySmall, 1, 1, 1, true); + endNodeTree.createVoxel(0.0, 1.0, 1.0, verySmall, 1, 1, 1, true); + endNodeTree.createVoxel(1.0, 0.0, 1.0, verySmall, 1, 1, 1, true); // Delete the voxel for the EndNode from the temporary tree, so we can // import our endNode content into it... @@ -141,7 +136,7 @@ int main(int argc, const char * argv[]) float x = endNodeDetails.x + endNodeDetails.s * 0.5; float y = endNodeDetails.y + endNodeDetails.s * 0.5; float z = endNodeDetails.z + endNodeDetails.s * 0.5; - float s = endNodeDetails.s * 0.015625; + float s = endNodeDetails.s * verySmall; rootSVO.createVoxel(x, y, z, s, 1, 1, 1, true);