# Circle Packing in Enclosed Boundary - Unwanted Overlap

**URL:** <https://discourse.mcneel.com/t/circle-packing-in-enclosed-boundary-unwanted-overlap/80292>\
**Category:** Grasshopper\
**Created:** [March 14, 2019, 3:22pm UTC](https://discourse.mcneel.com/t/circle-packing-in-enclosed-boundary-unwanted-overlap/80292 "2019-03-14T15:22:52Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![DanielPiker](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/danielpiker/32/666337_2.png) [@DanielPiker](https://discourse.mcneel.com/u/DanielPiker)\
**Post date:** [March 14, 2019, 7:02pm UTC](https://discourse.mcneel.com/t/circle-packing-in-enclosed-boundary-unwanted-overlap/80292/6 "2019-03-14T19:02:15Z")

</div>

![image](https://global.discourse-cdn.com/mcneel/original/3X/5/6/56180821e869b007190ff4b36a325c9f78ea511f.png)  
Here’s a multi-stage approach that does a sphere collision based circle packing first, then gets the connectivity from the Delaunay and optimises that for a true tangency compact packing.  
I’ll have a think about an easier way to do this though, and with better control over radii.  
[Enclosed Boundary Circle Packing2.gh](https://global.discourse-cdn.com/mcneel/uploads/default/original/3X/c/2/c2afd805ff32f0d077955e3a2eafc7b5261a51c1.gh) (1.1 MB)

Is it for a phone case?

---

_[View the full topic](https://discourse.mcneel.com/t/circle-packing-in-enclosed-boundary-unwanted-overlap/80292)._
