Jump to content

(VEX) Connecting disordered points with lines


Recommended Posts

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!!

image.thumb.png.fa9eca1bdb22d2e91fd6ac8020e139b9.png

 

image.thumb.png.c24240736318ac191495028f1bfa3655.png

 

image.thumb.png.76caf2a3b9290559a3ffbeaabe8c862f.png

 

 

PtsToLine.hiplc

 

 

 

Edited by RUXERMAGNO
Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...