Skip to content

Commit

Permalink
Merge pull request #5187 from nortikin/fix_5186_Voronoi_on_Mesh_Glitc…
Browse files Browse the repository at this point in the history
…hes_on_Some_Faces

fix 5186 Voronoi on Mesh Glitches on Some Faces
  • Loading branch information
satabol authored Jan 14, 2025
2 parents 66fed7f + 29e0987 commit d74131a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/voronoi3d.py
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ def cut_cell(start_mesh, sites_delaunay_params, site_idx, spacing, center_of_mas
# else extend mask by false and do not use sites that are not in the mask
mask = mask[:]+[False]*(len(sites)-len(mask) if len(mask)<=len(sites) else 0)

start_mesh = bmesh_from_pydata(verts, [], faces, normal_update=False)
start_mesh = bmesh_from_pydata(verts, [], faces, normal_update=True)
for site_idx in range(len(sites)):
if(mask[site_idx]):
cell = cut_cell(start_mesh, sites_delaunay_params, site_idx, spacing[site_idx], center_of_mass, bbox_aligned)
Expand Down

0 comments on commit d74131a

Please sign in to comment.