Grasshopper

algorithmic modeling for Rhino

Hello,

Galapagos look amasing.

It look difficult to get a tutorial for disable, so I'm trying to do a exemple.

I want to get m3 of a box the same than one of ta sphere.

Please see the attachement.

Thanks for your help:)

BR,

RG

Views: 473

Attachments:

Replies to This Discussion

Hi RG,

you can approach this in 2 ways, but before I list those it's important to understand that there are a lot of possible combination of {width;height;depth} that would result in a perfect answer. Every time you run this problem you'll end up with a different box which has the same volume as the sphere.

So here's the two approached:

  1. Minimize the fitness. When you subtract the two volumes you'll get a positive value if your box is larger than the sphere and a negative value if the box is smaller. If you want to minimize the difference, then you need to add an Absolute in there somewhere. You can either add an expression to the output of subtract, or you can add an Absolute component, or use an expression to do everything: Abs(A-B), where A is the volume of the box and B is the volume of the sphere
  2. Optimize the fitness. Instead of minimize or maximize in the Galapagos solver settings, just type in zero (0) in the textfield and Galapagos will try to make the subtraction zero. If it's positive it will make it smaller, if it's negative it will make it larger.

--

David Rutten

david@mcneel.com

Poprad, Slovakia

Thanks you.

That's very clear now:)

BR,

RG

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service