Safe Inset / Extract Initial Crv of a polyline / skeleton

Hi,
I have a Brep and want to Extract the Inner Curve of it.
in other words, in the image below, I already have the Red Border and want to find/extract the Blue Curve from it. I tried some meshing and Mesh Skeleton but can’t reach a good solution from that method, I already wrote a script for it but I expect a much cleaner and more accurate result. does anyone have a better solution for this?


gh file:
Inset-Skeleton-InnerLines.gh (15.1 KB)

With this regular shape it works, although there are still some duplicate lines…


Inset-Skeleton-InnerLines.gh (17.0 KB)

1 Like

I wanted to look at this earlier - Thomas beat me to it obviously.
But here it is, less succinct - uses the shortest edge length of the given brep as distance parameter for offsetting brep edges, then isocurve extraction, and some cleanup.
Inset-Skeleton-InnerLines (1).gh (56.2 KB)

2 Likes