Jump to content
Developer Wiki and Function Reference Links Read more... ×
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

 

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.

×