Create Center line from two parallel lines

Hey Guys,

I am trying to create a center line between each and every wall using grasshopper.
could someone please advice how?

Thank you very much!

centerline.3dm (10.0 MB)

1 Like


What you are looking for is called Medial Axis.
There are several threads on this forum to give you some ideas.

For your specific example, you have a lot of overlapping/duplicate curves in your model that would definitely need to be cleaned before starting with GH.
I ran SelDup in Rhino, then removed short curves in GH, and grouped curves by length proximity. It’s not 100% especially around the central wall. (15.4 KB)

You are an absolute legend, my friend!