Grasshopper

algorithmic modeling for Rhino

Hi,

I have created random points on a surface which I then turn into delaunay triangles.

How do I specify minimum distance of the random points (I guess like radius between each point)? I don't want the triangles to be too small.

Thanks!

Views: 3938

Replies to This Discussion

Here is what I've done so far

Attachments:

You could do this in a couple of ways. The easy way would be to use the populate 2D component as it has a built-in function that distributes the points so that they are farther away from each other while still being random. Then translate the XYZ points into UV points and use Evaluate Surface to place these points on a reparameterized surface. 

The more difficult way would be to use Kangaroo to create a spring network on the surface. With the right settings this could push the points away from each other into some sort of optimized position where any two points are as far away from each other as possible while still bing on the surface and not too close to any other point.

Thank you Andrew! What is the best way to then get these points to move in the direction they are perpendicular to of say between 0 and 1mm positively or negatively randomly (or say Y direction). I think I am there with it I just don't want the surface to look too smooth, I want it be more faceted looking if that makes sense. Sorry this is my first day at using this program. Thank you for your help!

I'm not exactly sure what you mean, but I think you are asking to be able to add a bit more noise into the point distribution. That is, the populate 2D made things too uniform for you?

If that is the case then you can take the points from the populate 2D component and either decompose the points into their XYZ values and add a random number between -1 and +1 to each X and Y value.

Or, if you want to get a bit more advanced and start using vectors, you could create a random X vector with a length of -1 to +1 and a one for Y too (using a different random seed) and then add them together. Then move each of the original points by that vector.

Also, that random reduce in your file is not needed. Just use the Number of Points slider (which should be an integer slider) to control the points rather than taking some away after they have been created. 

Excuse me JW for interruption but I faced another question:why when I put the seed for the engines same numbers the points place on a line It is wierd for me and I cant realize it !!!

it is actually more about the random component and it is not relevant to your question!

tnx

The random component in Grasshopper is actually more of a pseudo-random component. The seed determines the series of random numbers that it will produce. This is useful as it would be annoying if every time you opened a definition with the random component it used a different set of random values. The seed allows us to have consistency with our randomness. If you change the seed values so that they are different for your X and Y values they will no longer line up.

RSS

About

Translate

Search

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service