Medial lines

Hi, i have a cad geometry and i want to get automatically the medial lines of the walls … I saw about this problem e tried some script but they don’t work…
What I have…

What I want…

Test_Medial Axis.gh (40.0 KB)

Someone can help me??

Not very easy to test what you use without the curves !
It is better if you internalize the curve. We don’t need all the stuffs before the curves.

It is not exactly what you want but this script could help.

What does it mean. Tools are not meant to read what you have in Mind, and what you have in mind is not strictly medial axis !

This won’t cover all cases (in particular non straight walls) but maybe this is close enough for your request ?

Based on Brep Topology for the main idea.
Added line extension for walls that only have one interior edge.
Added final join on curve and split by horizontal/vertical if needed.

MedialAxis.gh (17.4 KB)