;-2;-1;0;1;2;3) and beside that i don't want to have 0 as a result.
So at the End I would like to have only 6 numbers: -3;-2;-1;1;2;3
I already came to an result with integer numbers but it actually only rounded up the random results. when one of the results was -0.473 it ended up as 0.
I'm sure it's pretty easy to solve, I'm just missing something.
thx for help…
I have this :
list 3 : 0 1 2 3 4 5 6
list 2 : 0 1 2 3 4 5 6
list 1 : 0 1 2 3 4 5 6
list 0 : 0 1 2 3 4 5 6
and I want to group the points of index 0 in a branch, the points of index 1 in another branch and so on.
I attached a file in which I generated the points.
Thank you in advance for your help !
Regards
Red…
in the desired order.
0 = 0
1 = 1
2 = 6
3 = 7
4 = 8
5 = 9
6 = 12
7 = 13
8 = 2
9 = 3
10 = 4
11 = 5
12 = 10
13 = 11
Where the first number is the index and the second number is the actual sorting key. Then you sort these keys while sorting your curves in parallel using the A input of the Sort component.
--
David Rutten
david@mcneel.com
Poprad, Slovakia…
, _ {2, 4, 3}, _ {1, 3, 4}}
Dim MatrixB(,) As Double = { _ {1, 0, 0}, _ {0, 1, 0}, _ {0, 0, 1}}
Dim MatrixC(,) As Double = { _ {0, 0, 0}, _ {0, 0, 0}, _ {0, 0, 0}}
Public Shared Operator + ( _ a As MatrixA, _ b As MatrixB_ ) As MatrixC
A = MatrixC
But I guess the "Public Shared..." part is a RH 5 function (?) and I'm running RH4!
Any ideas?
Also, not sure if I need to define MatrixC before the multiplication (?) but it's an attempt to troubleshoot...
Thanks, Peter…
(0) --> {0}(0) overwrite etc
---
{2;2}(1) --> {2}(1)
{2;3}(0) --> {2}(0)
{2;3}(1) --> {2}(1)
Correct use of index in this case {A;B}(i) --> {A}
but because you don't need to use the index on the right hand side, don't specify it on the left, as it takes the [Path Mapper] longer to process when the index is used.…
Added by Danny Boyes at 2:00pm on September 25, 2011
s separately, once for each branch (0,1)(0)(0,1,2,3)
3) you specify list and flatten: the script runs once as one long list but branch divisions are not maintained (0,1,0,0,1,2,3)
see p114 of the Primer for more…
then the second part (0) is returned. If it isn't, then the third part (x) is returned.
Thus, this expression keeps numbers below 50 intact but all numbers larger than 50 are replaced by 0.0
--
David Rutten
david@mcneel.com
Poprad, Slovakia…