It seems that the octree has been built correctly. Going to use bitset to count children, not sure how I'm going to determine what quadrants they lie in. Perhaps masks?
This commit is contained in:
@@ -29,6 +29,10 @@ struct XYZHasher {
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
class Octree {
|
||||
public:
|
||||
Octree() {
|
||||
@@ -89,8 +93,11 @@ public:
|
||||
|
||||
uint64_t index = cp_to_index(head);
|
||||
|
||||
uint64_t child = block_stack.front()[index];
|
||||
uint64_t child1 = block_stack.front()[index];
|
||||
uint64_t child2 = block_stack.front()[index+1];
|
||||
|
||||
std::bitset<64> t(index);
|
||||
auto val = t.count();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user