Skip to content

Commit

Permalink
Update src/compas/datastructures/mesh/mesh.py
Browse files Browse the repository at this point in the history
Co-authored-by: Gonzalo Casas <casas@arch.ethz.ch>
  • Loading branch information
tomvanmele and gonzalocasas committed Apr 22, 2024
1 parent c9eb56d commit 8b70674
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/compas/datastructures/mesh/mesh.py
Original file line number Diff line number Diff line change
Expand Up @@ -2953,8 +2953,11 @@ def unify_cycles(self, root=None):
The mesh is modified in place.
"""
vertex_index = {vertex: index for index, vertex in enumerate(self.vertices())}
index_vertex = {index: vertex for index, vertex in enumerate(self.vertices())}
vertex_index = {}
index_vertex = {}
for index, vertex in enumerate(self.vertices()):
vertex_index[vertex] = index
index_vertex[index] = vertex
index_face = {index: face for index, face in enumerate(self.faces())}

vertices = self.vertices_attributes("xyz")
Expand Down

0 comments on commit 8b70674

Please sign in to comment.