Skip to content

Commit

Permalink
Fix to avoid misformed Voronoi cells in refined meshes
Browse files Browse the repository at this point in the history
  • Loading branch information
jtecklenburg committed Mar 22, 2024
1 parent b5ab921 commit df9fb51
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions voromesh/voronoi/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ def voronoi_bound(points, boundary):
ymin = np.min(points[:, 1])
ymax = np.max(points[:, 1])

dx = 1000*(xmax - xmin)
dy = 1000*(ymax - ymin)
dx = 50*(xmax - xmin)
dy = 50*(ymax - ymin)

xmin = xmin - dx
xmax = xmax + dx
Expand Down

0 comments on commit df9fb51

Please sign in to comment.