renderfan Posted February 17, 2012 Share Posted February 17, 2012 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. Quote Link to comment Share on other sites More sharing options...
rich_lord Posted February 17, 2012 Share Posted February 17, 2012 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. Quote Link to comment Share on other sites More sharing options...
renderfan Posted February 18, 2012 Author Share Posted February 18, 2012 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! Quote Link to comment Share on other sites More sharing options...
petz Posted February 18, 2012 Share Posted February 18, 2012 OOBB usually does a good job in houdini! could you upload a file where i doesn´t? Quote Link to comment Share on other sites More sharing options...
renderfan Posted February 18, 2012 Author Share Posted February 18, 2012 Dear Petz, I upload file where Bounding Box does not work right. Thank you!! BoundingBox.hipnc Quote Link to comment Share on other sites More sharing options...
renderfan Posted February 20, 2012 Author Share Posted February 20, 2012 Nobody knows solution? Please help me! Thank you very much!! Quote Link to comment Share on other sites More sharing options...
gaurav Posted February 20, 2012 Share Posted February 20, 2012 Nobody knows solution? Follow this thread and you will know there are folks who fathered OBBs using eigenvectors. Cheers, Quote Link to comment Share on other sites More sharing options...
petz Posted February 20, 2012 Share Posted February 20, 2012 Follow this thread and you will know there are folks who fathered OBBs using eigenvectors. oobb pretty much allways rely on eigenvectors. @renderfan file is attached. its not really an elegant solution but should do the job. at least as long as you don´t have a much higher polycount. hth. petz BoundingBox_new.hipnc 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.