generative modeling for Rhino
please be aware that im still new to grasshopper (and VB) so please bear with me...
I'm feeding a VB component with a series of 3d points (a list with 4 items), I have identified the input as a List (Of point3d); the question is... how can I extract each point as an independent variable in VB?... in lemming terms -for me- I want to do the same as what the List Item component does in GH... if this makes sense.
thanks for your time
you can use the Item property of List(Of T) to access individual elements:
Dim ptA As Point3d = points.Item(0)
Since the Item property is the default property, you don't even have to specifically call it:
Dim ptA As Point3d = points(0)
done!, Thanks David
errr... sorry David,
I copied the line of code as you noted but I wanted to check the output so I renamed one of my VB components outputs as ptA and I get the following error:
Error: 'ptA' is already declared as a parameter of this method. (line 87)
...obviously the output on ptA is 0<null>; I know is probably something very dumb and basic.
David... i figured it out!