Grasshopper

algorithmic modeling for Rhino

Hello all,

I have written a component that spawns a new thread for heavy calculations since I did not want to lock up the GH UI until the calculations complete.

However, this workflow introduces some problems in connection with Galapagos. Since Grasshopper keeps solving the solutions downwards Galapagos immediately evaluates the output without waiting for the heavy calculation to complete.

Is there a good way to make Galapagos wait until the thread is completed?

Views: 464

Replies to This Discussion

No.

--

David Rutten

david@mcneel.com

Tirol, Austria

Keep the threading inside a component, and only give back a solution once the thread is finished. This can allow you to do multithreading, and keep the peace with the grasshopper way of things.

A different approach would be to write your own genetic algorithm.

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service