Offset curve multiple times

Hi everyone, l want to know if anyone can teach me how to offset a curve multiple times without losing its shape. Because l have tried to apply the ‘series’ to control the distance and also the number of the curve that l want it to be offset, but the shape of the curve will change, unfortunately. I also try to use the python to figure out the problem, but due to the poor coding skill, l failed.


multiple offset.gh (13.8 KB)

Copy it using Move? Doh! You’ve changed the description already… Python?


multiple offset_2021Feb13a.gh (7.8 KB)

Or use PFrame instead of HFrame?
multiple offset_2021Feb13b.gh (9.3 KB)

1 Like

A couple things might be useful to know.

  1. Read this thread: Offset madness

  2. Sometimes when you get kinks and bends like in your first picture, it can help to extend the curve before you offset it. After that, use shatter to cut the offsets back down to the lengths you want.

  3. The part where you get hard points in the middle of the curve is a normal result using offset. If you want to soften them, use Discontinuity to locate the points, place circles on them, shatter the curves with the circles, and Blend them back together. vary the circle radius to vary the blend.

1 Like

Hi Joseph, thanks for replying to the question. l think using move is better than offset to get what l want! So stupid l am. Anyway, it’s a better method to reach the goal. Thank you, Joseph!

Hi, Max. Hope you have a good valentine’s day today. Thanks for the recommendation of this nice article about the offset problem. It is a great discussion. And about the methods you provided, l think they both work for me, especially using the extend. Thank you!

1 Like

Hi, Joseph. l came across another problem which is how to offset the curve base on a domain distance, just like the picture described. Thanks

What do domains have to do with it?


multiple offset_2021Feb18a.gh (8.3 KB)

P.S. Pardon me, looks like 21 instead of 2? Please post GH files.


multiple offset_2021Feb18b.gh (8.4 KB)

Thanks for replying the questions and apology for the missing GH files Joseph. I think why l try to use domain is that l want the curve to be offseted multiple times base on the distance in the domain.

Yet the GH file is still missing while elaborating on the task?

Sounds like you want a list of domains and the offset value to be used within each of them? And the number of copies (offsets) to be determined automagically? Give it a try, it can be done.

Thanks for the tips, l will have a try. But the reason why l haven’t posted GH files is because l just have a series of curves and that’s all. If l have one, l will definitely post it in the box.

I think l have make it, Joseph. Is this right?

multiple offset_test.gh (13.8 KB)

You tell me? It’s not as if I know the answers, which depend on the question, which isn’t always clear.

Random?!!?

I am so sorry about the confusion of the question owing to my poor English explanation. l think what l am trying to reach here is that l want the curve to be offseted multiple times based on the distance in the range of 9 - 21. It means each time it would take a number in the range as the offset distance. Apology for misunderstanding Jose, sorry. l will try to explain more clearly next time.

This is the way I understood it:


multiple offset_2021Feb18c.gh (15.1 KB)

Trial and error until it works!

Thanks Jose. l will. Apologize again!

Here is a different way, simpler actually, though with one important difference. The last white line in version ‘c’ (previous post) is missing in version ‘d’ (the one with colorful branches):


multiple offset_2021Feb18d.gh (24.7 KB)