erations, is not it?
This is what I finally want and how I plan to do it:
In the starting tree, points are listed accordingly to the (11) 4-side-panels they belong to. I need to do a tree where each of the 11 lists contains not the points composing the panels but the points code of the points composing the panels. the point code is the number in the flattened list that refers to the points (like, panel 1 is made of points n 0,1,4,18, and so on). To do this, I suppose that I will use my tree of 11 lists of 33 true-false values, and apply it to cull 11 times a series of numbers from 0 to 32. I ll post it if it works!…
Next step, algorithm deletes these 3 points from point cloud, then picks a random point and 2 closest points again. I want to make a loop for these operations and want to continue the algorithm till there was no enough point. How can I make this?
You can see the multiplecopies at the attached image that I want to loop. I need a slider that makes multiple L blocks when I change it.
Thank you very much in advance!
…
rib structure for a design studio project. I have some sets of planar curves, drawn in Rhino from interpolated points. I'd like to create the ribs along these lines, with a depth of 1/x of the length of each curve. Then, I want to creat two struts that branch from the rib to hold a cable/wire. Finally, I want to array some holes along the central axis of the rib.
So, aiming to this, I started working on Grasshopper with a random Rhino curve. You'll find the .gh file attached, but I will try to sum up my logic:
Original Rhino curve 1, with a L length
Setting curve 1 L/x off, curve 2
Creating an axis curve, setting curve 1 L/2x
Creating arcs 1 and 2 at both ends of axis curve, r= L/2x
Setting axis curve L/y off, curve 3
Dividing axis curve and curve 3 in 3 segments
Creating lines between division points, strut axis
Creating circle at the start of strut axis and arc 3 at the end
Creating tangen lines between circle and arc 3
Creating strut (as edge surface) with tangent lines, arc 3 and curve 2
Creating a circle with a L/Ax radius (smaller than L/2x) on the rib plane
Arraying the circle along axis curve
Joining curve 1, curve 2, arc 1 arc 2, rib contour
Boundary surface with rib contour and circles, to create rib with holes
Ii kind of worked out with the sample curve... I was so happy.. (IMG 1). But then I tried with a simple set of curves and it totally failed to create the rib (IMG 2). It looks like my approach was wrong... I attach my Grasshopper file, I've tried clarify it as much as I can.
The geometry resulting from my first attempt (IMG 1) is actually what I'm looking for, any advice?
Thank you very much for your attention and your time.…
13 5 15 6 17 7 ... …
But it seems I have not been clear:
the input values (3,5,7,9,11,13) should be presented in the way of "number slider" parameter. So by increasing the value of the slider from minimum 3, to 5, 7, 9, 13, 15, 17... I should get an output numbers of 0,1,3,4,5,6,7...
So I if choose value 3 on the input "number slider", on the other end, I want 0 as an output.
Or if I choose value 5 on the input "number slider", I want 1 as an output, and so on.
Is this possible?…
t;double> Result = new List<double>();
for (int i = 0; i < L.Count; i++) {
if (i == 0) {
Result.Add(L[i]);
} else {
Result.Add(L[i] + Result[i - 1]);
}
}
A = Result;
}
Remember to set the input L as list of double.
…
Added by June-Hao Hou at 5:34am on January 13, 2011
L2.append(L1[i]/2+0.5) else: L2.append(L1[i]/2) L2.append(L1[i]/2) #it will get 'L2=[8,9,12,12,9,9]' x+=1 #i dont know how to replace the L2 to L1 ,realize the loop.print(L2)
do loop like this:
when 'x<2',get the list [8,9,12,12,9,9],when 'x<3',get the list [4,4,4,5,6,6,6,6,3,3,3,3]
finally,L.append('all the list'),get the L=[[17,24,18],[8,9,12,12,9,9],[4,4,4,5,6,6,6,6,3,3,3,3]...and so on....]
-Carcassi…