e clean up and path mapping, I am left with a bunch of curves in {0;0} and {0;2}. The plane in {0;1} does not intersect any of the pipes, so the branch of its resulting intersection curves is not present.
When I try and project the curves back down to the plane, grasshopper tried to project the curves from {0;2} onto the {0;1} surface and the {0;2} surface.
Why is this happening?…
Added by Arlen Abraham at 10:24pm on August 20, 2012
ut I don't know how to arrange the points so that I have sublists with 4 items each
What I think needs to be done is get something like {0;0;0;0} and {0;0;0;1} to combine with {0;0;1;0} and {0;0;1;1} and so on for the rest of the structure.
I've been trying all sorts of components to get what I want but I'm still new and I'm at a loss on how to work with lists.
Thanks in advance for any help!
…
ut. Here's an image to see what I'm talking about:
I also attached my file.
I have a list of objects (planes) coming in on 4 different branches (0;3 through 0;6)
Just as a test I ran this code:
*From scripted component labeled (A) in image
Private Sub RunScript(ByVal x As DataTree(Of Plane), ByRef A As Object)
Dim tree1 As New datatree(Of System.Object)Dim path1 As New GH_Path(7)
For i As Integer = 0 To x.Branch(0).count - 1tree1.Add(x.Branch(0).item(i), path1)Next
a = tree1
Which outputs all planes that were on branch {0;3} on new branch {7}. This works the way I expect it to.
What I'm confused about is when I add this little bit at the end:
*From scripted component labeled (B) in image
Private Sub RunScript(ByVal x As DataTree(Of Plane), ByRef A As Object)
Dim tree1 As New datatree(Of System.Object) Dim path1 As New GH_Path(7)
For i As Integer = 0 To x.Branch(0).count - 1 tree1.Add(x.Branch(0).item(i), path1) Next
a = tree1.Branch(path1)
The planes are now on branch {0;3;0}, but it seems (to me at least) that it should produce the same result as above since path1 was set to (7).
Ultimately I want a way of addressing each Branch on the same branch name they came in on. I can retrieve each branch easily:
*From scripted component labeled (C) in image
a = x.Branch(0)
b = x.Branch(1)
c = x.Branch(2)
d = x.Branch(3)
But each of these branches has a path of {0;3;0}
That doesn't seem right to me either... Is there something I'm missing?
By using the following code, I can basically recreate the branch structure that comes in:
*From scripted component labeled (D) in image
Private Sub RunScript(ByVal x As DataTree(Of Plane), ByRef A As Object)
Dim tree1 As New datatree(Of System.Object)
For g As Integer = 0 To x.BranchCount - 1 Dim path1 As New GH_Path(g)
For i As Integer = 0 To x.Branch(0).count - 1 tree1.Add(x.Branch(g).item(i), path1) Next
Next
a = tree1
but then I run into the same problem when trying to address any branch:
*From scripted component labeled (D) in image
Private Sub RunScript(ByVal x As DataTree(Of Plane), ByRef A As Object)
Dim tree1 As New datatree(Of System.Object)
For g As Integer = 0 To x.BranchCount - 1 Dim path1 As New GH_Path(g)
For i As Integer = 0 To x.Branch(0).count - 1 tree1.Add(x.Branch(g).item(i), path1) Next
Next
a = tree1.Branch(0)
I apologize for the length of this post, but I appreciate any help I can get!
Thanks,
Brian…
the 3 points in the box are close to the outer surface of the box, but the “inside” component determines the 3 points are on the outer surface.
how to solve the precision problem like this?
s from Rhino and the tree makes it 0 – A area, 1 – B area, etc. But I need A+B+C+D…=GENERAL AREA i.e. I need to calculate within the tree indexes 0, 1, 2, 3, etc., one after another to get sum of surfaces with one number. Here is the definition…I would appreciate a lot your help!
…
ifically: I have a 100' vertical plane lofted between curved top and bottom profiles. I contour it every 8' (normal direction is Z, giving me 13 horizontal curves). I use Divide Curve to divide each contour into 10 segments. The "Points" output of Divide Curve now yields 13 branches with 11 items each, corresponding to 13 contours with 11 points from the left end of the curve to its right.
I now want to string "vertical" lines, and connect all the 2nd items in each branch together, all the 3rd items, etc... in order to make a polyline that travels between each 2nd point or 3rd point. i don't want to use Cull Pattern/Nth/Index because the number of subdivisions could change (11 could become 20, etc).
How do I connect the Nth item of each branch in this tree? Moreover, how do I connect all values in a branch with their corresponding values in all other branches?
Thanks for any replies,
Richman Neumann
Solomon Cordwell Buenz Architects
…
ly the same turn threw a turn up, it did not become flat
Do you understand it for some reason?
New user to grasshopper but very impressed with the software so far! Any help is greatly appreciated!
Thanks.
Momiji
…