A decent ways towards getting the octree built. Small snag in the way fully valid or invalid non-leafs are handled

This commit is contained in:
MitchellHansen
2016-12-14 01:22:52 -08:00
parent b844744a97
commit c6ac333232
3 changed files with 126 additions and 90 deletions

View File

@@ -5,6 +5,7 @@
#include <fstream>
#include <sstream>
#include "Vector4.hpp"
#include <bitset>
const double PI = 3.141592653589793238463;
const float PI_F = 3.14159265358979f;
@@ -170,3 +171,13 @@ inline std::string read_file(std::string file_name){
input_file.close();
return buf.str();
}
inline void PrettyPrintUINT64(uint64_t i) {
std::cout << "[" << std::bitset<15>(i) << "]";
std::cout << "[" << std::bitset<1>(i >> 15) << "]";
std::cout << "[" << std::bitset<8>(i >> 16) << "]";
std::cout << "[" << std::bitset<8>(i >> 24) << "]";
std::cout << "[" << std::bitset<32>(i >> 32) << "]" << std::endl;
}