Cross Product between 2 lists containing sublists

Hi!
I’m trying to make a cross product between 2 sublists of 2 différent lists with the same index, here is a screen of the 2 lists containing 6 sublists each.
Thank you for your help!

I think you just need to adjust your levels. See below

Thank you for your reply, what is the node “+” used for?

And how to integrate that to what I want to do, meaning, I want the geometry intersection between the first element of sublist 1 and the elements of the the elements of the sublist 1 of the other list?

+ is just an addition node to show you how your levels should look. If you click the arrows next to the input lists you can check the box to add levels. If you look at the bottom on your list you will see what levels your data is at. You can then change the node to read the data at the correct level.

Keep you same graph just change the levels in Geometry.Intersect

Haha I didn’t knew about this option, you are a genius, it still doesn’t work like I wanted but I think something else is wrong.
I imagine that you adjust the levels like you want? And can you adjust them only for a list and keep the other as list structure?
Thank you a lot!

@kenaan here is more info on List Levels: http://dynamobim.org/introducing-listlevel-working-with-lists-made-easier/

Could you clarify more what end result you are looking for? :slight_smile:

2 Likes

Thank you for the topic, which is very interesting.
I’m trying to find for each room, the interior surface area of all the walls surrounding this room.
I don’t know if it’s clear enough.

Hi Everyone,

I hope it’s okay to jump in on this old thread. I’m trying to do the same thing (cross product two sublists) and for the life of me can’t figure it out. Any ideas?

So I found a solution (possibly overly complicated but it seams to work). I isolated the letters (A & B) in both lists and passed them through == with the same cross product lacing as shown above. Then used that Boolean list to filter my actual list that created the cross product in the + node. This eliminates all the not wanted results.

Below is a screen show of my actual data. Like I said not pretty but I think it works.

Just wanted to give you an alternative solution :slight_smile:

1 Like

Very nice! Thanks! I need to learn more about the more advanced uses of the Code Block node… and get my brain to think this way. LOL

Thanks again,

Jason