# Graph mapper continuity

**URL:** <https://discourse.mcneel.com/t/graph-mapper-continuity/180675>\
**Category:** Grasshopper\
**Tags:** windows\
**Created:** [April 23, 2024, 6:44am UTC](https://discourse.mcneel.com/t/graph-mapper-continuity/180675 "2024-04-23T06:44:09Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![ShawnFrost](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/shawnfrost/32/640430_2.png) [@ShawnFrost](https://discourse.mcneel.com/u/ShawnFrost)\
**Post date:** [April 23, 2024, 6:44am UTC](https://discourse.mcneel.com/t/graph-mapper-continuity/180675/1 "2024-04-23T06:44:09Z")

</div>

Good morning, I am having problems with Grasshopper in that I cannot create, via Graph Mapper, a continuous line around a circle without there being a “jump”. I have seen that I can make the beginning and end of the graph coincide, more or less, by hand but are there more effective ways?  
Thank you very much

 ![Screenshot 2024-04-23 083911](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/1/7/d/17d1d70decaade50ee15d2f09219404fccb09597.png)  
 ![Screenshot 2024-04-23 084313](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/f/f/1/ff1e9ddd5af403575ccd6cfd734a36aeb24d240f.png)

---

<div class="post-metadata">

**Author:** ![TomTom](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/tomtom/32/651939_2.png) [@TomTom](https://discourse.mcneel.com/u/TomTom)\
**Post date:** [April 23, 2024, 7:39am UTC](https://discourse.mcneel.com/t/graph-mapper-continuity/180675/2 "2024-04-23T07:39:47Z")

</div>

Hi,

I let you find the components by yourself. You can manually tweak the output to (linear) blend in perfectly by performing the following calculation:

Given the following mapper y-values:  
**1, 3, 4, 3**

delta of first and last element:

yS-yE = 1-3 = **-2**

“Impact” on each point  
Equal to a GH “Range” component from 0 to 1 with n steps:  
**0.0, 0.3, 0.6, 1.0**

1+(-2x0.0), 3+(-2x0.3),4+(-2x0.6), 3+(-2x1.0)

yields corrected y-values of:  
**1, 2.4, 2.8, 1**

As an alternative you can draw a curve in World XY Plane and intersect in GH.

---

<div class="post-metadata">

**Author:** ![ShawnFrost](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/shawnfrost/32/640430_2.png) [@ShawnFrost](https://discourse.mcneel.com/u/ShawnFrost)\
**Post date:** [April 23, 2024, 8:48am UTC](https://discourse.mcneel.com/t/graph-mapper-continuity/180675/3 "2024-04-23T08:48:02Z")

</div>

Thank you very much for your reply, premising that I cannot to draw the curve on the xy plane because I will have to match then some elements of the circular facade with the internal structure, I understood your more than sensible reasoning but on the practical side I didn’t quite understand how to operate, I have to insert in the output of the graph a component “Range”… . I just started using this program a few days ago so I don’t know all the components and how they work. I will send the .gh file if it should be useful to others in case they know other solutions.  
Thank you

[Graph mapper continuity.gh](https://discourse.mcneel.com/uploads/short-url/4iaFud9hDqY2DnuYGYk661Iz8kd.gh) (43.1 KB)

---

<div class="post-metadata">

**Author:** ![adel.albloushi](https://avatars.discourse-cdn.com/v4/letter/a/ea666f/32.png) [@adel.albloushi](https://discourse.mcneel.com/u/adel.albloushi)\
**Post date:** [April 23, 2024, 10:32am UTC](https://discourse.mcneel.com/t/graph-mapper-continuity/180675/4 "2024-04-23T10:32:28Z")

</div>

if strict tangential continuity is not what you’re after, a running average can be helpful to you  
[Graph mapper continuity[by running average].gh](https://discourse.mcneel.com/uploads/short-url/kEUWWeNX3qeclyNvxZcjPKRvhgi.gh) (28.8 KB)

 ![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/5/2/1/521163463a793ace2d6c181fad84f196c139972a.png)

---

<div class="post-metadata">

**Author:** ![adel.albloushi](https://avatars.discourse-cdn.com/v4/letter/a/ea666f/32.png) [@adel.albloushi](https://discourse.mcneel.com/u/adel.albloushi)\
**Post date:** [April 23, 2024, 10:43am UTC](https://discourse.mcneel.com/t/graph-mapper-continuity/180675/5 "2024-04-23T10:43:52Z")

</div>

a more “parametric” smoothing  
[Graph mapper continuity[by running average\_parametric].gh](https://discourse.mcneel.com/uploads/short-url/iitXvDv3eC3yhixsf7XezneETcS.gh) (27.0 KB)

 ![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/9/9/2/992ee794361509a7418f28864c0ecbb310eb2acc.png)

---

<div class="post-metadata">

**Author:** ![adel.albloushi](https://avatars.discourse-cdn.com/v4/letter/a/ea666f/32.png) [@adel.albloushi](https://discourse.mcneel.com/u/adel.albloushi)\
**Post date:** [April 23, 2024, 11:05am UTC](https://discourse.mcneel.com/t/graph-mapper-continuity/180675/6 "2024-04-23T11:05:16Z")

</div>

here’s another one by smoothing the tail end. it leaves most of the curve as is.  
you do need to increase the parameter until it looks smooth  
[Graph mapper continuity[by smoothing tail end].gh](https://discourse.mcneel.com/uploads/short-url/4wAMEgJqPNViKCugsj3KugqwA5M.gh) (25.2 KB)

 ![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/8/9/3/8936e443c3eb0abee7fa78da5e3752ce2b56ca5e.png)

---

<div class="post-metadata">

**Author:** ![ShawnFrost](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/shawnfrost/32/640430_2.png) [@ShawnFrost](https://discourse.mcneel.com/u/ShawnFrost)\
**Post date:** [April 23, 2024, 5:47pm UTC](https://discourse.mcneel.com/t/graph-mapper-continuity/180675/7 "2024-04-23T17:47:38Z")

</div>

Thank you truly, your solution was more than satisfactory 😊
