Grasshopper

algorithmic modeling for Rhino

Hello Everyone!

I'm fairly new to GH, and very new to Kangaroo(1/2).

I'm trying to start with something basic - bending a curve. I found this example with Kangaroo 1 which kind of makes sense https://vimeo.com/20262297 but when I start to tweak it, it doesn't work.

I'm trying to do my own example now in Kangaroo 2, and I tried 2 methods.

Method 1: A line defined by 2 points, one of which can be moved on the axis Z - when the initial distance between points decreases -> the line bends  (attached screenshot)

Method 2 (probably more elegant?): A line defined by 2 points, one is anchored to the ground, the other has a Load applied vertically - as the load increases -> the line bends (attached screenshot)

I've also attached the definition for both examples - please let me know if you have any advice on either methods as I can't find many online tutorials for Kangaroo 2.

Many thanks!!!

Mihai

Views: 2040

Attachments:

Replies to This Discussion

Hi Mihai,

Please can you post the Runtime error that the Kangaroo solver outputs in both cases?

Have you tried resetting the solver too?

Arthur

Hi Arthur,

Thank you for your reply.

The errors are the same for both solvers: 1. Solution exception:Method not found: 'Int32 System.Environment.get_CurrentManagedThreadId()'.

I have tried resetting it as well, unfortunately nothing happens...

I would imagine there is something wrong with the way I have arranged the definition.

Please let me know if you have any ideas.

Many thanks!

Mihai

Hi Mihai,

There are a few things to point out in your definition:

LineA and LineB inputs in the Angle goal have to be consecutive segments; the end point of lineA has to be the start point of LineB.

You have to invert the load vector; currently you are stretching your segments, rather than applying a compressive load;

Also if you apply pure load along the length of your segment, chances are it will only compress. Remember this is an idealised physics model.

Hope it helps

Andrei

Hi Andrei,

Thank you for your reply!

I will give it another go following your advice.

Many thanks again!

Mihai

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