Jump to content

Delete objects converted from points to shapes


Recommended Posts

Still new to Houdini, but I ran into something interesting(for me) when I was trying to just take the idea of deleting particles based on their Y value. This seemed to work fine until I turned my points into solids.

 

When I was using points, in my dop network I used a geometry wrangle node with the following condition to kill particles below a certain Y value: if(@P.y<-.25) removepoint(0, @ptnum);

 

Now, when I try this with baked geometry that has been converted to solids and using a finite element solver, I can't seem to get the same results. This is where I'm lost. I'm assuming, it's because the solids are now no longer points. But I don't know how to access them for deletion.

 

I attached a file with a simple setup if you're curious to take a look. I'm just taking the idea of deleting objects based on Y height and applying it across the board with all solver/object types. 

 

Any help is much appreciated! :D 

 

Best,

 

Stark

 

 

 

pointScatter.hipnc

Link to comment
Share on other sites

 

Tetrahedra are primitives. This should work:

if (@P.y < -0.25)
{
    removeprim(0, @primnum, true);
}

Thanks for this. Is there a way that it deletes the entire mesh at once? Even if that involves deleting the particle that is created into the mesh? I see that it deletes each face, but I'm trying to delete the entire mesh at once. On and off, instead of per primitive?

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...