Jump to content
Sign in to follow this  
nicoladanese

cull spheres based on bounding object

Recommended Posts

Hey All!

I'm importing a bunch of animated spheres through alembic inside houdini, and I'm trying to delete all the spheres outside of a bounding object, this simple setup works but it culls points so I end up having half sphere deleted and the other half still on. How can I tell to keep or delete the whole sphere, without having half of it. it could be something like "if the center of the sphere is inside the bounding object keep it, otherwise delete it", or "if at least one point is deleted, then delete the whole sphere"

thanks!!

delete_spheres.png

Share this post


Link to post
Share on other sites

convert alembic into polygons, pack them with assemble then do the group thing on points and it should work

Share this post


Link to post
Share on other sites

while visually it looks fine...to me it's testing for intersection against the sphere centres...not its surface/volume...so if the cutoffs is just slightly into the surface...now it won't qualify as 'to be deleted'

I've done a workaround here..where it cuts as before...leaving holes in some spheres...then I check for 'holes'...if you have a hole..you're gone !!!

DeleteWholeSphere.hipnc

DeleteWholeSphere.jpg

Edited by Noobini

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
Sign in to follow this  

×