Grasshopper

algorithmic modeling for Rhino

I feel stuck about the datatree. For example I have datatree of point Like this:

{0;0;0} n=6
{0;0;1} n=6
.
.
.{0;0;8} n=6

{0;1;0} n=6
{0;1;1} n=6
.
.
{0;1;8} n=6


I want the point {0;0;i} (0) line with the point {0;1;i} (3) I= 0 to8

Could anyone help me out? I am the very beginner...

Views: 253

Replies to This Discussion

Dim lines As New List(Of Line)

For i As Int32 = 0 To 8

  Dim list0 As List(Of Point3d) = tree.Branch(0,0,i)

  Dim list1 As List(Of Point3d) = tree.Branch(0,1,i)

  Dim point0 As Point3d = list0(0)

  Dim point1 As Point3d = list1(3)

  lines.Add(New Line(point0, point1))

Next

--

David Rutten

david@mcneel.com

Poprad, Slovakia

Thanks !!!

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service