packed bounding box in world space
1641 2 2- toadstorm
- Member
- 385 posts
- Joined: 4月 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: 10月 2014
- Offline
- npetit
- スタッフ
- 412 posts
- Joined: 2月 2008
- Online
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