Here is a glass railing from above, I'm trying to make a formula that automatically makes the space between the glass. Circled in red are the corner not working properly (180°+ angles)

Looks like RC do the job correctly for sub 180 angles.

I've tried many solution but can't get the right trigo formula. Would be nice to be able to paramter it with min/max spacing values.

FWIW I've attached the file I'm working on but the expression is a mess. RC version is 3.1.8b, Max 2016

Looks like RC do the job correctly for sub 180 angles.

I've tried many solution but can't get the right trigo formula. Would be nice to be able to paramter it with min/max spacing values.

FWIW I've attached the file I'm working on but the expression is a mess. RC version is 3.1.8b, Max 2016