Offset mesh different directions

Hey guys, always the same struggle. I would like to offset the breps/meshes to the inside, but the offset direction is different for every segment. How can I make the breps/meshes to always offset in the same direction?

Offset mesh (832.7 KB)
offset mesh issue_1
offset mesh issue_2

Offset mesh (831.5 KB)

Thank you very much! My grasshopper tells me that the component mesh flip is missing, althought it exsists in my component collection. Could you post a picture of the definition so that I can see where the mesh flip component must be placed?

I am sry I didn’t see the picture above…