Medial axis

Hello every one,
I have a 2D geometry like this:


My aim is to generate the medial axis for this geometry by Rhinoscript (My application is not suitable to use Grasshopper)

Do you guys have any idea how to implement it in Rhinoscript
Medial axis.3dm (343.8 KB)
Thanks and best regards,
Lam

I don’t know anything about rhinoscript and have no idea how to do this without grasshopper but the medial axis of that shape is not the way you drew it but more something like this:

Hi Siemen,
Thank you so much for your answer.
Can you share me your grasshopper code?
I will find the way to call Grasshopper’s program from Rhinoscript.
Thanks and best regards,
Lam

Check this out https://generativelandscapes.wordpress.com/2015/07/14/landforms-created-through-topological-analysis-of-shapes-example-4-7/

And this: http://www.grasshopper3d.com/forum/topics/sand-dune-medial-axis-sample
And this: Old Town Roofs

2 Likes

I am trying to find a forum that explains how to do the above but without adding height to the geometry - AKA: just finding the centreline of a planar surface. Not finding the centreline with height angle for roofs / landscapes?

As in like the first image in this post.

the brute force way is below-
tween, curve boolean, and extend/trim

for surfaces, you’d need to extract or use the edge curves