Byter3 0 Posted March 2, 2017 Hi there! It might be a super easy thing what I'm asking, but I can't find the solution. So a I scattered a lot of points on to a geo, and I want to generate lines between the points, but only if the distance between those n number of points lower than x. I tried write it in wex based on the help, but I couldnt get to work. It might be super easy, just I'm over complicate it. Help would be very much appreciated. Thanks! Share this post Link to post Share on other sites
acey195 174 Posted March 2, 2017 int nearbyPts[], pt, connectingPrim; nearbyPts = nearpoints(0, v@P, chf("range")); foreach(pt; nearbyPts) { if(pt <= @ptnum) continue; connectingPrim = addprim(0, "polyline"); addvertex(0, connectingPrim, @ptnum); addvertex(0, connectingPrim, pt); } Did that from the top of my head, but I think that should work for you. copy paste it into an attribute wrangle running over points. 2 Share this post Link to post Share on other sites
Byter3 0 Posted March 3, 2017 Thank you so much for your help!b It does what I really need. I'm going to dig myself into wex. Can't live without knowing wex. Thanks! Share this post Link to post Share on other sites