# Interpolation

**URL:** <https://discourse.mcneel.com/t/interpolation/83861>\
**Category:** Grasshopper\
**Created:** [May 26, 2019, 2:59pm UTC](https://discourse.mcneel.com/t/interpolation/83861 "2019-05-26T14:59:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![shade64](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/shade64/32/213019_2.png) [@shade64](https://discourse.mcneel.com/u/shade64)\
**Post date:** [May 26, 2019, 2:59pm UTC](https://discourse.mcneel.com/t/interpolation/83861/1 "2019-05-26T14:59:54Z")

</div>

I feel kinda dumb asking a question so simple but here it goes:

If you take a look at this definition [1.gh](https://global.discourse-cdn.com/mcneel/uploads/default/original/3X/7/d/7d47e4122d6b6702cd211e899b819ea065ee83b5.gh) (20.6 KB)

Theres two sets of points connected to an interpolate node. (You may have to bake the points in rhino, do “selall” then “zoom selected” to find the area the points are in since theyre not at the 0,0.)

Any way, the bottom set works fine, you can see theres points that are strung into one curve. The top set doesn’t… and I dont understand why not. Theres nothing inherently different about the two configurations…

Secondary question that is a bit more complicated: is there a way to make the interpolated curve more “direct” as in connect to its closest nieghbor so that it doesnt have to turn back on itself multiple times and make large arcs to connect the further out points in a set of points?

Thank you all 🙂

---

<div class="post-metadata">

**Author:** ![HS\_Kim](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/hs_kim/32/473975_2.png) [@HS\_Kim](https://discourse.mcneel.com/u/HS_Kim)\
**Post date:** [May 26, 2019, 3:35pm UTC](https://discourse.mcneel.com/t/interpolation/83861/2 "2019-05-26T15:35:33Z")

</div>

Remove duplicated points first and have a try Sequential Closest Points from neoarchaic.

> **[Sequentially Sort Points by Distance](http://www.neoarchaic.net/resources/grasshopper/sequentially-sort-points-by-distance/)**
>
> From a sample point a list of points will can be sequentially sorted by marching through each closest point until the point list has been exhausted.

  
 ![Canvas%20at%2000%3B42%3B35](https://global.discourse-cdn.com/mcneel/uploads/default/original/3X/b/4/b473f6b542235409235ebe92a0b154274a4fc5b1.png)  
[Sequential Closeat Points.gh](https://global.discourse-cdn.com/mcneel/uploads/default/original/3X/9/2/9244d3946e010f3cebf1b3039087dea6377f59ec.gh) (29.1 KB)

---

<div class="post-metadata">

**Author:** ![shade64](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/shade64/32/213019_2.png) [@shade64](https://discourse.mcneel.com/u/shade64)\
**Post date:** [May 26, 2019, 4:06pm UTC](https://discourse.mcneel.com/t/interpolation/83861/3 "2019-05-26T16:06:08Z")

</div>

thank you that looks promising 🙂

any idea why the first set didnt work in my original definition but it did in the second set?

---

<div class="post-metadata">

**Author:** ![HS\_Kim](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/hs_kim/32/473975_2.png) [@HS\_Kim](https://discourse.mcneel.com/u/HS_Kim)\
**Post date:** [May 26, 2019, 4:16pm UTC](https://discourse.mcneel.com/t/interpolation/83861/4 "2019-05-26T16:16:36Z")

</div>

So, you want interpolate curve works without removing duplicated points? I don’t understand why anyway, Change the knot spacing(Style=0)

[https://docs.mcneel.com/rhino/6/help/en-us/index.htm#commands/interpcrv.htm?Highlight=InterpCrv](https://docs.mcneel.com/rhino/6/help/en-us/index.htm#commands/interpcrv.htm?Highlight=InterpCrv)

 ![Canvas%20at%2001%3B12%3B46](https://global.discourse-cdn.com/mcneel/uploads/default/original/3X/b/a/baf1fcdee367c4880e8733b90281769525a3cf4c.png)
