What is the simplest way in houdini to check if a Point is inside a Mesh. Think of a Fluid-Mesh and i have somewhere else a scattered points, i want to group the scattered points which are drown by the fluid-mesh.
thanks!
Check if Points are inside a Surface
9013 2 0- schiho
- Member
- 101 posts
- Joined: Dec. 2012
- Offline
- schiho
- Member
- 101 posts
- Joined: Dec. 2012
- Offline
- danwood82
- Member
- 48 posts
- Joined: June 2011
- Offline
The group SOP will work, but it's slow for heavier bounding meshes.
If you specifically want to track whether particles are inside a fluid sim mesh, then you should store the surface VDB you use to create the mesh in the first place. Then you can just sample its value at any point to test whether that point is inside or outside of the surface.
Even if you're not testing a fluid mesh, it may ultimately be faster to use VDB from Polygons and then use that to test for inclusion.
If you specifically want to track whether particles are inside a fluid sim mesh, then you should store the surface VDB you use to create the mesh in the first place. Then you can just sample its value at any point to test whether that point is inside or outside of the surface.
Even if you're not testing a fluid mesh, it may ultimately be faster to use VDB from Polygons and then use that to test for inclusion.
-
- Quick Links