Grasshopper

algorithmic modeling for Rhino

Finding the central 'skeleton' curve in a polysurface

Hi all, I'm having trouble solving something. I'd like to find the central 'spine' in a polysurface (as in the image). I've generated this example from a hex grid where that skeleton is already known, but is there any way to extrapolate such a curve when one only has the polysurface, as in the attached GH file? Any help/advice would be appreciated, thanks!

Views: 2415

Attachments:

Replies to This Discussion

Medial axis ?

Well ... this is not the easiest thingy imaginable (general case, not that one).

So for this specific case get a 5 minutes job that undoubtedly qualifies as the most stupid code even known to mankind (anti-Nobel on sight, for sure).

PS: offset used is the wrong thing to do (convex stuff outwards > requires an other approach, but anyway)

Attachments:

Hi Andrew

is this what you want to reach

al

Attachments:

This project contains a good 2D surface-with-holes medial axis calculator:

http://www.grasshopper3d.com/photo/medial-axis-determination?contex...

However, it's way too slow except on a subset of your grid if I edit the middle out and make but a portion of it.

It also suffers from non-straight outer lines since the Voronoi strategy fails to create many cells along the outside.

Attachments:

Ah, by merely adding more points along the long outer boundary curve, I avoid the curvy artifacts:

This lets me use many fewer points along each curve, too.

Can I now do your whole array thus? The slow step is searching for the right lines to erase, so certainly I can get the lines, but can I isolate them? Smoothing them out is another matter. Your filleted corners also results in little extra segments of a true medial axis.

And it only takes a few seconds.

Q.E.D.

Attachments:

Hi Nik,

is there any way to obtain a medial axis w/in a 3D volume like this?

I am trying to extract the interior volume as an object instead of the negative of a Boolean operation.

I'm hoping to get a media axis between surfaces within this volume to then pipe/t-spline into a new object.

thank you,

RP

Attachments:

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service