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 Feb 28, 2023
1 parent 7714338 commit 1084360
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 1084360

Please sign in to comment.