How can I get a directional bbox of a more complex rotated shape?

   1653   2   0
User Avatar
Member
22 posts
Joined: Nov. 2016
Offline
Is there a fairly straight forward way of getting the a directional bbox of a rotated geo?

I'm trying to build a HDA that will not only attach to the centroid of the geo passed but will also scale to its size as well. I can figure out the average normal easily enough. It's also straightforward to get an accurate bbox of a non-rotate shape, but as soon as I pass in a rotated prim the bbox is no longer useful. Do I need to pcopen to get the furthest points and generate a new bbox or is there an easier way?

base shape in want to match rotation/shape to:


geo i want to rotate and scale match to the previous shape:


thanks!
Edited by traden1976 - March 24, 2019 13:05:25
User Avatar
Member
459 posts
Joined: Oct. 2011
Offline
Have you tried the Bound SOPs Oriented Bounding Box option?

-b
http://www.racecar.no [www.racecar.no]
User Avatar
Member
22 posts
Joined: Nov. 2016
Offline
@bonsak: simple solution. Thanks!
  • Quick Links