Jump to content

Bounding Box


renderfan

Recommended Posts

I am looking for way to find minimum bounding box of geometry because i want to reorient the geometry to best orientation. For this i would like to use bounding box. I found Oriented Bounding Box in Bound-SOP but this does not work allways right. For example if i have box or simple geometry and want best bounding box then it produces sometimes not very good result.

Sorry for so many questions.

Link to comment
Share on other sites

Some SOPs(like Transform) have the $XMIN, $YMIN and $ZMIN local variables to get the minimum bounding box of the input geo.

Theres also the bbox function which you can use to get bounding box information. I think you use it like this :- bbox("surfaceNode", D_XMIN) to get the minimum X of the bounding box.

Im not sure if these methods will return a better bounding box than the bound SOP though. I havent played with any of this too much.

Link to comment
Share on other sites

Dear rich-lord thank you for reply!

I think i must be more clear with what i want. I know about the expressions to get min or max of bounding box but i search for Bounding Box with minimum volume. The Oriented Bounding Box Sop does not allways output good result. For example with some 2D-Shapes i have problems. How can i improve this?

Thank you very much!

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...