Grasshopper

algorithmic modeling for Rhino

I have made a box and I want to make the lid on it rotate open and closed. Seems easy enough but I can't figure it out. For one, the model is basically two groups: the lid and the rest of the box. I'm not sure what to link the actual lid to.. the geometry component? I haven't messed with Grasshopper in months and I'm not good at all to begin with (hoping to change that). Any help or advice would be grand!

Here is a picture of what I'm working with:

Views: 665

Replies to This Discussion

Hey Adam,

I think what i would do is basically use feed the lid geometry into a BBox, then the BBox into an explode so as to obtain one of the corners vertices, you can then rotate the lid around that vertice using a plane with a normal in the horizontal. i attached a file. good luck
Attachments:
A slight variation on Brendon's method would be to identify an edge and use it in the rotate about an axis component. This way you might find it easier to choose which direction you wanted the lid to rotate.

This is more complicated than I thought! But this is great stuff, I will try both methods and learn/understand them so I can make progress in learning GH. Thanks guys!
Quick question, what component is that .5 after the Brep Explode?
Point on curve


It's used to get the mid points of the exploded edges. then sorting them based on height I can get the four curves that make up the base plane of the lid. then sorting them along the x axis I can get the edge that makes up the left hand side of the base plane. This is he axis i then rotate about.

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