connect line on every other point of a grid

   2788   5   0
User Avatar
Member
16 posts
Joined: Jan. 2016
Offline
Hi all

Im wondering whats are ways to connect lines only on every other points of a grid.
Please see me attached image. I only want line to connect points 1-2, 3-4, 5-6, 7-8, 9-10
I used “group by range”, and I was able to select the points that I thought needed for connection.
Then I use a “add” node to connect points. However, Im not sure how to get rid of line between points 2-3,4-5,6-7,8-9,10-11
thanks

Attachments:
IMG_8010 (1).jpg (1.1 MB)

User Avatar
Member
16 posts
Joined: Jan. 2016
Offline
I think I have a solution now.
I just found out the “sort” node
and I need to use “group by range”, set select “2” in every “4” to make it work
but if you have any other solution, please let me know, thanks a lot
Frankt
User Avatar
Member
209 posts
Joined: March 2018
Offline
Because red lines are chord of triangles, you can use Group SOP and enable Include by Edges then turn on Max Edge Length to capture other edge of triangles and finally use a Dissolve SOP node with the group to remove shorter edges.
Hope this helps too!
User Avatar
Member
555 posts
Joined: Feb. 2017
Offline
it's all in the Add
go ahead and change number of columns of the grid…it will adapt.

Attachments:
Diags.jpg (56.7 KB)
vu_addDiags.hiplc (72.7 KB)

User Avatar
Member
16 posts
Joined: Jan. 2016
Offline
Thanks so much N-G and Vusta
They are nice trick, I really need to more more about expression, thanks again
Frankt
User Avatar
Member
77 posts
Joined: Feb. 2017
Offline
I try to add line between all pts
Edited by zengchen - March 27, 2020 23:50:24

Attachments:
untitled.hiplc (79.8 KB)
2020-03-28_114607.png (9.5 KB)

My Youtube Channel [www.youtube.com]
  • Quick Links