davidyannick Posted April 7, 2020 Share Posted April 7, 2020 I'd like to connect points with vex, how can I access @ptnum for the second input of the wrangle ? Thanks line.hiplc Quote Link to comment Share on other sites More sharing options...
Librarian Posted April 7, 2020 Share Posted April 7, 2020 have a look at this file Quote Link to comment Share on other sites More sharing options...
DonRomano Posted April 7, 2020 Share Posted April 7, 2020 Depending on what you're trying to do, you can either use the nearpoint() function which will return the closest point of the geo in the second input (to the point you're iterating on), or maybe you can setup a custom id attribute on both points, and then use the findattribval() function to find the corresponding point. Another possibility is to iterate through a point cloud, and there are many other way.. Cheers Quote Link to comment Share on other sites More sharing options...
konstantin magnus Posted April 8, 2020 Share Posted April 8, 2020 (edited) Hi David, if both inputs have the same number of points, you can refer to the other streams position using v@opinput1_P int pt_add = addpoint(0, v@opinput1_P); addprim(0, 'polyline', i@ptnum, pt_add); KM_line.hipnc Edited April 8, 2020 by konstantin magnus Quote Link to comment Share on other sites More sharing options...
Skybar Posted April 8, 2020 Share Posted April 8, 2020 There is a preset on the point wrangle to grab second input attribute by id: 1 Quote Link to comment Share on other sites More sharing options...
davidyannick Posted April 8, 2020 Author Share Posted April 8, 2020 thanks to all for your help ! 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.