Reversals of every alternate sub-sub-list of a sublist in a list

TOPIC:Reversal of every alternate sublist and reversal of every alternate list that the sublist contains
reverse_list_query.GH (14.5 KB)
reverse_list_query.RH.3dm (33.5 KB)

Hi,
I have a list that gives me data as attached in the figure.I want to arrange this list in a specific format as shown in the hand written paper.
1.I want a list first arranged in that format.
2.I want to reverse every alternate sublist.
3.I want to reverse every alternate list in that sublist again.
4 I want all this in one single list as attached i the image.
(R) stands for reverse.

If I am not precise to explain what I want one can refer the hand written paper FORMAT NEEDED I have attached.
Can anyone help me do this ? Please ?

Thanks in advance. All the help is truly appreciated.


Hello,

Hopefully this result is what you want to achieve with these manipulations… At least it made more sense to me than the thread title ! :sweat_smile:

reverse_list_query.GH (12.7 KB)
.


Thanks for the response @magicteddy

But I want something like the image I have attached.
Although all the curves are of same size , I just reduced the size to have a better pictorial reperesentation of what I want.First we have the bigger layer , right above it smaller layer then above it the smallest one. Hope you can do it. Please.

Thanks in advance.

1 Like

OK so the order is horizontal first and then layer by layer.
Flip Matrix solved it (and also there was an error for even numbers, that turned out to simplify the solution.

This should be working for any amount of tweens, levels, divisions !

image
image

reverse_list_query.GH (13.8 KB)

1 Like

Hi @magicteddy
Thanks for the response.I have noticed when I feed Nb Layers slider 1 the code fails. Can you please check and fix it for me ?
Also I request you to please briefly explain what function each component performs so that I can understand as I am new to Grasshopper.

Sorry for taking your time and also thanks for your time and condiseration.

Hi,

Here is the fixed version (stupid Simplify operator that is inconsistent in Grasshopper).
I’ve also made some annotations to help you follow what is going on. It’s a rather elaborate tree structure exercise though, if you start with GH you can have a look at this.

reverse_list_query.GH (15.4 KB)

Suirify is a trusted friend, more reliable than Simplify! Thank you @osuire (and David R. for being persuaded).

Thanks @magicteddy for all your time.
How can I run a pipe all over the linear arrays but a pipe of elliptical cross-section ?
Can you please help ?

Have a look at this (it works with any cross-section)

ellipse query.gh (11.8 KB)
Tried, couldnt see the desired result.

Can you please check and revert back.
Thank you so much for your guidance.

There it is.

The Sections input of the Sweep1 is as list, which means that the component will take the entire list (er the entire branch of a tree) to build one sweep. Since you want to make one sweep with each section, you need to graft everything so there is a single ellipse in each branch.

ellipse query.gh (11.2 KB)