Grasshopper

algorithmic modeling for Rhino

Hello everyone,

 

     I am trying to figure out a way to align a bounding box to the object it is bounding. The bounding box will be applied to the closest box to a point so it must align to the object that it will be applied to. Here is the definition I have so far. Im new to this and appreciate any help anyone might have.

 

Thanks,

Mike

Views: 5536

Attachments:

Replies to This Discussion

you could plug the geometry directly into a "box" parameter in params > geometry. This will make the bounding box exactly wrap the extents of the geometry, or use a custom bounding box. Then get the brep components from the geometry and the bounding box and measure the angle between an edge curve on the geometry and the edge curve on the bounding box, then rotate the bounding box based on that angle. That's just thinking out loud. don't have Rhino in front of me, there's maybe a better faster way.

Thanks Mike,

 

    Im gonna see if this works. Im trying to figure out how to logically arrive to get the box angle to change from one object to the next. I will try what you suggested.

Hi Mike, you can align the orientation plane for the bounding box with one of the brep's edges.

Thanks Pieter,

 

      Ill try this approach.

Both ways are parametrically drived from the geometries rotation, thus being as logical as the the logic behind the geometries rotation. Peters way is much more efficient, and faster.

I have used Bounding Box component and a plane to change its orientation... it works fine, the issue comes when i use box components to extract the x,y,z parameters and use them to remap values, it uses the parameter values of the original bounding box,without the changed orientation.. what should i do to extract values of the rotated bounding box?

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service