How to make Voronoi nodes falls on a closed boundary curve

Hi there,

I’m trying to generate 2D cells within a curve outline. I want to make sure that the cells next to the curve have their nodes land on the curve, not their edges. Is it possible to do that? Please help me out. Thank you.

Tina

Voronoi diagram.3dm (42.0 KB) unnamed.gh (8.7 KB)

Voronoi_diagram_re.gh (6.1 KB)

like this?

1 Like

That’s perfect! Thank you.