Grasshopper

algorithmic modeling for Rhino

Hi everyone,

I'm a beginner with Kangaroo(s) and what I'm trying to do is to regroup different and separated triangles according to their common edges or vertices. Also the triangles have to preserve their geometries, to stay flat on the floor, and not overlap.

So I did a definition with Kangaroo 1 which seems to work (kind of), using the powerlaw definition to join the points, and a z unitload to keep all the geometries on the floor. The non-overlapping part / collision2D is not exactly perfect neither... Anyway I'd like to "translate" this definition into Kangaroo 2, because of its simplicity and also because of its collision2D definition.

As you can see on the picture powerlaw doesn't seem to work as an input/goal in K2. I probably missed something somewhere... The triangles in the middle are the solution expected and obtained with the K1 definition.

You can also check the files attached to check the differences between my K1 and K2 tests.

So id anyone has any idea how to use powerlaw in Kangaroo 2 I'll be happy to try !!!

Thanks in advance,

J

Views: 1834

Attachments:

Replies to This Discussion

Just in case some of you would find some use in it, I rewrote my definition of an equivalent of Plaw for Kangaroo 2. It's working even it's still a bit talkative in my opinion.

I had to put a high strength for collide2D objects and low strength for puling lines to avoid the pulling to flip the meshes or to create overlaps. Also the z forces are not always useful but prevent the flipping in some cases (which still sometimes happens depending on the geometry of the original meshes).

The strange thing I noticed it's that without any anchor the Kangaroo solution sometimes slips away (depending on the meshes geometry). My guess is the particles are continuing to bounce on the polylines and create new forces, even if the system is closed.

Does someone has a way to explain why there is still a flipping problem, even with a z force, a floor goal ?

Attachments:

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