Grasshopper

algorithmic modeling for Rhino

I would like to output the coordinates of points
In the following format

1,xcoord1,ycoord1,zcoord1
2,xcoord2......etc

It probably is documented somewhere
But cannot locate it

Many thanks
William

Views: 292

Replies to This Discussion

one approach is an evaluate component with the points fed into x, and the following expression:

Format("{0},{1},{2}",x.x,x.y,x.z)

If you meant to include the index number at the beginning as well, list length + series -> y and the slightly expanded expression:

Format("{0},{1},{2},{3}",y,x.x,x.y,x.z)

Many thanks. Will try it out tomorrow.

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service