Format and lint
This commit is contained in:
parent
42ee2d4c51
commit
04a78e7bfe
75 changed files with 1290 additions and 719 deletions
|
|
@ -39,7 +39,9 @@ def compute_voronoi_regions(
|
|||
else:
|
||||
# Tiny jitter so Voronoi sees distinct points (0.01m per step)
|
||||
jittered = points[i].copy()
|
||||
angle = 2 * np.pi * jitter_idx / max(coord_counts[coord], jitter_idx + 1)
|
||||
angle = (
|
||||
2 * np.pi * jitter_idx / max(coord_counts[coord], jitter_idx + 1)
|
||||
)
|
||||
jittered[0] += 0.01 * np.cos(angle)
|
||||
jittered[1] += 0.01 * np.sin(angle)
|
||||
unique_pts.append(jittered)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue