Grasshopper

algorithmic modeling for Rhino

Hello people!

I have a closed surface (u can consider it as a slynder) and I need randomly placed craters (like the moon surface) with random radius on it.Any idea how to do?

Thank u all!

Views: 1473

Replies to This Discussion

Try it on a flat surface first?

  1. Randomly placed craters circles (like the moon surface) with random radius?
  2. Raise or extrude each circle a random distance?
  3. Have the surface conform to the top edges of the circles (this is the tricky part!)
  4. Finally, do the same thing on cylinder or whatever curved "closed surface" you have in mind.

Post GH code with steps 1 and 2 (and maybe 4) before tackling the hard part, step #3.

I am stuck with the number three (tricky part)..

Attachments:

You didn't internalize your 'Crv' parameter so I used a 'PlaneSrf'.  I think you'll need a better distribution of crater circles and heights, with fewer overlaps.

I don't have an answer for you, just suggesting some steps on a path forward.

Using 'Construct Domain (Dom)' for the 'Random N' input is not correct.

This uses 'SrfGrid', which can be adapted to curved surfaces using surface normal vectors at each point instead of 'Z'.  The slope of the craters can be shaped using a 'Graph Mapper'.

Attachments:

Thank you.It is what i need for now.But I believe we can get much better result if we use kangoroo.

Nothing against Kangaroo but it's possible to "get much better result" without it.  What would be a "much better result"?

If i would use the circles as force objects than I could have a clear crater using kangaroo.Because with your definition i am getting this weird shapes as in the jpeg file.The problem is I am just a beginner and don't know how to use kangaroo.

Attachments:

The problem is I am just a beginner

That does limit your options.

Instead of 'SrfGrid', you could try 'Delaunay Mesh' at lower resolution?

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service