Does anyone know how to output a nurbs curve from a VB scripted node?
I can't seem to find the constructor class for a simple curve. I've
used a polyline for the time being that works, but can't get curves
from the same points.

The general premise for developing this node is that the standard
curves node seems to flatten lists going into the node thereby losing
their grouping and making one curve instead of say 10 dynamic curves.
So if we have 7 lists each a row of 10 points appended into one,
similar to

http://groups.google.com/group/grasshopper3d/browse_thread/thread/d1055295814c30af#

we could use the following scripted node to get 10 curves :

  Sub RunScript(ByVal pts As List(Of On3dPoint), ByVal num As Integer)
                Dim spline_list As New List(Of OnPolyline)

                Dim bounds As Int32 = pts.Count / num

                'print("bounds = {0}", bounds)

                For i As Int32 = 0 To bounds-1
                        Dim spline As New OnPolyline()
                        For j As Int32 = 0 To num-1
                                spline.Append(pts(j * bounds + i))
                                'print("index = {0}", j * bounds + i)
                        Next
                        spline_list.Add(spline)
                Next
                A = spline_list
  End Sub


Any ideas on how to construct curves here instead of polylines?
Thanks.

Reply via email to