karen Posted May 13, 2023 Share Posted May 13, 2023 in attached file, I scatter some points on a geometry and I need to get the closest point in the geometry to the scatter points, just one for each. The the geometry is made up of points, let's call them connected points, and I scatter unconnected points, but I want the closest connected point to each unconnected point. I transfer Cd just for visibility. Treat input geo as a black box. one_geo_point_per_scatter_point.hiplc Quote Link to comment Share on other sites More sharing options...
Atom Posted May 13, 2023 Share Posted May 13, 2023 Check out the nearpoint vex function. https://www.sidefx.com/docs/houdini/vex/functions/nearpoint.html Quote Link to comment Share on other sites More sharing options...
konstantin magnus Posted May 13, 2023 Share Posted May 13, 2023 Hi karen, Store the nearest mesh point for each scatter point. Promote nearest point numbers to an array under detail. Group the mesh points that can be found inside the array. group_closest.hipnc Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.