I'm trying to create a grid that will match the dimensions (and later the orientation) of an angled primitive (a quad not aligned on any of the three axes). In the Grid node, I used expressions to get the bounding box dimensions (with Oriented Bounding Box checked). D_XSize works perfectly. D_YSize and D_ZSize are both too short, but neither of them is 0, which I would expect considering the result of the Oriented Bounding Box.
Maybe I'm making things too hard for myself, but I'm curious about what's going on here.
Wrong Dimensions Using Oriented Bound Box to create a grid
468 3 0-
- CynthiaDesgagne
- Member
- 7 posts
- Joined: 2月 2024
- Offline
-
- tamte
- Member
- 9670 posts
- Joined: 7月 2007
- Offline
bbox() function gives you axis aligned bbox of the geo, it doesn't matter that the geo is the result of fitting oriented bounding box to other geo
you can however output Radii Attribute from your Bounds SOP to get the XYZ half size values for the fitted oriented bbox
you can however output Radii Attribute from your Bounds SOP to get the XYZ half size values for the fitted oriented bbox
Tomas Slancik
CG Supervisor
Framestore, NY
CG Supervisor
Framestore, NY
-
- CynthiaDesgagne
- Member
- 7 posts
- Joined: 2月 2024
- Offline
tamte
bbox() function gives you axis aligned bbox of the geo, it doesn't matter that the geo is the result of fitting oriented bounding box to other geo
you can however output Radii Attribute from your Bounds SOP to get the XYZ half size values for the fitted oriented bbox
Thank you Tomas, I added an Attribute Wrangle to manipulate the Radii attribute (creating attributes "height" and "width" since I can't assume X is always the width) and refer to this node when creating the Grid.
-
- animatrix_
- Member
- 5264 posts
- Joined: 2月 2012
- Offline
Hi,
You can solve it numerically using SVD (singular value decomposition):
https://www.sidefx.com/forum/topic/84345/#post-364636 [www.sidefx.com]
You can solve it numerically using SVD (singular value decomposition):
https://www.sidefx.com/forum/topic/84345/#post-364636 [www.sidefx.com]
Senior FX TD @ Industrial Light & Magic
Get to the NEXT level in Houdini & VEX with Pragmatic VEX! [www.pragmatic-vfx.com] https://lnk.bio/animatrix [lnk.bio]
Get to the NEXT level in Houdini & VEX with Pragmatic VEX! [www.pragmatic-vfx.com] https://lnk.bio/animatrix [lnk.bio]
-
- Quick Links

