packed bounding box in world space
1632 2 2- toadstorm
- Member
- 384 posts
- Joined: April 2017
- Offline
I'm trying to get the world space bounding box of packed primitives, without unpacking, and I'm having some trouble getting it working. The `bounds` intrinsic seems to be a world space bounding box, but the numbers don't line up with what I see after unpacking… there's quite a bit of padding around it. Trying to transform the minimum and maximum of the `packedbounds` intrinsic with the packed transform isn't getting me anywhere, either. Is there a way to do this accurately that doesn't force me to unpack?
MOPs (Motion Operators for Houdini): http://www.motionoperators.com [www.motionoperators.com]
- Angel Negron
- Member
- 32 posts
- Joined: Oct. 2014
- Offline
- npetit
- Staff
- 411 posts
- Joined: Feb. 2008
- Offline
The packed geo bounds (intrinsic:packedbounds) are transformed by the packed transform (intrinsic:packedfulltransform) - this gives you the oriented bounds, and the resulting intrinsic:bounds is the bounding box of those oriented bounds, which results in the padding you are seeing.
To get the minimum sized bounds of the packed geo, you will need to unpack the geo first.
To get the minimum sized bounds of the packed geo, you will need to unpack the geo first.
-
- Quick Links