Measure interior angles of a polyline and cull segments

Hello All,

I’m trying to write a script that will measure the interior angles of a polyline, here’s what I got so far: (combined some scripts I found on the forum)


as you see it’s measuring some of the exterior angles at the moment:

but I need to get these instead:

Then, I need to sort these curves. The ones with the interior angle that is more than 180 will be in a different group (highlihgted with red and blue here)

here’s the GH file with internalised data:
interior angles.gh (11.3 KB)

Thank you!
Renan

I knew I had this one before !

1 Like

Check this as well.


interior angles_re.gh (13.5 KB)

3 Likes

Hi Kim, you can make it simpler

2 Likes

This is great, Thanks so much all!