Trouble with offsetting Curve

For the life of me I can’t figure out what’s causing the Offset Curve to display an error. However, it does work - in the sense that it does offset the Curve.

As a side note, I’m fairly new to GH. So take it easy on me.

Thanks!
TEATRU.3dm (3.1 MB)
TEATRU.gh (29.1 KB)

the planes you gave to the offset were a bit weird :slight_smile: you can just execute the offset operation giving it the plane where the initial brep is

also, you are providing the offset component some very tiny segments here:

microscope zoom:

TEATRU_Re.gh (37.7 KB)

here you can see which offsets are failing (outputs length 0 lists):

TEATRU_Re_Re.gh (42.8 KB)

2 Likes

Hi, @Victor_Cosmin1

“Crazy”, nice script! Like @inno pointed out, seems like the root cause of your problem are the tiny line segments. I made some changes to the script (grouped in black) and changed the Populate Geometry seed to 71. Looks like it did the trick.

TEATRU_V2.gh (56.3 KB)

1 Like

Thanks Kossatz! As another workaround, I removed the -x expression on the Offset Curve, but added negative values to the slider. Astonishingly, although is produces the exact same result, Offset Curve doesn’t pop any errors. No clue why.

Your script is definitely better, so thanks for that.

1 Like

Thanks a lot! I am currently working on my 13" laptop without a mouse, so zooming in to these tiny gaps… Yeah, I won’t go on. But thanks for spotting these out. I don’t really understand why it Offset like that to begin with.