Grasshopper

algorithmic modeling for Rhino

I'm sure I will kick myself but..

I've made a simple definition to create points on a surface.  Then using power law forces between all the points and pull to surface.

Working perfectly on a sphere:

However on other surfaces, such as this lofted example, all the particles congregate at the corners..

I've attached the definition.  Any ideas?

Views: 4888

Attachments:

Replies to This Discussion

Hi Harri,

I've found that using an exponent of -1 for repulsion on an open surface does always tend to result in particles pushing to the edges like this. I think it is just the combined effect of all the particles acting over long distances.
The steeper falloff with an exponent of -2 works better, or even -3 or -4, though greater negative powers start requiring very small time steps.
But I think for getting an even distribution, better still is to use springs with cutoffs to simulate colliding spheres. The radius of the spheres might need adjusting a bit to get them to fill the surface, but you can do it with a slider.
Though if you want to fill the surface with a fixed target distance between adjacent points, you need to adjust the number of them, and until now this hasn't been easy to do in Kangaroo. The next release does contain a work in progress version of the remeshing stuff I wrote to tackle this problem though.

Thanks Daniel.  Playing with the cut-offs, exponents and reducing the strength helps a lot. I'll try the springs too.

Works nicely.

Can provide the final. GH file ?

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service