This is an example of how to create a rectangular and diamond grids using VB.NT DataTrees to output a tree structure. Download Diagrid_GH09.gh to see the GH definition.
Also write out the sequence numbers when each point was put into Rhino interface? For example, You output 190 points, so point(0,0,0) must be the first one. How I can write 1 around this pint?
Hi,
When you examine the script, you'll see that:
A: the output of the script, is a 2d array of points. Points show on screen.
Now when you say "write out the coordinates for each point", where do you want to write it? On screen? Or, do you mean that we construct a one dimensional array of these points? If so, you can flatten the output "A".
Also, when you say "sequence", do you mean to output a number on screen? If so, you can use the flat list of points and "Point List" component in GH for this.
Rajaa: Now I've figured everything out and realize how to use Data Trees just like multidimensional arrays (but even better) in a VB.net component. Thanks for your original example; it got the ball rolling for me. Best, J
Rajaa: Do you know if it is possible to use the RhUtil.RhinoInterpCurve function with a Data Tree branch (full of points) to make a curve? It works to create a Control Point curve: "crv.CreateClampedUniformNurbs(3,data_tree.Branch(0).ToArray, Nothing, Nothing,1)"...But trying something similar with the InterpCurve function has not worked for me so far.
RajaaHello, veryinterestingall the datafoundin several of itsdefinitions.I'mtrying to studydefinitionsto createneighborhoodshousingstructuresthat canbe flexibleand evolveover time.Targeted torespond in the bestwayto human needs.this I amtrying todeveloparmedgridsexceland throughVB.netreadingrasshopper.Any help orrecommendationwould be of greatinterestto me. fromalreadythank you very much. Sebastian.
Torolf Sauermann
ciao
torolf
Dec 28, 2009
Alessio Erioli
Jan 2, 2010
Rajaa Issa
Jan 2, 2010
Jon Malkovich
I actually don't understand the j=0 and j=1 declaration within the if statement. Isn't it redundant? Am I missing something?
Best,
Giulio
Jan 2, 2010
Rajaa Issa
Jan 3, 2010
cmrhm
I am going to study your code. Wondering if you can put a sequence number on each point?
cmrhm
May 20, 2010
Rajaa Issa
I'm not sure I understand what you mean by "put sequence number on each point". Can you elaborate or give an example?
May 20, 2010
cmrhm
in your code:
For j = 0 To v_num - 2
Dim CurrPt As New On3dPoint(curr_x + j * dis, curr_y + i * dis / 2, z)
grid.Add(CurrPt, path)
Next
is there anyway to write out the coordinates for each point CurrPt?
Q_howToSetSequenceNumber.png
May 20, 2010
cmrhm
May 20, 2010
Rajaa Issa
When you examine the script, you'll see that:
A: the output of the script, is a 2d array of points. Points show on screen.
Now when you say "write out the coordinates for each point", where do you want to write it? On screen? Or, do you mean that we construct a one dimensional array of these points? If so, you can flatten the output "A".
Also, when you say "sequence", do you mean to output a number on screen? If so, you can use the flat list of points and "Point List" component in GH for this.
Does that answer your question?
May 21, 2010
Rajaa Issa
May 21, 2010
cmrhm
Thanks for pointing out using component 'point list' and the posted image! That is exactly what I am looking for.
May 21, 2010
Justin Diles
Jun 1, 2010
Rajaa Issa
Jun 1, 2010
Justin Diles
Jun 1, 2010
Sebastian Pantano
Rajaa Hello, very interesting all the data found in several of its definitions. I'm trying to study definitions to create neighborhoods housing structures that can be flexible and evolve over time. Targeted to respond in the best way to human needs. this I am trying to develop armed grids excel and through VB.net read in grasshopper. Any help or recommendation would be of great interest to me.
from already thank you very much.
Sebastian.
Feb 3, 2012