# Broken Voronoi Cells

**URL:** <https://forum.dynamobim.com/t/broken-voronoi-cells/11179>\
**Category:** Geometry\
**Created:** [April 20, 2017, 6:15pm UTC](https://forum.dynamobim.com/t/broken-voronoi-cells/11179 "2017-04-20T18:15:51Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![aariano](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/aariano/32/18559_2.png) [@aariano](https://forum.dynamobim.com/u/aariano)\
**Post date:** [April 20, 2017, 6:15pm UTC](https://forum.dynamobim.com/t/broken-voronoi-cells/11179/1 "2017-04-20T18:15:51Z")

</div>

Hi,

I’m trying to create a voronoi pattern, but the cells end up disconnected and incomplete. See screenshot below. Basically, i am trying to create a 2D voronoi pattern that gets denser as it approaches an attractor curve. Please let me know if you see what the issue is here. Thanks,

![](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/c/2/c200a250d32999aa23d0ca9c1df06f2efdedc111.jpg)

---

<div class="post-metadata">

**Author:** ![Greg\_McDowell](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/greg_mcdowell/32/21011_2.png) [@Greg\_McDowell](https://forum.dynamobim.com/u/Greg_McDowell)\
**Post date:** [April 20, 2017, 6:31pm UTC](https://forum.dynamobim.com/t/broken-voronoi-cells/11179/2 "2017-04-20T18:31:02Z")

</div>

That’s an interesting problem. I can’t tell without digging deeper but are you generating the random points towards the attractor curve the way you want (with the appropriate level of densities for the design intent)? Can you upload the DYN and an example RVT file?

---

<div class="post-metadata">

**Author:** ![aariano](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/aariano/32/18559_2.png) [@aariano](https://forum.dynamobim.com/u/aariano)\
**Post date:** [April 20, 2017, 6:56pm UTC](https://forum.dynamobim.com/t/broken-voronoi-cells/11179/3 "2017-04-20T18:56:42Z")

</div>

Hi,

I cant upload files because it says I’m a new user. However, I have always had trouble with Dynamo’s Voronoi module. Every time I use it, no matter the density of UVs or simplicity of the algorithm, I always get disconnected / incomplete cells. Is this a common issue with Dynamo? Am I somehow using the module incorrectly?

---

<div class="post-metadata">

**Author:** ![Greg\_McDowell](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/greg_mcdowell/32/21011_2.png) [@Greg\_McDowell](https://forum.dynamobim.com/u/Greg_McDowell)\
**Post date:** [April 20, 2017, 7:38pm UTC](https://forum.dynamobim.com/t/broken-voronoi-cells/11179/4 "2017-04-20T19:38:18Z")

</div>

I think I remember something about Dynamo not displaying everything if the geometry was too large (but I might be mixing memories). Have you tried it with a lower density? It might be doing what it’s supposed to and just not showing you. (reaching a bit here)

until you have upload rights, you could use Dropbox or similar

---

<div class="post-metadata">

**Author:** ![viktor\_kuzev](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/viktor_kuzev/32/48254_2.png) [@viktor\_kuzev](https://forum.dynamobim.com/u/viktor_kuzev)\
**Post date:** [April 21, 2017, 7:17am UTC](https://forum.dynamobim.com/t/broken-voronoi-cells/11179/5 "2017-04-21T07:17:27Z")

</div>

Hi! You can upload the file to google drive or somewhere else and share the link here.  
You can also check if this is a visibility problem if you take the lines to Revit (but all the lines should be longer than 1mm) or you can trace the lines with points (Point at parameter) to see if points are placed on the empty spots.

---

<div class="post-metadata">

**Author:** ![aariano](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/aariano/32/18559_2.png) [@aariano](https://forum.dynamobim.com/u/aariano)\
**Post date:** [April 21, 2017, 2:54pm UTC](https://forum.dynamobim.com/t/broken-voronoi-cells/11179/6 "2017-04-21T14:54:07Z")

</div>

Hi,

You can download the dynamo file and corrosponding Revit family here:  
[https://drive.google.com/open?id=0B7dBxJ8qZf9oZmoyRFljSkhEazQ](https://drive.google.com/open?id=0B7dBxJ8qZf9oZmoyRFljSkhEazQ)

You can adjust the density by reducing the amount of random points created. However, no matter the density, there are always incomplete voronoi cells.

Any suggestions would be appreciated. Thanks,

---

<div class="post-metadata">

**Author:** ![viktor\_kuzev](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/viktor_kuzev/32/48254_2.png) [@viktor\_kuzev](https://forum.dynamobim.com/u/viktor_kuzev)\
**Post date:** [April 24, 2017, 9:45am UTC](https://forum.dynamobim.com/t/broken-voronoi-cells/11179/7 "2017-04-24T09:45:21Z")

</div>

I think it’s a matter of scale.

 ![](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/4/c/4cccdbfb88728d29b7edd9f866a1391106d51cc5.PNG)  
I noticed that the curve length is relatively small so I thought maybe the missing lines are too short to be calculated and I scaled the curve in revit x10.  
 ![](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/d/3/d364412a32e725e979107ddda47026f3feef54e4.PNG)  
While it looks better like this there are still some missing lines, and it looks even more as they are too short to compute or something:  
 ![](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/a/7/a7461a5aea1ee1848ece5d494d79bc74479b2d87.png)

P.S. Pretty interesting results messing up with this definition:

 ![](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/3/e/3ea4c14826dc00c8ff63cd947b03f54cabf1e123.png)

---

<div class="post-metadata">

**Author:** ![jostein\_olsen](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jostein_olsen/32/8570_2.png) [@jostein\_olsen](https://forum.dynamobim.com/u/jostein_olsen)\
**Post date:** [April 24, 2017, 9:47am UTC](https://forum.dynamobim.com/t/broken-voronoi-cells/11179/8 "2017-04-24T09:47:42Z")

</div>

Has anyone tried this in Dynamo 1.3 with the scaling options implemented?

---

<div class="post-metadata">

**Author:** ![viktor\_kuzev](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/viktor_kuzev/32/48254_2.png) [@viktor\_kuzev](https://forum.dynamobim.com/u/viktor_kuzev)\
**Post date:** [April 24, 2017, 9:49am UTC](https://forum.dynamobim.com/t/broken-voronoi-cells/11179/9 "2017-04-24T09:49:25Z")

</div>

I also thought about this, but I still don’t have 1,3 on this computer.

---

<div class="post-metadata">

**Author:** ![Lynn\_Kim](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/lynn_kim/32/93661_2.png) [@Lynn\_Kim](https://forum.dynamobim.com/u/Lynn_Kim)\
**Post date:** [July 17, 2020, 11:37pm UTC](https://forum.dynamobim.com/t/broken-voronoi-cells/11179/10 "2020-07-17T23:37:29Z")

</div>

> [@Voronoi Posting #2 \[Broken Cell / Short Line\]](https://forum.dynamobim.com/t/voronoi-posting-2-broken-cell-short-line/53090):
>
> First, why does Dynamo Voronoi have broken cell? Clearly, The reason is Scale. How to fix? I think it is better to have a range of 100 or more. Look carefully at the pictures below. [VoroBrokenCell(10)] [VoroBrokenCell(100)] [https://youtu.be/Gnk880uGSYM](https://youtu.be/Gnk880uGSYM) related post: [https://forum.dynamobim.com/t/broken-voronoi-cells/11179](https://forum.dynamobim.com/t/broken-voronoi-cells/11179) Second, you can make the Voronoi short curves longer. Voronoi naturally has a short line. But It’s possible if you want. Even if it wasn’t a short line correctio…
