{2:2} {2:3}
Each branch has 10 points. I'd like all the points in {0} to draw lines to each sub-branch {0,#}, {1} to {1:#}, etc. I am simply confounded, how would this be accomplished?
Thanks!
…
the paths.
Structure one (paths = 2)
{1;0;0;0;0}(N=10)
{2;0;0;0;0}(N=10)
Structure two (paths = 2)
{1;0;0;0}(N=10)
{2;0;0;0}(N=10)
If i merge the two lists i don't get a structure with 2 paths:
Structure result af merging (2 paths)
{1}(N=20)
{2}(N=20)
as i had expected, but instead a structure with 4 paths because of the difference in amount of zeroes:
Structure result af merging (4 paths)
{1;0;0;0;0}(N=10)
{2;0;0;0;0}(N=10)
{1;0;0;0}(N=10)
{2;0;0;0}(N=10)
The amount of zeroes changes all the time when working on the definition, so what im asking is if there some way to adress paths with * number of zeroes behind.…
operate on the data from your own components.
2) Put your 2D array data inside a Grasshopper.Kernel.Types.GH_ObjectWrapper instance, which is a class that can be used to transmit non-standard data through wires. Again, you'll only be able to use this from your own components.
3) Create your own data-type (implement IGH_Goo) as a 2D array.
4) (and my favourite) store your 2D data in a DataTree instead. All grasshopper data is stored in trees and it's possible to mimic a 2D array this way. For example, you could create a tree like this:
{0} N = 10
{1} N = 10
{2} N = 10
{3} N = 10
{4} N = 10
This would be analogous to a 2D matrix of 5 x 10.
--
David Rutten
david@mcneel.com
Poprad, Slovakia…
number of divisions on that curve as in the defintion (i.e. by 4). The offset in the def is slightly different and should cull two or three more curves as in the lists that show my aim below.
Basically I want to look into each branch of the groups of points from each closed curve . Marking in a list whether it contains a one or a zero (0= outside 1 = coincidents).
{0;0}0. 21. 22. 23. 2 {0;1} 0. 01. 22. 03. 2 {0;2}0. 01. 02. 03. 0 {0;3}0. 21. 22. 23. 2 {0;4}0. 21. 22. 23. 2 {0;5}0. 21. 22. 23. 2 {0;6}0. 01. 22. 23. 1 {0;7}0. 21. 22. 03. 0 {0;8}0. 21. 22. 23. 2 {0;9}0. 21. 22. 23. 2 {0;10}0. 21. 22. 23. 2 {0;11}0. 21. 22. 23. 2 {0;12}0. 21. 22. 23. 2 {0;13}0. 01. 22. 23. 0 {0;14}0. 21. 22. 23. 2
I want to create a list from these points. That marks each curve that pokes out, in a cull pattern as such:
20022210222202
Using a 1 where there are co-incidents in the curve points and the boundary. A 2 for true (outside points) and a 0 for containment. So I might be able to use the 1 in future developments - however if a true false list is easiest I can live with that.
So could I use F(x) function? - to look for 0 or 1's in each bunch of points and thus list as such for a cull pattern? or will Path mapper help me here? Or can I rely on simply grafting and splitting??
I am usure of the neatest solution and would love to learn. Hope you can direct me.rgrds
J.…
nent outputs with 10 curves each or a single parameter/component output that contains 3 paths of 10 elements?
I'm guessing it's the former. If so, then just place a "graft tree" component after each list, then connect the 3 graft tree components to the join component.…
d these divided points need to be moved a multiple number of times each based on a series of values that have been produced for each point, so each branch of curve points needs to be fed into each of multiple branches of the move values that have been produced,
lets say I have 3 branches of divided curves and 4 branches of move values, each of the 3 branches of divided curves needs to apply the 4 branches of move values, to make it simpler I simplified both the branches of divided curved and the branches of move values for each point
divided curves need to each map onto all the multiple move values
Divided Curves move values
{0} N=10 (no. of division points) {0} N=10
{1} N=10 {1} N=10
{2} N=10 {2} N=10
{3} N=10
The Grasshopper file and Rhino file attached both show what Im trying to achieve but Im sure there’s a simpler way of telling the Path mapper to duplicate those branches than what I have, or perhaps I’m going about this the wrong way…I want to figure this out as I plan to base future work on this method and Im sure there are simpler ways of doing this…