Skip to content

Commit

Permalink
Update mesh.py
Browse files Browse the repository at this point in the history
  • Loading branch information
romanarust committed Nov 18, 2024
1 parent 44c7d8c commit b02bde9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/compas/datastructures/mesh/mesh.py
Original file line number Diff line number Diff line change
Expand Up @@ -2932,7 +2932,7 @@ def quads_to_triangles(self, check_angles=False):
del self.facedata[face]

# only reason this is here and not on the halfedge is because of the spatial tree
def unify_cycles(self, root=None, nmax=None, radius=None):
def unify_cycles(self, root=None, nmax=None, max_distance=None):
"""Unify the cycles of the mesh.
Parameters
Expand Down Expand Up @@ -2960,7 +2960,7 @@ def unify_cycles(self, root=None, nmax=None, radius=None):
vertices = self.vertices_attributes("xyz")
faces = [[vertex_index[vertex] for vertex in self.face_vertices(face)] for face in self.faces()]

unify_cycles(vertices, faces, root=root, nmax=nmax, radius=radius)
unify_cycles(vertices, faces, root=root, nmax=nmax, max_distance=max_distance)

self.halfedge = {key: {} for key in self.vertices()}
for index, vertices in enumerate(faces):
Expand Down

0 comments on commit b02bde9

Please sign in to comment.