Jump to content

Transformation Matrix Of Oriented Bounding Box


Recommended Posts

You can build an orientation matrix using an axis built from one of the faces. This could be done in vex.

This thread might help

Orientation of a triangle

Not sure if there is an easier way.

I did write a vex sop to build an oriented bounding box, its up on exchange, that may be useful too.

One of the problems you'll hit is that the oriented bounding box doesn't really know if your object coming in is right side up or upside down. So it will not constraing the bounding box consistently as the object rotates through space. Furthermore, the face ordering will change on you mid-stream, so building a matrix therefrom will present you with a lot of flipping.

Link to comment
Share on other sites

Be aware too that oriented bounding boxes give mixed results, the box orientation you get is not always what you would get if you were to position the thing by hand.

Mine works best when there is alot of difference between the scales of the object in all 3 axis.

See attached for a comparison to the box sop.

Also, always wondered why that option is in the box sop but not the bounds sop....

ExampleOrientedBounding.hipnc

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...