as follows.
We have a grid which consists of a collection of columns, where each column consists of a list of points. You said flattening is out of the question, so we need to cull items from each list individually.
Let's say our culling pattern is KDDDKDD (repeat as needed). K = Keep, D = Ditch. If a column contains 18 points, the pattern needs to be repeated until it is 18 items long. In this case:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
K D D D K D D K D D D K D D K D D D
We can now cull each column, but they will all be culled in the same way. By shifting the pattern one more index for each column, we can cycle the culling.
The fix incidentally is to Shift the pattern PRIOR to repeating it. Then it works as expected:
--
David Rutten
david@mcneel.com
Tirol, Austria…
Added by David Rutten at 2:49pm on October 2, 2013
ap value = True
Shift List = 1 --> (B,C,D,A)
Shift List = 2 --> (C,D,A,B)
You can also use negative values.
Shift List = -1 --> (A,B,C)
Shift List = -2 --> (A,B)
and with Wrap = True
Shift List = -1 --> (D,A,B,C)
Shift List = -2 --> (C,D,A,B)
The most useful Shift List action I use is to either get rid of the first or last item in a list and sometimes both.
Shift list = -1 --> (A,B,C) Shift list = 1 --> (B,C)
In the example posted above you are creating a shift list value equal to its location along the curve. The first section = 0 doesn't get shifted, the second section gets a shift = 1, third = 2, forth = 3 and because the wrap value is set to true the fifth section gets back to 0, sixth = 1 etc etc. creating the twisting effect.
The "one more stupid question" answer is Mass Addition. You will find the component on the Math tab or you can type it into the Keyword search feature (by double clicking the canvas). This component has two outputs a total amount for each list and a partial set of results giving:
List (3,6,9,12)
{0} = 3
{1} = 3+6 = 9
{2} = 3+6+9 = 18
{3} = 3+6+9+12 = 30…
the branch?
i.e.
{0;0} {1;0} {2;0} {2;1} {3;0} {3;1} {3;2}
a a a c a c e
b b b d b d f
in order to get
{0} {1} {2} {3}
a a a + c a + c + e
b b b + d b + d + f
I have tried using GH_Path, treedata.Paths etc.
but have no idea how to perform a looping in the second dimension of a tree.
Any ideas?
Many Thanks!!…
I have a set of points (A) pulled by 3 other points (B,C,D). B,C, and D are only pulling the closest to themselves. Is there a way to find out how many points are pulled to B,C, and D individually?
sentation from the circle object
Dim n As New NurbsCurve(c.ToNurbsCurve())
'Divides the Curve domain in 3 segments (returns domain as double array)
Dim d() As Double = n.DivideByCount(3, True)
'to output the segment use trim function and the corresponding domain values...loop?
A = n.Trim(d(0), d(1))
End Sub
…
Added by Florian Frank at 5:10pm on February 4, 2011
4.
Here are the three conventions, I would stick with number 3:1. degrees, minutes and seconds (d m s)2. degrees, minutes and decimal minutes (d m.m)3. degrees, decimal degrees (d.d)
…
've connect every single points, line and curves in 1 join curves and, at the end, create a loft with 5 curves(image 3)
But now, I can't divide my surface in Horizontal and Vertical ribs!!
I've also bake this surface and after imported in GH but I can't realize my divide surface...
can anyone help me?!?
thanks guys! :D…