Search the Community
Showing results for tags 'nearpoint'.
Found 3 results
Hello OD ones, I am relatively new to vex and houdini but I am going with my guts on this. I want to get the nearpoint P2 on geo2(input1) for every point p1 on geo1(input0). I am doing this in a wrangle node, the wrangle node is in geo1 stream. I have a few restrictions 1) I am running the wrangle on primitives, so I am finding the nearpoint for all the points per primitive, the search is limited to a particular primitive on geo2 that shares a flag with the primitive on geo1. 2)since nearpoint doesn't allow me to make group in geo2(input1) [ or i could have just grouped the points on the specific primitve on geo2 on the run and use the actual 'nearpoint' function over that group]. So using nearpoint is out of question [or is it?] 3) So I wrote the code of how I think nearpoint would work [find distance from P1 to each point on the primitive on geo2, asign it to array and get the minimum value of array and find the ptnum of the point with the min distance value.] 4) but this is taking too long to run since I have hundreds of thousands of primitives to run on, I thought it will be fast but its not, using nearpoint is so much faster even when it runs on the whole geometry of geo2, but that will get me a point from a primitive that doesnt share the same flag which I set for each primitive on geo1. Any improvements to the algorithm or a function which i missed is much appreciated!!!
Hello everyone, I was trying to form an object by finding the nearest point. The effect I got is , the points just pop up instead of actual forming the line between 2 points. I tried using a resample and to increase the search radius in OpenPointCloud in VOPSOP, but radius grows from one particular point and not from each point which gets connected. I was wondering , is it possible to creating something like a circuit , which grows and creates a network which follows the edges of the objects? I have attached a video with my problem, my file and the OTL. Thank you OPcustom.otl movie.mov nearest_point_formation_v001.hip