If you want to create lines between two sets of points (each set being
the result of a surface division).
Why can't you just feed those points into the A and B fields of a Line
component?
--
David Rutten
Robert McNeel & Associates
On Oct 2, 4:27 pm, Pax <[EMAIL PROTECTED]> wrote:
> Dear David and all,
>
> I have generated a surface off of which I have generated a grid of
> {uv} points on the surface. What I am trying to do now is connect
> these points from one to another within grasshopper, to generate a
> grid of straight lines (that vary as I vary the surface) but I cannot
> identify each point individually as they are bound together as a list
> of points (the number of points in the list is variable).
>
> What I was thinking... If I use decompose point, I can split the list
> of 200ish sets of coordinates into their 3 lists respectively giving
> their x, y, z positions, but then how can I pair them up again, one by
> one, so I have each point controllable. and then... do the thing. But
> I seem to have missplaced my towel today and it's not going great... I
> tried to use the method of combining the sets and comparing this with
> a sequence of numbers, but I couldn't get it working... also, using a
> Series component and doing " {Y} = 1, 3, 5, 7, 9, 11 .... (2*N - 1) ",
> I don't get that series, although I see that I should, no matter what
> I set "N" as, it just doesn't give me the required series... With
> 2*N-1, and N set as "1", I get {Y} = 0, 1, 2, 3, 4, 5, 6, 7, 8, ...
>
> Maybe I am going about this entirely the wrong way... but if you have
> any ideas on how to get to my aim, please share!
>
> Many thanks,
> Pax
>
> On Sep 12, 8:40 am, fraguada <[EMAIL PROTECTED]> wrote:
>
> >http://groups.google.com/group/grasshopper3d/web/ghSphere.png
>
> > Thanks David. I got the lists merged with the method you proposed, it
> > is actually something I do all the time with rhinoscript, just had not
> > tried the sorting in GH. Not exactly the result I was expected, but
> > now I understand why it is doing that. I figure I can do this in a
> > few other ways. Thanks for the tip!
>
> > luis
>
> > On Sep 12, 4:28 am, David Rutten <[EMAIL PROTECTED]> wrote:
>
> > > This would be a piece of cake with the scripting components. But
> > > without them I think yor best shot is to use the Sort component:
>
> > > - You have 2 lists of data {A, B} both of equal length {N}.
> > > - You generate 2 lists of numbers {X, Y}, using the Series or Range
> > > components.
> > > {X} = 0, 2, 4, 6, 8, 10 .... (2*N - 2)
> > > {Y} = 1, 3, 5, 7, 9, 11 .... (2*N - 1)
>
> > > - You combine {A} and {B} into a single parameter, appending {B} to
> > > {A}, giving you {C}
> > > - You combine {X} and {Y} into a single parameter, appending {Y} to
> > > {X}, giving you {Z}
> > > {Z} = 0, 2, 4, 6, 8, 10 ... (2*N-2), 1, 3, 5, 7, 9, 11, ....(2*N-1)
>
> > > - You sort {Z}, while synchronously sorting {C}, and the output of C
> > > is the weaved list.
>
> > > --
> > > David Rutten
> > > Robert McNeel & Associates
>
> > > On Sep 11, 6:52 pm, fraguada <[EMAIL PROTECTED]> wrote:
>
> > > > Hello all,
>
> > > > was wondering if anyone has any suggestions on how I could merge 2
> > > > point lists so that the resulting pointlist would be a "weave" of
> > > > both. What I have is a sphere, its surface points, and vectors from
> > > > the center of the sphere out to the sphere's surface points, and
> > > > beyond. I cull every other surface point, and cull every other offset
> > > > surface point. I want to make a spiky surface. I understand how to
> > > > make a surface from points, but I need to merge my two point lists.
> > > > Here is what I need to do with the data:
>
> > > > Point List A:
>
> > > > A(0),A(1), A(2), A(3)...A(n)
>
> > > > Point List B:
>
> > > > B(0),B(1), B(2), B(3)...B(n)
>
> > > > Merged Point List:
>
> > > > A(0), B(0), A(1), B(1), A(2), B(2)...A(n), B(n)
>
> > > > What would I do to script it...
>
> > > > something like
>
> > > > (pseudo)
> > > > Dim arrA, arrB, arrRes
> > > > Dim i, cnt
>
> > > > arrA = Surface A Points
> > > > arrB = Surface B Points
>
> > > > ReDim arrRes(UBOUND(arrA)+UBOUND(arrB))
>
> > > > cnt = 0
>
> > > > For i = 0 to UBOUND(arrA)
>
> > > > arrRes(cnt) = arrA(i)
>
> > > > cnt = cnt+1
>
> > > > arrRes(cnt) = arrB(i)
>
> > > > cnt = cnt+1
>
> > > > Next
>
> > > > Any ideas?- Hide quoted text -
>
> > - Show quoted text -