# Closed Curve Offset Direction Problem

**URL:** <https://discourse.mcneel.com/t/closed-curve-offset-direction-problem/150311>\
**Category:** Grasshopper\
**Tags:** windows\
**Created:** [November 8, 2022, 11:41pm UTC](https://discourse.mcneel.com/t/closed-curve-offset-direction-problem/150311 "2022-11-08T23:41:19Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Leeeees](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/leeeees/32/475149_2.png) [@Leeeees](https://discourse.mcneel.com/u/Leeeees)\
**Post date:** [November 8, 2022, 11:41pm UTC](https://discourse.mcneel.com/t/closed-curve-offset-direction-problem/150311/1 "2022-11-08T23:41:19Z")

</div>

Hello!

I want to **offset some closed curve** and had a direction problem.  
So I **tried offsetting in both Inner and Outer direction** to choose shorter length but that **didn’t work** either.

could you help?

 ![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/4/5/1/45192480b5d69f3a97fe2749610fc79b92754a3c.png)  
 ![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/8/e/6/8e6080e80b82e0de42a9a797f6c288ec84e09895.png)  
 ![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/b/d/6/bd63fe9cb5641e2f8660a264e0c582782e3a74e5.png)

 ![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/0/0/3/003bcd06a5028042a462a9e8a59597df217f89c4.png)

[ghquestion\_offsetcurveerror.gh](https://discourse.mcneel.com/uploads/short-url/k7Eb8Gaj4nf08xMqGdrWTOQTFHg.gh) (197.4 KB)

Thanks for your attention.

---

<div class="post-metadata">

**Author:** ![Joseph\_Oster](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/joseph_oster/32/549124_2.png) [@Joseph\_Oster](https://discourse.mcneel.com/u/Joseph_Oster)\
**Post date:** [November 9, 2022, 1:55am UTC](https://discourse.mcneel.com/t/closed-curve-offset-direction-problem/150311/2 "2022-11-09T01:55:49Z")

</div>

This got to be _ **INSANE!!!** _

First, I tried many different schemes using Flip Curve before giving up and trying the method you suggested:

> [@Leeeees](#):
>
> So I **tried offsetting in both Inner and Outer direction** to choose shorter length

That worked for me in five of the eight cases so… I decided to copy one set of surfaces to all eight positions, which involved some tricky sorting of points and tree branching. The first set of surfaces on the left are copied to all eight positions _(white group)_ and the offset curves at the bottom _(green group)_ then worked fine. 🤦‍♂️

 ![offsetcurveerror_2022_Nov8a](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/5/f/1/5f17b1dcbdadad3d7ec913deb29353dc16ffbdf0.png)  
[offsetcurveerror\_2022\_Nov8a.gh](https://discourse.mcneel.com/uploads/short-url/cWfCIsujMG9oVTqMXVl3X4GUy3V.gh) (209.0 KB)

It’s a small step from there to use the offset curves to split the surfaces and make holes _(cyan group)_:

 ![offsetcurveerror_2022_Nov8b](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/f/0/2/f0246c3869d82d8dd9fe63625d0ee0c5500e7171.png)  
[offsetcurveerror\_2022\_Nov8b.gh](https://discourse.mcneel.com/uploads/short-url/ulRlos7B4py5rhdtUKTjSrgSAKl.gh) (212.3 KB)

---

<div class="post-metadata">

**Author:** ![Leeeees](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/leeeees/32/475149_2.png) [@Leeeees](https://discourse.mcneel.com/u/Leeeees)\
**Post date:** [November 9, 2022, 2:04am UTC](https://discourse.mcneel.com/t/closed-curve-offset-direction-problem/150311/3 "2022-11-09T02:04:06Z")

</div>

Thanks so much for your efforts 🥲  
Now I’ll be able to go on with my project! Thanks again!

---

<div class="post-metadata">

**Author:** ![Joseph\_Oster](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/joseph_oster/32/549124_2.png) [@Joseph\_Oster](https://discourse.mcneel.com/u/Joseph_Oster)\
**Post date:** [November 9, 2022, 2:06am UTC](https://discourse.mcneel.com/t/closed-curve-offset-direction-problem/150311/4 "2022-11-09T02:06:01Z")

</div>

You might want to ask yourself how those apparently identical surfaces got messed up somehow?

---

<div class="post-metadata">

**Author:** ![Leeeees](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/leeeees/32/475149_2.png) [@Leeeees](https://discourse.mcneel.com/u/Leeeees)\
**Post date:** [November 9, 2022, 2:20am UTC](https://discourse.mcneel.com/t/closed-curve-offset-direction-problem/150311/5 "2022-11-09T02:20:52Z")

</div>

OK I’ll look through that too.

---

<div class="post-metadata">

**Author:** ![Joseph\_Oster](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/joseph_oster/32/549124_2.png) [@Joseph\_Oster](https://discourse.mcneel.com/u/Joseph_Oster)\
**Post date:** [November 9, 2022, 2:27am UTC](https://discourse.mcneel.com/t/closed-curve-offset-direction-problem/150311/6 "2022-11-09T02:27:17Z")

</div>

They are far from the origin _(186K units)_, which sometimes can cause problems, though these are not extreme. It’s always curious, though, to see how small differences can have big effects down the line.

---

<div class="post-metadata">

**Author:** ![kev.r](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/kev.r/32/771963_2.png) [@kev.r](https://discourse.mcneel.com/u/kev.r)\
**Post date:** [November 9, 2022, 3:30pm UTC](https://discourse.mcneel.com/t/closed-curve-offset-direction-problem/150311/7 "2022-11-09T15:30:32Z")

</div>

> [@Joseph\_Oster](#):
>
> They are far from the origin _(186K units)_, which sometimes can cause problems

Interesting thought but I tried moving them to the origin and it didn’t help.

Adjusting the seams of the closed curves does the trick. They all come to a point at the top, so I moved the seam there.

 ![adj_seams](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/3/4/d/34d8082fcd5ff5cbd0e68c4eae72959055f9eb2d.jpeg)

 ![adj_seams2](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/2/1/0/210ecd53f3daa8c0b804145da708a03fbd0092b1.jpeg)

[ghquestion\_offsetcurveerror\_221109a.gh](https://discourse.mcneel.com/uploads/short-url/i7lC689Ow7goQLnuLQ1bXiyMmB8.gh) (198.0 KB)

-Kevin

---

<div class="post-metadata">

**Author:** ![Joseph\_Oster](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/joseph_oster/32/549124_2.png) [@Joseph\_Oster](https://discourse.mcneel.com/u/Joseph_Oster)\
**Post date:** [November 9, 2022, 3:35pm UTC](https://discourse.mcneel.com/t/closed-curve-offset-direction-problem/150311/8 "2022-11-09T15:35:23Z")

</div>

> [@kev.r](#):
>
> Adjusting the seams of the closed curves does the trick.

_ **WAY** _ easier! 👍
