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.
Bounding Box
Started by renderfan, Feb 17 2012 05:53 AM
7 replies to this topic
#1
Posted 17 February 2012 - 05:53 AM
#2
Posted 17 February 2012 - 07:59 AM
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.
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.
#3
Posted 18 February 2012 - 01:33 AM
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!
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!
#4
Posted 18 February 2012 - 02:21 AM
OOBB usually does a good job in houdini! could you upload a file where i doesn´t?
#5
Posted 18 February 2012 - 04:08 AM
Dear Petz,
I upload file where Bounding Box does not work right.
Thank you!!
I upload file where Bounding Box does not work right.
Thank you!!
Attached Files
#6
Posted 20 February 2012 - 07:19 AM
Nobody knows solution?
Please help me!
Thank you very much!!
Please help me!
Thank you very much!!
#7
Posted 20 February 2012 - 10:46 AM
renderfan, on 20 February 2012 - 07:19 AM, said:
Nobody knows solution?
http://forums.odforc...d-bounding-box/
Follow this thread and you will know there are folks who fathered OBBs using eigenvectors.
Cheers,
Eh *munch munch* what sop, doc?
#8
Posted 20 February 2012 - 12:38 PM
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
Attached Files
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users











