# Line connecting peripheral points

**URL:** <https://forum.dynamobim.com/t/line-connecting-peripheral-points/450>\
**Category:** Geometry\
**Created:** [July 16, 2014, 1:34pm UTC](https://forum.dynamobim.com/t/line-connecting-peripheral-points/450 "2014-07-16T13:34:48Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vikram\_Subbaiah](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/vikram_subbaiah/32/50797_2.png) [@Vikram\_Subbaiah](https://forum.dynamobim.com/u/Vikram_Subbaiah)\
**Post date:** [July 16, 2014, 1:34pm UTC](https://forum.dynamobim.com/t/line-connecting-peripheral-points/450/1 "2014-07-16T13:34:48Z")

</div>

Is there a node (or code) that would create a line connecting the peripheral points in an irregular cluster of points?

&nbsp;

\<span style=“line-height: 1.5em;”\>Thanks.\</span\>

Regards,

Vikram Subbaiah

&nbsp;

---

<div class="post-metadata">

**Author:** ![Andreas\_Dieckmann](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/andreas_dieckmann/32/365_2.png) [@Andreas\_Dieckmann](https://forum.dynamobim.com/u/Andreas_Dieckmann)\
**Post date:** [July 16, 2014, 2:36pm UTC](https://forum.dynamobim.com/t/line-connecting-peripheral-points/450/2 "2014-07-16T14:36:39Z")

</div>

If all points are in the same plane (or on the same surface) you could use my Convex Hull 2D node. Haven’t tested it in 0.7.1 yet, though.

---

<div class="post-metadata">

**Author:** ![Vikram\_Subbaiah](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/vikram_subbaiah/32/50797_2.png) [@Vikram\_Subbaiah](https://forum.dynamobim.com/u/Vikram_Subbaiah)\
**Post date:** [July 17, 2014, 8:50am UTC](https://forum.dynamobim.com/t/line-connecting-peripheral-points/450/3 "2014-07-17T08:50:02Z")

</div>

Thanks for the suggestion Andreas.

However, it didn’t work as the Convex Hull node says the points are too orderly - _“Singular Data Input(ie. Trying to triangulate data that contains a regular lattice of points. Introducing some noise to the data might resolve the issue)”_

I’m trying to trace the irregular boundary of the regular lattice of points.

Regards,

Vikram Subbaiah

---

<div class="post-metadata">

**Author:** ![Andreas\_Dieckmann](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/andreas_dieckmann/32/365_2.png) [@Andreas\_Dieckmann](https://forum.dynamobim.com/u/Andreas_Dieckmann)\
**Post date:** [July 17, 2014, 9:21am UTC](https://forum.dynamobim.com/t/line-connecting-peripheral-points/450/4 "2014-07-17T09:21:06Z")

</div>

Sounds like you’re using the built-in Convex Hull **3D** node. Try the Convex Hull **2D** node from the package manager.

Currently it’s impossible to add images to posts on the forum, but have a look at this image - I think that’s what you’re looking for, right?

[https://raw.githubusercontent.com/CAAD-RWTH/DynamoSamples/master/package\_samples/Convex%20Hull%202D/ConvexHull2D\_Result.png](https://raw.githubusercontent.com/CAAD-RWTH/DynamoSamples/master/package_samples/Convex%20Hull%202D/ConvexHull2D_Result.png)

&nbsp;

---

<div class="post-metadata">

**Author:** ![Vikram\_Subbaiah](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/vikram_subbaiah/32/50797_2.png) [@Vikram\_Subbaiah](https://forum.dynamobim.com/u/Vikram_Subbaiah)\
**Post date:** [July 18, 2014, 8:25am UTC](https://forum.dynamobim.com/t/line-connecting-peripheral-points/450/5 "2014-07-18T08:25:22Z")

</div>

Andreas,

Tried the **_Convex Hull 2D_** package, but it doesn’t seem to work.

Thanks.

Regards,

Vikram Subbaiah

---

<div class="post-metadata">

**Author:** ![Andreas\_Dieckmann](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/andreas_dieckmann/32/365_2.png) [@Andreas\_Dieckmann](https://forum.dynamobim.com/u/Andreas_Dieckmann)\
**Post date:** [July 18, 2014, 10:34am UTC](https://forum.dynamobim.com/t/line-connecting-peripheral-points/450/6 "2014-07-18T10:34:35Z")

</div>

I’ll see if I can cook up a 0.7.1 compatible version.

---

<div class="post-metadata">

**Author:** ![Andreas\_Dieckmann](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/andreas_dieckmann/32/365_2.png) [@Andreas\_Dieckmann](https://forum.dynamobim.com/u/Andreas_Dieckmann)\
**Post date:** [July 18, 2014, 12:03pm UTC](https://forum.dynamobim.com/t/line-connecting-peripheral-points/450/7 "2014-07-18T12:03:58Z")

</div>

There’s a 0.7.1 compatible version in the package manager now. Try that and let me know if it works for you.

---

<div class="post-metadata">

**Author:** ![Vikram\_Subbaiah](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/vikram_subbaiah/32/50797_2.png) [@Vikram\_Subbaiah](https://forum.dynamobim.com/u/Vikram_Subbaiah)\
**Post date:** [July 18, 2014, 8:12pm UTC](https://forum.dynamobim.com/t/line-connecting-peripheral-points/450/8 "2014-07-18T20:12:23Z")

</div>

Andreas,

There aren’t any warnings or errors, but no geometry is being generated.

I’m working with a regular grid, with an irregular boundary. Convex Hull, Delauny and Vonoroi do not seem to work.

Thanks.

Regards,

Vikram Subbaiah

---

<div class="post-metadata">

**Author:** ![Andreas\_Dieckmann](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/andreas_dieckmann/32/365_2.png) [@Andreas\_Dieckmann](https://forum.dynamobim.com/u/Andreas_Dieckmann)\
**Post date:** [July 18, 2014, 11:18pm UTC](https://forum.dynamobim.com/t/line-connecting-peripheral-points/450/9 "2014-07-18T23:18:39Z")

</div>

Could you post a file here?

---

<div class="post-metadata">

**Author:** ![Vikram\_Subbaiah](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/vikram_subbaiah/32/50797_2.png) [@Vikram\_Subbaiah](https://forum.dynamobim.com/u/Vikram_Subbaiah)\
**Post date:** [July 19, 2014, 4:04am UTC](https://forum.dynamobim.com/t/line-connecting-peripheral-points/450/10 "2014-07-19T04:04:20Z")

</div>

Andreas,

Unable to attach here.

However, below is one set of points, which when pasted in the code block and the output fed into work with …Convex Hull, Delauny, Vonoroi, Nurbs Surface, does not work.

Thanks for looking into this.

Regards,

Vikram Subbaiah

\<span style=“text-decoration: underline;”\>Code:\</span\>

{Point.ByCoordinates(-427.850,167.714,2.100),

Point.ByCoordinates(-427.850,172.910,2.100),

Point.ByCoordinates(-432.576,157.317,2.100),

Point.ByCoordinates(-432.576,162.514,2.100),

Point.ByCoordinates(-432.576,167.710,2.100),

Point.ByCoordinates(-432.576,172.906,2.100),

Point.ByCoordinates(-432.576,178.103,2.100),

Point.ByCoordinates(-437.301,146.921,2.100),

Point.ByCoordinates(-437.301,152.117,2.100),

Point.ByCoordinates(-437.301,157.314,2.100),

Point.ByCoordinates(-437.301,162.510,2.100),

Point.ByCoordinates(-437.301,167.706,2.100),

Point.ByCoordinates(-437.301,172.903,2.100),

Point.ByCoordinates(-437.301,178.099,2.100),

Point.ByCoordinates(-437.301,183.295,2.100),

Point.ByCoordinates(-442.027,141.721,2.100),

Point.ByCoordinates(-442.027,146.917,2.100),

Point.ByCoordinates(-442.027,152.114,2.100),

Point.ByCoordinates(-442.027,157.310,2.100),

Point.ByCoordinates(-442.027,162.506,2.100),

Point.ByCoordinates(-442.027,167.703,2.100),

Point.ByCoordinates(-442.027,172.899,2.100),

Point.ByCoordinates(-442.027,178.095,2.100),

Point.ByCoordinates(-446.752,141.717,2.100),

Point.ByCoordinates(-446.752,146.913,2.100),

Point.ByCoordinates(-446.752,152.110,2.100),

Point.ByCoordinates(-446.752,157.306,2.100),

Point.ByCoordinates(-446.752,162.502,2.100),

Point.ByCoordinates(-446.752,167.699,2.100),

Point.ByCoordinates(-451.478,141.713,2.100),

Point.ByCoordinates(-451.478,146.910,2.100),

Point.ByCoordinates(-451.478,152.106,2.100),

Point.ByCoordinates(-451.478,157.302,2.100),

Point.ByCoordinates(-456.203,141.710,2.100),

Point.ByCoordinates(-456.203,146.906,2.100),

Point.ByCoordinates(-460.929,136.510,2.100)};

---

<div class="post-metadata">

**Author:** ![Andreas\_Dieckmann](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/andreas_dieckmann/32/365_2.png) [@Andreas\_Dieckmann](https://forum.dynamobim.com/u/Andreas_Dieckmann)\
**Post date:** [July 20, 2014, 9:42pm UTC](https://forum.dynamobim.com/t/line-connecting-peripheral-points/450/11 "2014-07-20T21:42:19Z")

</div>

This is really weird, Vikram. My sample file ([https://github.com/CAAD-RWTH/DynamoSamples/tree/master/package\_samples/Convex%20Hull%202D](https://github.com/CAAD-RWTH/DynamoSamples/tree/master/package_samples/Convex%20Hull%202D)) works perfectly. But if I use a code block with (your) coordinates, Dynamo and Revit both crash. My suspicion is that the code block coordinates are to blame, but I’ll have to do some more testing.

---

<div class="post-metadata">

**Author:** ![Vikram\_Subbaiah](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/vikram_subbaiah/32/50797_2.png) [@Vikram\_Subbaiah](https://forum.dynamobim.com/u/Vikram_Subbaiah)\
**Post date:** [July 21, 2014, 5:26am UTC](https://forum.dynamobim.com/t/line-connecting-peripheral-points/450/12 "2014-07-21T05:26:19Z")

</div>

You are probably right.

Revit/Vasari also crashes any time I try to **Import.ByGeometry** a list of points.

Thanks.

Regards,

Vikram Subbaiah

---

<div class="post-metadata">

**Author:** ![Sharad\_Jaiswal](https://avatars.discourse-cdn.com/v4/letter/s/b487fb/32.png) [@Sharad\_Jaiswal](https://forum.dynamobim.com/u/Sharad_Jaiswal)\
**Post date:** [July 21, 2014, 8:51pm UTC](https://forum.dynamobim.com/t/line-connecting-peripheral-points/450/13 "2014-07-21T20:51:58Z")

</div>

Seems something has changed in 0.7.1, a slightly older daily build works fine. Please see the attached image.

![ConvexHull](https://cdck-file-uploads-us1.s3.dualstack.us-west-2.amazonaws.com/flex022/uploads/dynamobim/original/1X/3ee88b34babf1a99b746bd62bc36a2bc74c0c5b7.png)

---

<div class="post-metadata">

**Author:** ![Sharad\_Jaiswal](https://avatars.discourse-cdn.com/v4/letter/s/b487fb/32.png) [@Sharad\_Jaiswal](https://forum.dynamobim.com/u/Sharad_Jaiswal)\
**Post date:** [July 21, 2014, 9:14pm UTC](https://forum.dynamobim.com/t/line-connecting-peripheral-points/450/14 "2014-07-21T21:14:34Z")

</div>

BTW, when I remove the unnecessary reference of LibGNet and other Revit specific modules from python node, it started working on 0.7.1 Attached is the updated definition file for [Convex Hull 2D](http://dynamobim.org/wp-content/uploads/forum-assets/sharad-jaiswalautodesk-com/07/22/Convex-Hull-2D.dyf)

If your python node doesn’t need to use Revit specific APIs then you can remove them from references so that your package works on stand alone dynamo as well.

---

<div class="post-metadata">

**Author:** ![Vikram\_Subbaiah](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/vikram_subbaiah/32/50797_2.png) [@Vikram\_Subbaiah](https://forum.dynamobim.com/u/Vikram_Subbaiah)\
**Post date:** [July 22, 2014, 9:46am UTC](https://forum.dynamobim.com/t/line-connecting-peripheral-points/450/15 "2014-07-22T09:46:54Z")

</div>

Sharad,

Would it be possible for you to provide the download link to the build that worked for you?

I didn’t manage to get the convex hull to work even with the .dyf you posted.

Thanks.

Regards,

Vikram Subbaiah

---

<div class="post-metadata">

**Author:** ![Andreas\_Dieckmann](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/andreas_dieckmann/32/365_2.png) [@Andreas\_Dieckmann](https://forum.dynamobim.com/u/Andreas_Dieckmann)\
**Post date:** [July 24, 2014, 3:21am UTC](https://forum.dynamobim.com/t/line-connecting-peripheral-points/450/16 "2014-07-24T03:21:56Z")

</div>

Sharad, of course, you’re right. The references were unnecessary. I have since updated the package and removed _all_ references.
