benderonline Posted October 21, 2015 Share Posted October 21, 2015 (edited) Hi there, I have a point distribution, in VOPS I'm trying to get a single point that has the most amount of surrounding points in that distribution (within a given radius for each point)... I've done it once before but can't recall how... I think I was using a pciterate and a pcfind in a while loop, but it's totally slipped my mind. Help would be appreciated! Edited October 21, 2015 by benderonline Quote Link to comment Share on other sites More sharing options...
mestela Posted October 21, 2015 Share Posted October 21, 2015 stick this in a wrangle: float maxdist =ch('dist'); i@near = len(nearpoints(0,@P,maxdist)); the 'near' attribute tells you how many points are within the range of the 'dist' slider. Then put down a sort sop, by attribute, 'near', reverse, the 0 point will be the one (or one of the ones) with the most neighbours. Quote Link to comment Share on other sites More sharing options...
benderonline Posted October 21, 2015 Author Share Posted October 21, 2015 I had a feeling a former colleague would come to the rescue... Quote Link to comment Share on other sites More sharing options...
mestela Posted October 21, 2015 Share Posted October 21, 2015 You're welcome? 1 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.