Finding centroid of wavy enclosed curved pieces

Hi @archz2

It sounds like you’re after what is also sometimes known as the ‘pole of inaccesibility’

This has come up before in this thread, though I think there wasn’t a working general solution posted then.

I had a look at the open source library Polylabel that @gankeyu mentioned there…
and saw also this conversion to C#

(this is using the same subdivided grid approach that @PeterFotiadis mentions)

With just a few little changes it works in Grasshopper:


polylabel_innaccessibility.gh (8.7 KB)