csp Posted June 23, 2018 Share Posted June 23, 2018 Hi there, Lets say we have a bunch of packed primitives scattered in an area on the left side and a on the right side a geometry, like frustum. I want to detect all the packed primitives that even a small portion of their bounding box is intersecting with the geometry. I have one method of doing this but its not ideal, I was wondering if anyone knows an efficient and preferably with vex way to do this. Cheers, C Quote Link to comment Share on other sites More sharing options...
csp Posted June 23, 2018 Author Share Posted June 23, 2018 primfind in vex seems to do pretty good job but it will use the bounding box of the filter-geometry and not its actual shape. Quote Link to comment Share on other sites More sharing options...
PixelNinja Posted June 23, 2018 Share Posted June 23, 2018 Maybe try converting the packed prims into bounding box geometry, then Boolean against the collision geometry in detect mode. That will give you groups/attrs on each box that intersects the geo. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.