Moved some code to the right place.
This commit is contained in:
parent
5a9224bdae
commit
ec8ba98b56
1 changed files with 4 additions and 4 deletions
|
@ -12,18 +12,18 @@ Thanks to this "compression", there are no zero values on places where there is
|
||||||
|
|
||||||
|
|
||||||
class Node:
|
class Node:
|
||||||
def __init__(self):
|
def __init__(self, data=None):
|
||||||
self.children = [None] * 8
|
self.children = [None] * 8
|
||||||
self.leaf = True
|
self.leaf = True
|
||||||
|
|
||||||
|
self.data = data
|
||||||
|
|
||||||
|
|
||||||
class SparseVoxelOctree:
|
class SparseVoxelOctree:
|
||||||
def __init__(self, data=None):
|
def __init__(self):
|
||||||
self.root_node = Node()
|
self.root_node = Node()
|
||||||
self.origin = (0, 0, 0)
|
self.origin = (0, 0, 0)
|
||||||
|
|
||||||
self.data = data
|
|
||||||
|
|
||||||
def _get_child_index(self, x, y, z, size):
|
def _get_child_index(self, x, y, z, size):
|
||||||
index = 0
|
index = 0
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue