Grasshopper

algorithmic modeling for Rhino

how can I change the size of a box and keep the same volume? any advice is welcome

Thanks

Views: 7894

Replies to This Discussion

volume = length * width * height

so u could use e.g.:

height =  volume / (length * width) to find the corresponding hight to a given v, l & w

but best of course would be to use galapagos, in your case its a quite simple definition..

I don't think galapagos is necessary for this. One approach that doesn't let you specify specific dimensions but gives you control over the proportion would be to simply let the box's volume change, but then scale it by a factor of the cube root of the desired volume over the actual volume.

Thanks Andrew and Christian.

Andrew i'm sorry you give me an example?

How do you like this one?

Best Regards

DeDackel

Attachments:

this is my version

Attachments:

Yeah, Andrew that is cool!

I love when it comes to math, even if I am not good at it :-)

thanks for adding

BestRegards

DeDackel

quite elegant.

best

p

so for area (2d) boxs would we scale by square root of desired area?

answered my own question, it works for area :)

:-)

nice one!

yeah great!

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