.5,-3.0; 2.1,-6.7;0.35: 2: 7.2,-8.1; 6.2,-7.0; 5.7,-2.3;0.5: 0: 1.5,3.5; 2.3,-0.4; 2.6,-1.2;0.5: 1: 5.6,-3.1; 5.2,-1.5; 6.3,-6.0;0.5: 2: -3.4,6.4; -3.0,5.5; -2.9,7.6;The first number of each line is the z value. Each z value is used multiple times with a list of x,y values. That second number is the index of the list of points for the z value, and the following ordered pairs are the x,y values.
I attached my script, which outputs each line of data as a branch containing the points on that line (paired with the z value at the start of the line). The paths output are {0;0;#} where # ranges from 0 to 799. I'd like to collect all the lines with the same z values into one branch, however, resulting in something like {0;$;#} where $ ranges from 0 to 7 (the number of different z values) and # ranges from 0 to 99 (the number of lists of points associated with each z value), rather than having them all compressed into one list.
I'm reading the input line by line, but if I read it all at once, I could create a loop that examines each line's z value and stores the line into a list specific to that z value, then output all those lists of lists as a list/DataTree? Is that what you are suggesting, David Stasiuk? …
Added by Mark Bank at 2:55pm on September 27, 2012
2d grid from
grasshopper but in 3d, fully controllable of course. I want to do something
like the image in this web
site:http://news.cnet.com/Photos-Weaving-high-tech-fabrics-of-the-future—page-12/2009-1008_3-5667576-12.html
I figured that connecting points and lines kind of works (point and line input AB command) but the line length changes when I move a
point. What I want to be able to do is to move a point and drag others but keep
the line segments constant, just as a real net.
…
Added by Jesus Garza at 8:28am on February 23, 2010
atic functions on it that allow you to specify Rotational transformations.
Dim ln As New line(A, B)
ln.Transform(Transform.Rotation(0.5 * Math.Pi, Vector3d.ZAxis, Point3d.Origin))
or... probably neater:
Dim ln As New line(A, B)
Dim X As Transform = Transform.Rotation(0.5 * Math.Pi, Vector3d.ZAxis, Point3d.Origin)
ln.Transform(X)
--
David Rutten
david@mcneel.com
Poprad, Slovakia…
but arent working properly in Grasshopper (only parts of the curves are filled, lots of artifacts) so for the moment the only animation I have is of the lines.
Andrew, great workshop, have tons of ideas... I'll keep posting!…
Added by Noah Marble at 7:55am on February 26, 2014
tion is constrained to a 2D plane then there are only 2 possible perpendicular vectors.
Other than that the problem is now clear to me. There may well be a trigonometric exact solution to this problem, but perhaps you'd be happy with a solution using Galapagos?
--
David Rutten
david@mcneel.com…
tunately does not, my model is kind like individual points on different line which need to be arranged in order so that i could create a poly line along those point,
i attached my grasshopper file, i tried to use panels which is a long process , was wondering if there is a quicker way to do it
…