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?