# HELP- How to connect random points each other with lines

**URL:** <https://discourse.mcneel.com/t/help-how-to-connect-random-points-each-other-with-lines/69743>\
**Category:** Grasshopper\
**Created:** [August 29, 2018, 6:42pm UTC](https://discourse.mcneel.com/t/help-how-to-connect-random-points-each-other-with-lines/69743 "2018-08-29T18:42:48Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![javiersanchezcarrizo](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/javiersanchezcarrizo/32/305418_2.png) [@javiersanchezcarrizo](https://discourse.mcneel.com/u/javiersanchezcarrizo)\
**Post date:** [August 29, 2018, 6:42pm UTC](https://discourse.mcneel.com/t/help-how-to-connect-random-points-each-other-with-lines/69743/1 "2018-08-29T18:42:48Z")

</div>

Help, I am learning to use Grasshopper, and it has been difficult to get a tutorial, where I can join random points to each other.  
I’ve only got examples in curves but it’s not what I need.

Here is an example of what I want:

 ![Implementation3](https://global.discourse-cdn.com/mcneel/original/3X/b/d/bdcd87fe6d5fda8d0fc15c6740cbd2c79c78ec7d.jpeg)

---

<div class="post-metadata">

**Author:** ![Rickson](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/rickson/32/690545_2.png) [@Rickson](https://discourse.mcneel.com/u/Rickson)\
**Post date:** [August 29, 2018, 7:04pm UTC](https://discourse.mcneel.com/t/help-how-to-connect-random-points-each-other-with-lines/69743/2 "2018-08-29T19:04:54Z")

</div>

I think you are looking for the topology of the network.

> **[Sandbox Topology](https://www.food4rhino.com/en/app/sandbox-topology)**
>
> Sandbox Topology provides tools for the topological analysis and filtering of line, polyline, mesh and brep networks.

if its something simpler you can use these components to group or find nearest points to connect.

 ![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/3X/8/b/8b0a91f29d25c19c09fc2bf885f85282d157bf32.png)

---

<div class="post-metadata">

**Author:** ![javiersanchezcarrizo](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/javiersanchezcarrizo/32/305418_2.png) [@javiersanchezcarrizo](https://discourse.mcneel.com/u/javiersanchezcarrizo)\
**Post date:** [August 29, 2018, 7:25pm UTC](https://discourse.mcneel.com/t/help-how-to-connect-random-points-each-other-with-lines/69743/3 "2018-08-29T19:25:33Z")

</div>

thanks!!  
I’ll take a look

---

<div class="post-metadata">

**Author:** ![Baris](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/baris/32/759711_2.png) [@Baris](https://discourse.mcneel.com/u/Baris)\
**Post date:** [August 29, 2018, 7:27pm UTC](https://discourse.mcneel.com/t/help-how-to-connect-random-points-each-other-with-lines/69743/4 "2018-08-29T19:27:30Z")

</div>

Maybe it’s enough to shift the point list and connect it with the list before the shift

---

<div class="post-metadata">

**Author:** ![Rickson](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/rickson/32/690545_2.png) [@Rickson](https://discourse.mcneel.com/u/Rickson)\
**Post date:** [August 29, 2018, 7:31pm UTC](https://discourse.mcneel.com/t/help-how-to-connect-random-points-each-other-with-lines/69743/5 "2018-08-29T19:31:49Z")

</div>

This plugin has network topology as well.

> **[Heteroptera](https://www.food4rhino.com/en/app/heteroptera)**
>
> Heteroptera is an Always WIP addon, directed at Uncertainty, Network-Topology, Vector & Fields, DataFlow

[https://static.food4rhino.com/s3fs-public/styles/large/public/users-files/amin-bahrami/app/networks.jpg?itok=Mrw9vk\_u](https://static.food4rhino.com/s3fs-public/styles/large/public/users-files/amin-bahrami/app/networks.jpg?itok=Mrw9vk_u)

---

<div class="post-metadata">

**Author:** ![Michael\_Pryor](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/michael_pryor/32/489117_2.png) [@Michael\_Pryor](https://discourse.mcneel.com/u/Michael_Pryor)\
**Post date:** [August 29, 2018, 7:35pm UTC](https://discourse.mcneel.com/t/help-how-to-connect-random-points-each-other-with-lines/69743/6 "2018-08-29T19:35:32Z")

</div>

You are looking for Delaunay Edges (automatic method) or Proximity2D (more customizable method where you can define max/min search distances and number of neighbors to find.)

 ![Capture](https://global.discourse-cdn.com/mcneel/original/3X/a/4/a4d570cd7c7c386bf6b09f1e0ca989938885ec9a.png)  
[connect.gh](https://global.discourse-cdn.com/mcneel/uploads/default/original/3X/5/f/5f9e470092a17c2d23b27b8478f5ee65dbf7974e.gh) (5.9 KB)

---

<div class="post-metadata">

**Author:** ![javiersanchezcarrizo](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/javiersanchezcarrizo/32/305418_2.png) [@javiersanchezcarrizo](https://discourse.mcneel.com/u/javiersanchezcarrizo)\
**Post date:** [August 29, 2018, 7:37pm UTC](https://discourse.mcneel.com/t/help-how-to-connect-random-points-each-other-with-lines/69743/7 "2018-08-29T19:37:24Z")

</div>

> [@Baris](#):
>
> Maybe it’s enough to shift the point list and connect it with the list before the shift

thanksss for your time!! i will try this one too

---

<div class="post-metadata">

**Author:** ![javiersanchezcarrizo](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/javiersanchezcarrizo/32/305418_2.png) [@javiersanchezcarrizo](https://discourse.mcneel.com/u/javiersanchezcarrizo)\
**Post date:** [August 29, 2018, 7:39pm UTC](https://discourse.mcneel.com/t/help-how-to-connect-random-points-each-other-with-lines/69743/8 "2018-08-29T19:39:19Z")

</div>

thanks my friend 🤙🤙

It seems that this is what I was looking for
