Skip to content

Commit

Permalink
swap deprecated G.clusters() for G.connected_components()
Browse files Browse the repository at this point in the history
  • Loading branch information
schlegelp committed Aug 6, 2024
1 parent 9a97a65 commit ea2d32a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion skeletor/skeletonize/tangent_ball.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ def by_tangent_ball(mesh):
directed=False)

# Make sure that every connected component has at least one valid target
for cc in G.clusters():
for cc in G.connected_components():
if not np.isin(cc, original_ind[~inv]).any():
inv[cc[0]] = False
centers[cc[0]] = mesh.vertices[cc[0]]
Expand Down

0 comments on commit ea2d32a

Please sign in to comment.