Grasshopper

generative modeling for Rhino

This is an example of how to create a rectangular and diamond grids using VB.NT DataTrees to output a tree structure. Download diamond_grid.zip to see the GH definition.

Views: 1299

Tags: DataTree, Diagrid, Grid, VB.NET

Comment

You need to be a member of Grasshopper to add comments!

Join Grasshopper

Comment by Sebastian Pantano on February 3, 2012 at 8:03am

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.

Comment by Justin Diles on June 1, 2010 at 6:43pm
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.
Comment by Rajaa Issa on June 1, 2010 at 3:08pm
That is great.
Comment by Justin Diles on June 1, 2010 at 2:20pm
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
Comment by cmrhm on May 21, 2010 at 11:42am
Rajaa:

Thanks for pointing out using component 'point list' and the posted image! That is exactly what I am looking for.
Comment by Rajaa Issa on May 21, 2010 at 8:04am
Here is an image for what is described below..

Comment by Rajaa Issa on May 21, 2010 at 7:54am
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.

Does that answer your question?
Comment by cmrhm on May 20, 2010 at 3:36pm
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?
Comment by cmrhm on May 20, 2010 at 3:33pm
Like the following.

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
Comment by Rajaa Issa on May 20, 2010 at 2:32pm
Hi cmrhm,
I'm not sure I understand what you mean by "put sequence number on each point". Can you elaborate or give an example?

Translate

Search Grasshopper

Members

Photos

  • Add Photos
  • View All

© 2012   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service