Grasshopper

algorithmic modeling for Rhino

Hello there,

So i'm trying to get a population of points to repel one another within a square volume. Ive experimented with circles and they seem to work fine but after a certain amount of frames, well you can see from the picture below, a rather epic fail occurs. I'm using a collidesrf and a Plaw

Views: 840

Attachments:

Replies to This Discussion

You could try constructing each of the 6 enclosing walls as a separate solid brep-object for collide srf.

I tried that but now whenever the particles collide with the container they are becoming null which is messing with the distribution density i need.

Hi Kameron,

you don't get the error if you degrease the Strength value of the PLaw Component.

(I tested it with 0.47 and 0.52)

But I don't know yet exactly why this error occures.

Maybe you can also have a look at the SPM Plug-in for Grasshopper or at this post if you are just interested in particle collisions.

Best,

Martin.

Hi Kameron,

I found it works with collidemesh, but not with collidesurf.

I'm not sure what has changed to make the surface collision stop working, but I'll look into it.

Also - Repulsion forces with an exponent of -1 will tend to very quickly just push all the particles to the edges and corners.

If you are trying to distribute the points in the volume, I suggest using springs with cutoffs instead

here's an example file

Attachments:

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service