# Moving randomly created points in Voronoi pattern

**URL:** <https://discourse.mcneel.com/t/moving-randomly-created-points-in-voronoi-pattern/142194>\
**Category:** Grasshopper Developer\
**Tags:** mac, populategeometry\
**Created:** [May 6, 2022, 9:00am UTC](https://discourse.mcneel.com/t/moving-randomly-created-points-in-voronoi-pattern/142194 "2022-05-06T09:00:23Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lidia\_Krinova](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/lidia_krinova/32/378023_2.png) [@Lidia\_Krinova](https://discourse.mcneel.com/u/Lidia_Krinova)\
**Post date:** [May 6, 2022, 9:00am UTC](https://discourse.mcneel.com/t/moving-randomly-created-points-in-voronoi-pattern/142194/1 "2022-05-06T09:00:23Z")

</div>

Is there a way to get access to the points randomly created by PopulateGeometry tool. I am creating a Voronoi patter with PopGeo and want to use something alternative to seed slider. Maybe there is a way to create points within closed curve without PopGeo? Thank you

---

<div class="post-metadata">

**Author:** ![ftzuk](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/ftzuk/32/689170_2.png) [@ftzuk](https://discourse.mcneel.com/u/ftzuk)\
**Post date:** [May 6, 2022, 12:39pm UTC](https://discourse.mcneel.com/t/moving-randomly-created-points-in-voronoi-pattern/142194/2 "2022-05-06T12:39:51Z")

</div>

The only output of that node is the points.

---

<div class="post-metadata">

**Author:** ![PeterFotiadis](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/peterfotiadis/32/472316_2.png) [@PeterFotiadis](https://discourse.mcneel.com/u/PeterFotiadis)\
**Post date:** [May 7, 2022, 5:43am UTC](https://discourse.mcneel.com/t/moving-randomly-created-points-in-voronoi-pattern/142194/3 "2022-05-07T05:43:05Z")

</div>

> [@Lidia\_Krinova](#):
>
> Maybe there is a way to create points within closed curve without PopGeo?

There’s warious ways to do pretty much anything. Since you post here I assume that you are familiar with coding. If is C# then eleborate more and I could provide some indicative solution(s) … including doing all that (rnd pts, vor cells etc etc) solely via code…

---

<div class="post-metadata">

**Author:** ![Amna\_Saeed](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/amna_saeed/32/632523_2.png) [@Amna\_Saeed](https://discourse.mcneel.com/u/Amna_Saeed)\
**Post date:** [November 25, 2024, 7:07pm UTC](https://discourse.mcneel.com/t/moving-randomly-created-points-in-voronoi-pattern/142194/4 "2024-11-25T19:07:32Z")

</div>

Hey! I have the same question. I hope you can still help.

---

<div class="post-metadata">

**Author:** ![PeterFotiadis](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/peterfotiadis/32/472316_2.png) [@PeterFotiadis](https://discourse.mcneel.com/u/PeterFotiadis)\
**Post date:** [November 26, 2024, 8:01am UTC](https://discourse.mcneel.com/t/moving-randomly-created-points-in-voronoi-pattern/142194/5 "2024-11-26T08:01:58Z")

</div>

I to 10 what is your C# level?

---

<div class="post-metadata">

**Author:** ![Amna\_Saeed](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/amna_saeed/32/632523_2.png) [@Amna\_Saeed](https://discourse.mcneel.com/u/Amna_Saeed)\
**Post date:** [November 26, 2024, 2:47pm UTC](https://discourse.mcneel.com/t/moving-randomly-created-points-in-voronoi-pattern/142194/6 "2024-11-26T14:47:04Z")

</div>

I am pretty new to grasshopper and need this for a university project so i haven’t gotten into the details due to the deadline. I have very little knowledge of coding

---

<div class="post-metadata">

**Author:** ![PeterFotiadis](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/peterfotiadis/32/472316_2.png) [@PeterFotiadis](https://discourse.mcneel.com/u/PeterFotiadis)\
**Post date:** [November 26, 2024, 6:40pm UTC](https://discourse.mcneel.com/t/moving-randomly-created-points-in-voronoi-pattern/142194/7 "2024-11-26T18:40:07Z")

</div>

Well … the bad news is that whatever solution I’ll provide it would be done solely via C# code … meaning that it would be **a black box** to you … meaning the obvious (impossible for you to change anything etc etc).

But If you insist describe EXPLICITLY what sort of stuff you want: **for instance** I have a List of BrepFaces and I want to spread rand pts inside or outside’m etc etc. Plus give a hint why the related GH native components are not suitable for you.

---

<div class="post-metadata">

**Author:** ![laurent\_delrieu](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/laurent_delrieu/32/601605_2.png) [@laurent\_delrieu](https://discourse.mcneel.com/u/laurent_delrieu)\
**Post date:** [November 26, 2024, 7:16pm UTC](https://discourse.mcneel.com/t/moving-randomly-created-points-in-voronoi-pattern/142194/8 "2024-11-26T19:16:40Z")

</div>

Hello  
there are many ways  
You can use Pop Geo and just take a part of the point generated,  
you can generate point using Random component and then just take the one that are inside …  
Your question is very open so it is hard to help you well if you don’t explain your purpose.

---

<div class="post-metadata">

**Author:** ![Amna\_Saeed](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/amna_saeed/32/632523_2.png) [@Amna\_Saeed](https://discourse.mcneel.com/u/Amna_Saeed)\
**Post date:** [November 27, 2024, 6:13pm UTC](https://discourse.mcneel.com/t/moving-randomly-created-points-in-voronoi-pattern/142194/9 "2024-11-27T18:13:30Z")

</div>

What I’m trying to do is change the positions of the points in the voronoi so that i can get at least the x axis as 90° in them.

 ![f1d7f773572318f2e2a4c8a0c8034c77](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/c/f/0/cf07104350e448fcb905a7516dfbd3f655354154.jpeg)  
At least one of each cell’s sides being orthogonal for it to be habitable.  
It’s very similar to what’s happening in the image. (Credits to Vertical Village: A Sustainable Way of Village-Style Living / Yushang Zhang, Rajiv Sewtahal, Riemer Postma & Qianqian Cai)

---

<div class="post-metadata">

**Author:** ![jsb.walker](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/jsb.walker/32/496877_2.png) [@jsb.walker](https://discourse.mcneel.com/u/jsb.walker)\
**Post date:** [November 27, 2024, 7:05pm UTC](https://discourse.mcneel.com/t/moving-randomly-created-points-in-voronoi-pattern/142194/10 "2024-11-27T19:05:49Z")

</div>

So it looks like what you actually need is a transform that makes a random set of points semi-orthogonal with their closest neighbours. Or even a method of randomly generating points within a volume that already have that property.

---

<div class="post-metadata">

**Author:** ![laurent\_delrieu](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/laurent_delrieu/32/601605_2.png) [@laurent\_delrieu](https://discourse.mcneel.com/u/laurent_delrieu)\
**Post date:** [November 27, 2024, 8:19pm UTC](https://discourse.mcneel.com/t/moving-randomly-created-points-in-voronoi-pattern/142194/12 "2024-11-27T20:19:28Z")

</div>

You can use

 ![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/7/3/f/73f27518282ac5034feacbe1180a31a2f5319b8c.png)  
If you use some Neighbour points in the same plane as the Point (~center) this could do the job

---

<div class="post-metadata">

**Author:** ![ondrej](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/ondrej/32/569929_2.png) [@ondrej](https://discourse.mcneel.com/u/ondrej)\
**Post date:** [December 6, 2024, 1:31pm UTC](https://discourse.mcneel.com/t/moving-randomly-created-points-in-voronoi-pattern/142194/13 "2024-12-06T13:31:45Z")

</div>

What this image already illustrates well, is that a plane separating two voronoi cells is always perpendicular to the line connecting the pair of points used to create these cells. Therefore, if you want to generate cells with faces alligned to XYZ axes, you need to make sure that the points used to generate the cells are alligned with these axes as well.

I suggest to start with regular orthogonal grid of points. Then you can eg. randomly remove some of them to introduce the randomness in the pattern.

See this file: [orthogonal\_voronoi\_cells.gh](https://discourse.mcneel.com/uploads/short-url/5UkngXKnH0ejwnOLtRAB4HE11uD.gh) (15.3 KB)

 ![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/b/c/1/bc1c75a5c71602a2dd031750e589582316f2279a.png)  
 ![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/b/7/a/b7abac658e57813dd25547f86a62e6954fa1774d.png)
