Skip to content

Commit

Permalink
fix: no mesh edge case
Browse files Browse the repository at this point in the history
  • Loading branch information
akhileshh committed Apr 19, 2023
1 parent b10ecb4 commit 7a93c77
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions pychunkedgraph/meshing/manifest/multiscale.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,15 +104,16 @@ def build_octree(
octree[offset + 4] = end_empty

octree_node_ids[row_counter] = current_node
if children.size == 1:
# map to child fragment
octree_fragments[row_counter] = mesh_fragments[children[0]]
else:
try:

try:
if children.size == 1:
# map to child fragment
octree_fragments[row_counter] = mesh_fragments[children[0]]
else:
octree_fragments[row_counter] = mesh_fragments[current_node]
except KeyError:
# mark node empty
octree[offset + 4] |= 1 << 31
except KeyError:
# no mesh, mark node empty
octree[offset + 4] |= 1 << 31

for child in children:
que.append((child, current_depth + 1))
Expand Down

0 comments on commit 7a93c77

Please sign in to comment.