Grasshopper

algorithmic modeling for Rhino

Minumum Distance Between Random Points (I found a way, but its really messy)

Hey,

So I need to create a set of random numbers, but have a minimum (adjustable) distance between them. Simple I thought.... well not so easy. I have found one way, which works... but is real messy.. any one have any ideas? Im STUCK!

Thanks!!!

Views: 828

Attachments:

Replies to This Discussion

Hi,
Here you have a script that generates pseudo-random values. When a new value is at a distance less than the minimum goal in comparison to the previous value, this is replaced with a new pseudo random value that satisfies the minimun distance. I would try to do not only with the last value, also with the whole list, but need much error correction and it is so boring... I hope this serves.

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