Skip to content

Commit

Permalink
fix: update num_vertices after simplification
Browse files Browse the repository at this point in the history
  • Loading branch information
akhileshh committed Mar 1, 2023
1 parent 6c13ab7 commit 24d64f4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pychunkedgraph/meshing/meshgen.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ def simplify(cg, fragment, fragment_id, lod=None):
)
vertices, faces, _ = simplifier.getMesh()
vertices = vertices * scale

fragment["num_vertices"] = len(vertices)
fragment["vertices"] = vertices.flatten()
fragment["faces"] = faces.flatten()
return fragment
Expand Down

0 comments on commit 24d64f4

Please sign in to comment.