Skip to content

Commit d6a4b3b

Browse files
committed
fix: remove additional simplification, rename function
1 parent 5872768 commit d6a4b3b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pychunkedgraph/meshing/meshgen.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def simplify(cg, fragment, fragment_id, lod=None):
7676
return fragment
7777

7878

79-
def repeat_simplification(cg, fragment, fragment_id, fragment_parent_id):
79+
def simplify_skipped_layers(cg, fragment, fragment_id, fragment_parent_id):
8080
"""
8181
A node can have children at any layer below it due to skip connections.
8282
This can lead to parts of mesh having a higher level of detail.
@@ -90,6 +90,7 @@ def repeat_simplification(cg, fragment, fragment_id, fragment_parent_id):
9090
parent_layer = cg.get_chunk_layer(fragment_parent_id)
9191
layer = cg.get_chunk_layer(fragment_id)
9292

93+
layer += 1
9394
while layer < parent_layer:
9495
fragment = simplify(cg, fragment, fragment_id, lod=layer)
9596
layer += 1

0 commit comments

Comments
 (0)