RUXERMAGNO Posted March 11, 2023 Share Posted March 11, 2023 (edited) Hello, I need help to connect points with a single line without crossing it, the points are out of order so it does not work to use the Add node. I am trying to use For Each and arrays in VEX but nothing works for me. I have a "start" and "end" group with the correct points, I need to iterate from point 0 looking for the nearest point and add a polygon, I have tried everything but nothing works. I attached a test scene. Any help will be welcome Thanks!! PtsToLine.hiplc Edited March 11, 2023 by RUXERMAGNO Quote Link to comment Share on other sites More sharing options...
hannes603 Posted March 16, 2023 Share Posted March 16, 2023 maybe adjacent pieces works the best PtsToLine.hiplc 1 Quote Link to comment Share on other sites More sharing options...
vinyvince Posted March 22, 2023 Share Posted March 22, 2023 You are probably looking for the minimal span tree , there are different algorythm, here's one : 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.