Grasshopper

algorithmic modeling for Rhino

hi Daniel, hi all, 

a while ago we set up a Kangaroo2 simulation, which adjusts a series of meshs towards a target volume. 

In order to gain control over the proportions of these volumes i am looking for a kangaroo goal which can limit the X,Y and Z dimensions of the meshs. 

My guess is that this would require a custom goal?

Any pointers towards the right direction would be greatly appreciated!

Best, 

Leo

Views: 1198

Replies to This Discussion

Am having a similar issue. Was thinking it may be possible to introduce geometries that come close to this. 

So if you have a width and height size for each bubble, a planar element could be introduced and collided with each bubble based on dimensions provided. 

See sketch attached. 

Attachments:

Hi Leo

One way to to do this would be to use a SolidPointCollide component to keep the points of the mesh inside a box:

Is this the effect you were after?

Attachments:

hi Daniel, 

thank you for the fast reply!

I thought about constraining the mesh within a box, as you suggested. 

However, the mesh should be free to move around within a larger envelope. Therefore the position of the bounding box would have to be re-evaluated after each iteration of the kangaroo solver. 

The overall aim of this is to add a "proportions" goal to the scripts of the balloon packing discussion.

I could imagine a goal, which evaluates the bounding box of all particles in a mesh and acts on the ones that are below or above the centered domain.

Below a quick sketch of how this could work. 

Best, 

Leo

Hi Leo,

Thanks for the clarification. I understand now.

Yes - this does sound like it will need a custom goal, but one that shouldn't be too hard to create. I'll have a go now.

Thanks, Daniel!

I tried to write a goal based on the examples you provided here but didn't get it to work. 

Did you have time to look into it? I'd be curious to see how to implement this. 

Hi Leo,

I did have a look at this - see the attached.

Let me know if it does what is needed or if you have questions.

Attachments:

hi Daniel, 

this does exactly what i was looking for! 

Also very useful as an example for setting up custom goals. 

Thanks a lot! 

Leo

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