Grasshopper

algorithmic modeling for Rhino

Hi all, 

I am scripting a VB node that pulls data from Excel regarding the X,Y,Z coordinate of a point. I am ok with my scripting from Excel, but I want to have the list output of the node be a list of points objects, not separate outputs for X,Y,Z coordinate. Is there a way to combine these three numbers internally in a VB node and have the outputs be points?

Preemptive thanks!  

Views: 217

Replies to This Discussion

'X_list, Y_list, Z_list: lists of coordinates.

Dim pts as new list(of point3d)

For i as int32 = 0 to X_list.Count -1

    pts.add( new point3d(X_list(i), Y_list(i), Z_list(i)) )

next

A = pts

Thanks boss!!!

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