Grasshopper

algorithmic modeling for Rhino

Here is a script replicating the shape created by pouring sand on a closed shape (here a polygon). From above it draws medial axis, but here it is a Brep generated from a closed polyline. The limit angle of repose is here 45° but it could certainly be changed by using a scale in Z. 

The script use just classic Rhino/Grasshopper function. It didn't work with all polygons, I didn't search why. The closed polygon must be on XY plane, it could be clockwise or anti-clockwise.

Have fun, me I will continue to play with real sand on the beach for some days :-)

Views: 9245

Attachments:

Replies to This Discussion

This is great!!!
Thank you Laurent!!

What do you think about this idea?

Hello!

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

Is it possible to pour the sand into this volume?

Attachments:
I didn't look to your file but at the moment I can just propose you
http://www.grasshopper3d.com/profiles/blogs/veinization?xg_source=a...
To calculate a sort of medial axis of a volume. But it is curve not volume. But as you write at all discussions of medial axis I suppose you want medial axis for 3D shape. But I think medial axis for 3D must be surfaces because on 2D you can make the shape with medial axis ans disc. In 3D you can make the shapes with placing spheres on surfaces.
You can search also on skeleton for mesh
http://visgraph.cse.ust.hk/projects/skeleton/
http://doc.cgal.org/latest/Surface_mesh_skeletonization/index.html

love it! Thank you!!

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