Jump to content
GRZEGORZ

Connecting N-th element from different lists

Recommended Posts

Hello!

I have question. How can I connect n-th element from different lists?

The situation looks like this: there are two circles and equal numbers of points on them. I want to connect points of the same index on both curves (the 1st on one curve, and the 1st on the 2nd one, then pair of 2nds points on each curve, then 3rd and so on).

I know that there is a way to do this manually (List Explode node), but how can I do it in more parametric way e.g. if I do not want to specify the exact number of points on curves, or I simply do not know how many of them are needed.

Connecting Nth element.vwx

Share this post


Link to post

Hi GRZEGORZ,

 

you're almost there already. To make the connections between the two circles, you need the Polygon3D node, which takes lists of points. List of points in your case would be point pairs. To get those first ZIP both outputs of the Divide Curve nodes and then CHUNK this big list into lists of two elements (pairs).

 

Antonio

 

 

1543030395_Bildschirmfoto2019-04-10um11_58_32.thumb.png.4b855390a7f3d8adfa44431933fb27fa.png

  • Like 1

Share this post


Link to post

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.   Restore formatting

  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.


 

7150 Riverwood Drive, Columbia, Maryland 21046, USA   |   Contact Us:   410-290-5114

 

© 2018 Vectorworks, Inc. All Rights Reserved. Vectorworks, Inc. is part of the Nemetschek Group.

×
×
  • Create New...