And (b=y) And (c=x), "A4",If(a=x) And (b=y) And (c=y), "A3",If((a=y) And (b=x) And (c=y), "B1",If((a=y) And (b=y) And (c=x), "B3",If((a=y) And (b=y) And (c=y), "B2","Erreur"))))))
…
tain every third item from MAIN LIST A, starting from index#1. SUB LIST A3 needs to contain every third item from MAIN LIST A, starting from index#2.
I need a way to extract every Nth item from a list, in the same way that Cull Nth works, just inversely-so.
I am fairly new to grasshopper, and I can see in my mind there is a solution but I am not familiar enough with the components yet.
I've read this thread:
http://www.grasshopper3d.com/forum/topics/copy-every-nth-item-of-a-list-1
But I didn't quite understand how to apply it to my situation.
Any suggestions would be greatly appreciated.
Thanks…
), my script is triangulating slabs by drawing line in a crossreference way. This part was "easy"
What I want to do now is to link those slabs together
ie : if a slab is a surface AxBxCxDx
I want to link A1 to A2, B1 to B2, C1 to C2 etc.
I know it's a simple question of restructuring the tree in my Pshift component, so that I can use the line component with shortest list, and link each of those points.
Any ideas on how to fix that?
Thank you
Simon…
rface(test_brep, test_surface, 0.1, curves_list, points_list)
and I get back:
1. Error (BC30311): Value of type 'System.Collections.Generic.List(Of Rhino.Geometry.Curve)' cannot be converted to '1-dimensional array of Rhino.Geometry.Curve'. (line 97)
2. Error (BC30311): Value of type 'System.Collections.Generic.List(Of Rhino.Geometry.Point3d)' cannot be converted to '1-dimensional array of Rhino.Geometry.Point3d'. (line 97)
Could anyone tell me what I'm doing wrong?
Thanks!…