Grasshopper

algorithmic modeling for Rhino

Hi !

This is a recurrent problem I have when I'm working on grasshopper I must say.

I can't figure how I can connect random points from a 2D cloud in a way that the polyline that will connect them will never have any self intersection. (see picture 1)

I know that there is a very large number of solutions, so I tried to use galapagos with a jitter random seed as a genome input, but as a random seed is not a linear progression I guess it can't work that way...

My ultimate goal would be to draw a "mean" curve that includes all the points of the cloud. (see picture 2)

Any help would be really appreciated !



Oswald

Views: 2128

Attachments:

Replies to This Discussion

so I tried to use galapagos with a jitter random seed as a genome input, but as a random seed is not a linear progression I guess it can't work that way... 

Correct. A random seed is a variable that has absolutely no continuity and therefore cannot be used as a Galapagos input. Or rather, you can use it, but it won't result in a good answer.

An easy way to connect a bunch of points without self-intersections is to sort them radially. However -as you already mentioned- there are many ways in which points can be connected this way, so it may not be the answer you're looking for.

Your ultimate goal sounds like you're looking for Convex Hulls, is that true?

Attachments:

This is exactly what I was looking for !! Thank you very much David !

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