Skip to content

Commit

Permalink
validate verts
Browse files Browse the repository at this point in the history
  • Loading branch information
jfranmatheu committed Jan 24, 2025
1 parent fa873c2 commit 5c8c981
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Binary file modified retopoflow/cy/rfmesh_visibility.cp311-win_amd64.pyd
Binary file not shown.
7 changes: 5 additions & 2 deletions retopoflow/cy/rfmesh_visibility.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ cpdef object compute_visible_vertices(

# Create result set directly
cdef object result_set = set()
cdef object vert = None
cdef list verts = verts_list
cdef object vert_wrapper = rfvert_class # Store the class

Expand Down Expand Up @@ -178,6 +179,8 @@ cpdef object compute_visible_vertices(
# Fill the set with wrapped visible vertices
for i in range(num_vertices):
if visible[i]:
PySet_Add(result_set, vert_wrapper(verts[i]))

vert = verts[i]
if vert.is_valid and not vert.hide:
PySet_Add(result_set, vert_wrapper(vert))

return result_set

0 comments on commit 5c8c981

Please sign in to comment.