Grasshopper

algorithmic modeling for Rhino

Hi to all,

I'm having some issues with a GH definition, which basically consists on finding the shortest set of curves whle maintaining a range of distances between their control points, using Galapagos.

I'm attaching both the definition and the Rhino file. So far, when I run Galapagos the curves overlap theirselves because they don't have some sort of penalization that force the solver to separate its control points.

What I've tryied to do on response, was to measure the distance between points on the same offseted curve and then apply the function "-X+3.00", being X the distance between points and 3.00 the minimum distance between them. The result was that the solver searched for the furthest location (i.e. maximum distances between points). 

So now I don´t know how to establish some range of distance between control points, which hast a minimum distance between, and could separate up to certain distance.

I would prefer to get some tutorial or example so I can learn how to fix this issue by myself rather than get the GH definition done by you. Anyway, all advices are appreciated!

Thanks to all and sorry about my English. If there is something that you didn't got about what I've said, then please let me know.

L

Views: 1042

Attachments:

Replies to This Discussion

Hola Luciano,

I'm not sure I understand entirely what you're after, but let me try giving you some hints:

It seems you need to set up a fitness function combing mutlitple criteria.

this thread is a good read to start.

To define the fitness value corresponding to the distances between curves (their control points) you should only need the shortest distance in each point set. Proximity 3D & Sort List should help you find it quickly.

I would first do some testing with less input curves / less genes, to get a better understanding of what's going on in all that spaghetti.

Was that helpful?

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