algorithmic modeling for Rhino
List<Point3d[]> corners = new List<Point3d[]>();
foreach (Box box in boxes)
{
corners.Add(box.GetCorners());
}
Point3d[][] corners = new Point3d[boxes.Count][];
for (int i = 0; i < boxes.Count; i++)
corners[i] = boxes[i].GetCorners();
Giulio,
could you post a vb version of this example. I can't find any examples of jagged arrays for the vb component on the site and the one (months and days of months) on the vb.net site give me a syntax error.
-Jeff
this is the equivalent code from C# to Vb.Net
Dim corners As Point3d()() = New Point3d(boxes.Count - 1)(){}
For i As Integer = 0 To boxes.Count - 1
corners(i) = boxes(i).GetCorners()
Next
- Giulio
_______________
giulio@mcneel.com
McNeel Europe
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by