Byter3 Posted March 2, 2017 Share 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! Quote Link to comment Share on other sites More sharing options...
acey195 Posted March 2, 2017 Share 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 Quote Link to comment Share on other sites More sharing options...
Byter3 Posted March 3, 2017 Author Share 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! 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.