grasshopper2 Rhinorhino3d.com
ComponentVector
Points To Numbers
00000000-007c-4675-9a95-4bd2745295df
object preview

Convert a list of points into a list of coordinate numbers using a custom pattern.

By default the pattern equals XYZ which extracts the x, y, and z coordinates of each input point and places them in the output list. Thus a list of three input points [ABC] will result in a list of nine output numbers containing [AxAyAzBxByBzCxCyCz].

The sequence of x, y, and z characters in the pattern text defines the structure of the output list. Any other characters in the pattern are ignored.

1
2
3
3
Example file ToNumberPattern.ghz.Interactive in Grasshopper 2
Convert points to numbers using one of four custom patterns.
1
2
3
4
5
6
Example file PointsToNumbers.ghz.Interactive in Grasshopper 2
Convert a list of points into a list of coordinates, then modify the coordinates by adding random noise to them before converting the list of coordinate numbers back into a list of points.