Jump to content
csp

Find Intersecting Packed Primitives with a geometry

Recommended Posts

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,

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×