Jump to content

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

Link to comment
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
Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...