Compact circle packing on complex surface

Ah yes, I think I see the problem. The script assumes a single boundary and tries to keep all naked vertices on that boundary curve, so when given multiple curves, it is pulling points from each mesh boundary curve to both target boundary curves.
I’ll modify it to allow multiple boundaries.

2 Likes

Here’s a version that allows multiple boundary curves as input


compactcircles_multiboundary.gh (18.9 KB)

Note that while there always exists a compact circle packing for a given connectivity graph within a single boundary curve, this is no longer true for multiple boundaries, so the circles generally cannot all be perfectly tangent.

4 Likes

Works great !


Many thanks !

1 Like

yummy, thanks a lot!