Jump to content


Bounding Box


  • Please log in to reply
7 replies to this topic

#1 renderfan

renderfan

    Peon

  • Members
  • Pip
  • 40 posts
  • Joined: 01-July 11
  • Location:europe
  • Name:erik ...

Posted 17 February 2012 - 05:53 AM

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.

#2 rich_lord

rich_lord

    Peon

  • Members
  • Pip
  • 43 posts
  • Joined: 11-January 12
  • Location:Seattle
  • Name:Richard Lord

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.

#3 renderfan

renderfan

    Peon

  • Members
  • Pip
  • 40 posts
  • Joined: 01-July 11
  • Location:europe
  • Name:erik ...

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!

#4 petz

petz

    Initiate

  • Members
  • PipPip
  • 213 posts
  • Joined: 30-June 07

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 renderfan

renderfan

    Peon

  • Members
  • Pip
  • 40 posts
  • Joined: 01-July 11
  • Location:europe
  • Name:erik ...

Posted 18 February 2012 - 04:08 AM

Dear Petz,
I upload file where Bounding Box does not work right.

Thank you!!

Attached Files



#6 renderfan

renderfan

    Peon

  • Members
  • Pip
  • 40 posts
  • Joined: 01-July 11
  • Location:europe
  • Name:erik ...

Posted 20 February 2012 - 07:19 AM

Nobody knows solution?
Please help me!

Thank you very much!!

#7 vectorblur

vectorblur

    Illusionist

  • Members
  • PipPipPip
  • 255 posts
  • Joined: 05-November 10
  • Location:India
  • Name:Gaurav Mathur

Posted 20 February 2012 - 10:46 AM

View Postrenderfan, 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 petz

petz

    Initiate

  • Members
  • PipPip
  • 213 posts
  • Joined: 30-June 07

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