# Offset Problem

**URL:** <https://discourse.mcneel.com/t/offset-problem/109832>\
**Category:** Grasshopper\
**Created:** [October 5, 2020, 9:44pm UTC](https://discourse.mcneel.com/t/offset-problem/109832 "2020-10-05T21:44:00Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![cristian.gutierrez.v](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/cristian.gutierrez.v/32/473651_2.png) [@cristian.gutierrez.v](https://discourse.mcneel.com/u/cristian.gutierrez.v)\
**Post date:** [October 5, 2020, 9:44pm UTC](https://discourse.mcneel.com/t/offset-problem/109832/1 "2020-10-05T21:44:00Z")

</div>

Hi.

I have a group of closed curves and I´m trying to offset them, but some of them goes in one direction and the rest in the other direction. So, I tried to flip them all according to to the direction of the first of the list, but no. All of them was already in the same direction. I thought maybe the plane was lacking, I put a XY Plane but again, it did not work.  
Any thoughts?

 ![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/3X/7/1/71139fa9b30a5118b4ce90042a524f1a23b196b4.png)

[Offset problem.gh](https://discourse.mcneel.com/uploads/short-url/e8HWsfMRXGjaiM9kdd0W7D4JTz5.gh) (13.3 KB)

---

<div class="post-metadata">

**Author:** ![siemen](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/siemen/32/490472_2.png) [@siemen](https://discourse.mcneel.com/u/siemen)\
**Post date:** [October 5, 2020, 9:56pm UTC](https://discourse.mcneel.com/t/offset-problem/109832/2 "2020-10-05T21:56:03Z")

</div>

Your objects are too far away from the origin.

---

<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:** [October 5, 2020, 9:58pm UTC](https://discourse.mcneel.com/t/offset-problem/109832/3 "2020-10-05T21:58:25Z")

</div>

They are extremely far from the origin _( **WHY?** )_. If you move them closer, they all offset in the same direction, though they break quickly because they are small compared to the offset value.

 ![Offset problem_2020Oct5a](https://global.discourse-cdn.com/mcneel/uploads/default/original/3X/7/6/76c6495d405ffd8df3a6e063a057d59cd971904e.png)  
[Offset problem\_2020Oct5a.gh](https://discourse.mcneel.com/uploads/short-url/WSt66wCnruqHXUbVyExSUPqDb6.gh) (12.6 KB)

---

<div class="post-metadata">

**Author:** ![cristian.gutierrez.v](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/cristian.gutierrez.v/32/473651_2.png) [@cristian.gutierrez.v](https://discourse.mcneel.com/u/cristian.gutierrez.v)\
**Post date:** [October 5, 2020, 10:02pm UTC](https://discourse.mcneel.com/t/offset-problem/109832/4 "2020-10-05T22:02:19Z")

</div>

Yes, they are. That is because they are referenced with especific coordinates.  
But that shouldn´t be the problem …or do you think it is?

---

<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:** [October 5, 2020, 10:06pm UTC](https://discourse.mcneel.com/t/offset-problem/109832/5 "2020-10-05T22:06:48Z")

</div>

> [@cristian.gutierrez.v](#):
>
> But that shouldn´t be the problem …or do you think it is?

Obviously it is a problem, a well known one. Waste of time!

---

<div class="post-metadata">

**Author:** ![cristian.gutierrez.v](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/cristian.gutierrez.v/32/473651_2.png) [@cristian.gutierrez.v](https://discourse.mcneel.com/u/cristian.gutierrez.v)\
**Post date:** [October 5, 2020, 10:07pm UTC](https://discourse.mcneel.com/t/offset-problem/109832/6 "2020-10-05T22:07:35Z")

</div>

Well, yes. They are that far because I need them there. That is because their vertices are referenced at specific coordinates (WGS84) which use that gigantic numbers.  
Since I cannot move them closer, is there anything else I can do?

---

<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:** [October 5, 2020, 10:08pm UTC](https://discourse.mcneel.com/t/offset-problem/109832/7 "2020-10-05T22:08:31Z")

</div>

> [@cristian.gutierrez.v](#):
>
> Since I cannot move them closer, is there anything else I can do?

You have no choice, move them closer. Change your point of reference. Deal with it.

 ![Offset problem_2020Oct5a2](https://global.discourse-cdn.com/mcneel/uploads/default/original/3X/e/2/e2370e70490c73e02f23d034dcb76f8ac827a876.png)

---

<div class="post-metadata">

**Author:** ![cristian.gutierrez.v](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/cristian.gutierrez.v/32/473651_2.png) [@cristian.gutierrez.v](https://discourse.mcneel.com/u/cristian.gutierrez.v)\
**Post date:** [October 5, 2020, 10:15pm UTC](https://discourse.mcneel.com/t/offset-problem/109832/8 "2020-10-05T22:15:44Z")

</div>

> [@Joseph\_Oster](#):
>
> Obviously it is a problem, a well known one. Waste of time!

ok… I didn´t know  
But if it is a possibility that some day someone will need such coordinates to feed the system, it is a bug that should be fixed.

Thanks anyway

---

<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:** [October 5, 2020, 10:17pm UTC](https://discourse.mcneel.com/t/offset-problem/109832/9 "2020-10-05T22:17:36Z")

</div>

A well known bug.

 ![Offset problem_2020Oct5b](https://global.discourse-cdn.com/mcneel/uploads/default/original/3X/d/c/dc1286b6dc2eacef308dd4e114ed67a9693ec332.png)  
[Offset problem\_2020Oct5b.gh](https://discourse.mcneel.com/uploads/short-url/ouGXROoJG66GhcIPWfSEhHWc3I5.gh) (23.9 KB)

---

<div class="post-metadata">

**Author:** ![jayandrewscadd](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/jayandrewscadd/32/480679_2.png) [@jayandrewscadd](https://discourse.mcneel.com/u/jayandrewscadd)\
**Post date:** [October 5, 2020, 10:46pm UTC](https://discourse.mcneel.com/t/offset-problem/109832/10 "2020-10-05T22:46:37Z")

</div>

Maybe if you move and/or scale them to near enough the origin then offset, then reverse the process. Looks like it worked…

[Offset problem solved by Jay.gh](https://discourse.mcneel.com/uploads/short-url/k907TwaZOFwVpYP16q6lMDl9Y9z.gh) (12.5 KB)

---

<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:** [October 5, 2020, 11:01pm UTC](https://discourse.mcneel.com/t/offset-problem/109832/11 "2020-10-05T23:01:48Z")

</div>

> [@jayandrewscadd](#):
>
> Maybe if you move and/or scale them to near enough the origin then offset, then reverse the process.

That’s a fine idea but I prefer Move to Scale, using the same vector with “-x” expression:

 ![Offset problem_2020Oct5c](https://global.discourse-cdn.com/mcneel/uploads/default/original/3X/b/8/b8aacb2c713864112f62fedbe77c08397410071e.png)  
[Offset problem\_2020Oct5c.gh](https://discourse.mcneel.com/uploads/short-url/3LZzcp7UzRXRMM28rGgbMiGjM3g.gh) (14.4 KB)

---

<div class="post-metadata">

**Author:** ![jayandrewscadd](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/jayandrewscadd/32/480679_2.png) [@jayandrewscadd](https://discourse.mcneel.com/u/jayandrewscadd)\
**Post date:** [October 5, 2020, 11:13pm UTC](https://discourse.mcneel.com/t/offset-problem/109832/12 "2020-10-05T23:13:52Z")

</div>

Genuinely curious the benefit of move over scale. First thought was move, but was easier and more universal to just scale.

---

<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:** [October 5, 2020, 11:20pm UTC](https://discourse.mcneel.com/t/offset-problem/109832/13 "2020-10-05T23:20:14Z")

</div>

> [@jayandrewscadd](#):
>
> Genuinely curious the benefit of move over scale.

Less chance for roundoff errors, I would think, especially at this vast scale.

---

<div class="post-metadata">

**Author:** ![martinsiegrist](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/martinsiegrist/32/772775_2.png) [@martinsiegrist](https://discourse.mcneel.com/u/martinsiegrist)\
**Post date:** [October 5, 2020, 11:53pm UTC](https://discourse.mcneel.com/t/offset-problem/109832/14 "2020-10-05T23:53:30Z")

</div>

![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/3X/7/d/7ddeef28bab0050bd389ea284eb9e5757a32ae72.png)

This is interesting. After reading all the comments, I moved the curves a bit closer to each other so they fit nicer in my viewport. Next I copied everything close to the XY zero point as suggested by Joseph. All curves are clockwise. The problem seems to occur just on curves which happen to have their area centroid outside of the curve.

 ![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/3X/2/5/252337a09773ecb7489bb5c3f125954d152e17de.png)

The following screenshot shows a second solution that works for both types of curves. Curves where the area centroid is inside and curves where the centroid is outside. I’m dealing a lot with offset curves on arbitrarily oriented surfaces. Some with their normals facing down, some up. I never rely on an offset component without inside / outside check or surface normal - Z vector dot product…

 ![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/3X/a/6/a694836109c9f2faebf82d8315fcf40668b4f1d2.png)

[Offset problem.gh](https://discourse.mcneel.com/uploads/short-url/33iTn6cuBNjvhmRj1xB2fLvZZEr.gh) (32.2 KB)

---

<div class="post-metadata">

**Author:** ![jayandrewscadd](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/jayandrewscadd/32/480679_2.png) [@jayandrewscadd](https://discourse.mcneel.com/u/jayandrewscadd)\
**Post date:** [October 6, 2020, 12:10am UTC](https://discourse.mcneel.com/t/offset-problem/109832/15 "2020-10-06T00:10:19Z")

</div>

Objects not internalized.

---

<div class="post-metadata">

**Author:** ![martinsiegrist](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/martinsiegrist/32/772775_2.png) [@martinsiegrist](https://discourse.mcneel.com/u/martinsiegrist)\
**Post date:** [October 6, 2020, 12:44am UTC](https://discourse.mcneel.com/t/offset-problem/109832/16 "2020-10-06T00:44:14Z")

</div>

I was falling asleep 🤷🏻‍♂️

Internalized now

---

<div class="post-metadata">

**Author:** ![cristian.gutierrez.v](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/cristian.gutierrez.v/32/473651_2.png) [@cristian.gutierrez.v](https://discourse.mcneel.com/u/cristian.gutierrez.v)\
**Post date:** [October 6, 2020, 2:35am UTC](https://discourse.mcneel.com/t/offset-problem/109832/17 "2020-10-06T02:35:10Z")

</div>

Thank you Martin!  
It would be an excellent option if the corners of the offset curve were not rounded. Why do they have to be rounded!!!

Thanks again

😉

---

<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:** [October 6, 2020, 6:32am UTC](https://discourse.mcneel.com/t/offset-problem/109832/18 "2020-10-06T06:32:17Z")

</div>

You shouldn’t really ever work so far from the origin in most any software. The correct way is to work near 0,0,0 origin and consider that origin as some lat / long location. You can have it referenced into the real location in some combination model based on reference to the origin to the real location point.

> **[Objects Too Far From the World Origin \[McNeel Wiki\]](https://wiki.mcneel.com/rhino/farfromorigin)**

---

<div class="post-metadata">

**Author:** ![pawel](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/pawel/32/732861_2.png) [@pawel](https://discourse.mcneel.com/u/pawel)\
**Post date:** [October 6, 2020, 6:53am UTC](https://discourse.mcneel.com/t/offset-problem/109832/19 "2020-10-06T06:53:23Z")

</div>

Hi guys,

I found out this being a nice and fast solution to offset problem - works 95% of the time (and works on in this case as well):

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

Cheers!

---

<div class="post-metadata">

**Author:** ![martinsiegrist](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/martinsiegrist/32/772775_2.png) [@martinsiegrist](https://discourse.mcneel.com/u/martinsiegrist)\
**Post date:** [October 6, 2020, 8:49am UTC](https://discourse.mcneel.com/t/offset-problem/109832/20 "2020-10-06T08:49:52Z")

</div>

I didn’t zoom in that much unfortunately
