Jump to content

Connecting 2 set of points one by one


Kadeno

Recommended Posts

Hello,

I have an issue connecting two sets of points the way I want.

As it can be seen in the screenshot, I have two groups of points, one along a square and an other along a smaller square.

They each have exactly the same amount of points and I want each of the point from the bigger square to be connected to one point of the smaller square.

Any help is appreciated.

Thx. 

squarePoints.PNG

Link to comment
Share on other sites

It depends on whether the pairing information exists or not.

In your case, it's trivial because each point should be connected to another point which point number  is equal to @ptnum+27

Use: Add SOP / Polygons / By Group /  Skip Every Nth point / set N to 27

If  the pairing information is gone, then it's more work. It would be something like sorting each set of points with respect to their angle (see atan2) relative the centroid, then find the pairing shift  (see sort / Point sort / shift) which will minimize the overall edge length. 

Link to comment
Share on other sites

Hi
Here's another solution independent of the order of the points. But your sets of points, at some point, has to be connected. I guess at first they did.
This solution is a mix of a tuto from entagma and another one another one from Junichiro Horikawa here.
It's about connecting two (or more) groups of points according to distance.

there are two sets of groups, one created with the group sop, the other created with VEX.
Both are not necessary, but I was experimenting with different methods.

Capture.JPG

Connecting_two_groups.hipnc

Edited by flcc
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...