Combinations of nested lists

Hello, I am trying to figure out how to get the result on the right given the list on the left. The list on the left will always contain 4 lists of points ( every list can have more than 1 point ) from which I want to create all possible combinations to use for vertices for quadrilaterals. Thanks!

1 Like

@P.Tod ,

i can just give a starter for this topic

A = IN[0]

OUT = [reduce(lambda a,b: a+b, i) for i in A]


I think some list.Lacing should be also included

I’m pretty sure there’s a far simpler way but I did it like this:


1 Like

Thanks @Alien you can check the full graph that I needed this for here Grid subdivision from boundary of polygon :slight_smile: